/* v3 additions — Cleaner by Zip */
.nav-sep { height:1px; background:var(--line); margin:6px 4px; }
.role-chip { display:inline-flex; align-items:center; gap:4px; height:18px; padding:0 6px; border-radius:5px; font-size:10px; font-weight:700; letter-spacing:.02em; vertical-align:1px; }
.role-dev { background:#1a1f26; color:#fff; }
.role-admin { background:var(--brand-soft); color:var(--brand-ink); }
.role-user { background:#f3f4f6; color:#5b6470; }
.user-chip .name { display:flex; align-items:center; gap:6px; }
.chip-bad { background:var(--danger-bg); color:var(--danger); }
.chip-off { background:#f3f4f6; color:#5b6470; }
.banner.warn { background:var(--warn-bg); border-color:#f3d9a8; color:#6b3d00; }
.banner.warn svg { color:var(--warn); }
.banner .b-link { margin-left:auto; font-weight:650; text-decoration:underline; text-underline-offset:2px; white-space:nowrap; }
.btn-tg { background:#229ed9; color:#fff; }
.link { color:var(--brand); font-weight:650; text-decoration:underline; text-underline-offset:2px; }

/* Pages: FB account columns */
.acc-cols { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; flex:0 0 auto; }
.acc-col { background:#fff; border:1.5px solid var(--line); border-radius:12px; padding:12px 14px; box-shadow:var(--shadow); position:relative; }
.acc-col.on { border-color:var(--brand); background:#f3fafa; box-shadow:0 0 0 3px rgba(14,124,123,.12); }
.acc-col.bad { border-color:#f3d9a8; background:#fffaf0; }
.acc-col .top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.acc-col .nm { font-weight:650; font-size:13.5px; line-height:1.2; }
.acc-col .sub { font-size:11.5px; color:var(--muted); }
.acc-col .stats { display:flex; gap:16px; font-size:12px; color:var(--muted); }
.acc-col .stats b { color:var(--text); font-weight:650; font-size:13px; }
.acc-col .open { position:absolute; right:12px; top:14px; color:var(--faint); font-size:16px; }
.acc-col.add { border-style:dashed; background:transparent; box-shadow:none; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--brand-ink); font-weight:650; }
.acc-col.add .plus { width:30px; height:30px; border-radius:50%; background:var(--brand-soft); display:grid; place-items:center; font-size:18px; color:var(--brand); }
.restore-note { font-size:11.5px; color:#6b3d00; margin-top:6px; }
.tbl-head { display:flex; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--line); }
.tbl-head .t { font-weight:650; font-size:13.5px; }
.tbl-head .spacer { margin-left:auto; }
table.grid.compact tbody td { height:50px; }

/* Rules */
.rule-cards { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.rule-card { padding:16px 18px; border-radius:12px; border:1.5px solid var(--line); background:#fff; box-shadow:var(--shadow); }
.rule-card.selected { border-color:var(--brand); background:#f3fafa; box-shadow:0 0 0 3px rgba(14,124,123,.12); }
.rule-card .mode-top { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.rule-card h3 { font-size:16px; font-weight:680; }
.rule-card .radio { width:18px; height:18px; border-radius:50%; border:1.5px solid var(--line-strong); }
.rule-card.selected .radio { border-color:var(--brand); background:var(--brand); box-shadow:inset 0 0 0 3.5px #fff; }
.rule-card p { font-size:13px; color:var(--muted); line-height:1.5; }
.rule-card .ill { margin-top:12px; background:#f7f8fa; border-radius:10px; padding:10px 12px; font-size:12.5px; display:flex; gap:10px; align-items:center; }
.rule-card .ill .cnt { font-weight:650; }
.rule-card .tag { margin-left:auto; }
.rules-bottom { display:grid; grid-template-columns:1.4fr 1fr; gap:12px; flex:1; min-height:0; }
.wl-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.guard { display:flex; flex-direction:column; gap:10px; }
.guard .row { display:flex; gap:10px; align-items:flex-start; font-size:12.5px; line-height:1.45; }
.guard .ic { width:26px; height:26px; flex:0 0 26px; border-radius:8px; display:grid; place-items:center; background:var(--warn-bg); color:var(--warn); font-weight:700; }

/* Cleanup */
.toggle.lg .toggle-ui { width:52px; height:28px; border-radius:14px; flex:0 0 52px; }
.toggle.lg .toggle-ui::after { width:24px; height:24px; }
.toggle.lg input:checked + .toggle-ui::after { left:26px; }
.count-link { font-weight:700; font-size:14px; color:var(--brand); text-decoration:underline; text-underline-offset:3px; font-variant-numeric:tabular-nums; }
.prog { display:flex; align-items:center; gap:10px; }
.prog .bar { width:140px; height:6px; border-radius:9px; background:#e6e9ed; overflow:hidden; }
.prog .bar i { display:block; height:100%; background:var(--brand); border-radius:9px; }
.prog .txt { font-size:12.5px; font-weight:600; white-space:nowrap; }
.prog .txt span { color:var(--muted); font-weight:500; }
.done { color:var(--ok); font-weight:600; font-size:12.5px; }
.muted { color:var(--faint); }

/* Log */
.undo { width:28px; height:28px; border-radius:7px; border:1px solid var(--line-strong); background:#fff; display:grid; place-items:center; color:var(--brand); position:relative; }
.row-deleted td { color:var(--muted); }
.row-deleted .comment { color:var(--muted); text-decoration:line-through; text-decoration-color:#c9cdd3; }

/* Tariffs */
.tar-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.lim-card { padding:18px 20px; }
.lim-big { font-size:34px; font-weight:720; letter-spacing:-.03em; line-height:1; margin:10px 0 10px; font-variant-numeric:tabular-nums; }
.lim-big span { font-size:16px; color:var(--muted); font-weight:600; letter-spacing:0; }
.lim-bar { height:8px; border-radius:99px; background:#e6e9ed; overflow:hidden; margin-bottom:8px; }
.lim-bar i { display:block; height:100%; background:var(--brand); border-radius:99px; }
.cta { padding:26px 28px; display:flex; align-items:center; gap:24px; }
.cta .grow { flex:1; }
.cta h2 { font-size:18px; font-weight:680; letter-spacing:-.02em; margin-bottom:6px; }
.cta .btn { height:46px; font-size:15px; padding:0 22px; border-radius:10px; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.step { padding:14px 16px; }
.step .num { width:24px; height:24px; border-radius:50%; background:var(--brand-soft); color:var(--brand-ink); font-weight:700; font-size:12px; display:grid; place-items:center; margin-bottom:8px; }
.step b { display:block; font-size:13.5px; margin-bottom:3px; }

/* Settings v3 */
.set3 { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; height:100%; }
.set3 .card { min-height:0; overflow:hidden; }
.s2 { grid-column:span 2; } .s3 { grid-column:span 3; }
.dev-card { border-color:#1a1f26; box-shadow:0 0 0 1px #1a1f26 inset, var(--shadow); }
.dev-card .card-title { display:flex; align-items:center; gap:8px; }
.secret { font-family: ui-monospace, monospace; font-size:12px; color:var(--muted); background:#f3f4f6; border-radius:6px; padding:3px 8px; }
.set3 .set-row { padding:9px 0; }

/* Auth */
.auth-row { display:flex; gap:20px; align-items:stretch; }
.auth-card { width:440px; background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 8px 30px rgba(16,24,40,.06); padding:30px 32px 26px; }
.auth-card.side { width:400px; background:#fbfcfd; }
.auth-card h1 { font-size:21px; font-weight:680; letter-spacing:-.03em; text-align:center; }
.auth-card .tagline { color:var(--muted); margin:6px 0 20px; font-size:13.5px; text-align:center; }
.auth-card .logo { width:44px; height:44px; border-radius:12px; margin:0 auto 12px; }
.lbl-row { display:flex; justify-content:space-between; align-items:baseline; }
.lbl-row .link { font-size:12.5px; }
.vpn { margin-top:14px; display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:10px; background:var(--info-bg); color:#1e3a8a; font-size:12.5px; line-height:1.45; border:1px solid #d6e0ff; }
.vpn svg { flex:0 0 18px; color:var(--info); margin-top:1px; }
.ok-note { margin-top:14px; display:flex; gap:10px; align-items:flex-start; padding:10px 12px; border-radius:10px; background:var(--ok-bg); color:#0b5a37; font-size:12.5px; line-height:1.45; border:1px solid #c3e8d3; }
.side-title { font-size:15px; font-weight:680; margin-bottom:4px; }

/* Admin v3 */
.role-sel { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 8px; border-radius:7px; border:1px solid var(--line-strong); background:#fff; font-size:12px; font-weight:600; white-space:nowrap; }
.role-sel.locked { background:#f3f4f6; border-color:transparent; color:#1a1f26; }
.role-sel.disabled { color:var(--muted); background:#fafbfc; }
.dd { position:absolute; z-index:50; background:#fff; border:1px solid var(--line-strong); border-radius:9px; box-shadow:0 10px 28px rgba(16,24,40,.16); padding:4px; width:170px; top:30px; left:0; }
.dd div { padding:7px 9px; border-radius:6px; font-size:12.5px; display:flex; justify-content:space-between; }
.dd .on { background:var(--brand-soft); color:var(--brand-ink); font-weight:650; }
.dd .note { font-size:11px; color:var(--muted); padding:6px 9px 4px; border-top:1px solid var(--line); margin-top:2px; display:block; }

/* Modal small */
.modal.sm { width:820px; }

/* Telegram v3 */
.bubble.out { background:#e1f7d0; border-radius:14px 14px 4px 14px; align-self:flex-end; }
.bubble-wrap.out { align-items:flex-end; }
.bubble .quote { border-left:3px solid #229ed9; padding:3px 8px; margin-bottom:6px; font-size:12.5px; color:#3b4450; background:rgba(34,158,217,.08); border-radius:0 6px 6px 0; }
.bubble.out .quote { border-left-color:#3aa55a; background:rgba(58,165,90,.1); }
.tg-tag { display:inline-block; font-size:11px; font-weight:700; padding:1px 7px; border-radius:6px; margin-right:6px; }
.tg-tag.sup { background:#e8f1ff; color:#1d4ed8; }
.tg-tag.tar { background:#fff1db; color:#9a5700; }
.tg-cmd { color:#168acd; }
.bubble-sm { font-size:12px; color:#5b6470; margin-top:4px; }
.bubble.out { width:auto; max-width:310px; min-width:90px; }
.sidebar-foot .nav-item { white-space:nowrap; font-size:13px; }
.undo { width:24px; height:24px; border:0; background:transparent; border-radius:6px; color:var(--brand); }
.undo.hl { background:var(--brand-soft); }
.tip.above-left { bottom: calc(100% + 8px); right:-6px; left:auto; width:210px; }
.tip.above-left .tip-arr { bottom:-4px; right:14px; left:auto; }
