:root { --night:#0b0a1c; --violet:#5C55CD; --violet-hi:#8a83f0; --ice:#D5E6F1; --muted:#9d9bc6; --line:rgba(213,230,241,.12); --glass:rgba(213,230,241,.05); }
[hidden] { display:none !important; }
* { box-sizing:border-box; margin:0; }
body { background:radial-gradient(60% 50% at 10% 0%,rgba(92,85,205,.3),transparent 70%),var(--night); color:var(--ice); font:15px/1.5 Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; min-height:100vh; }
.wm { font-family:Impact,"Arial Black",sans-serif; letter-spacing:1px; text-transform:uppercase; font-size:22px; }
.glass { background:var(--glass); border:1px solid var(--line); border-radius:20px; backdrop-filter:blur(16px); }
.center { min-height:100vh; display:grid; place-items:center; padding:16px; }
.box { width:min(380px,100%); padding:30px; display:grid; gap:16px; }
.brand small { display:block; color:var(--muted); }
.field { display:grid; gap:6px; } .field span { font-size:13px; color:var(--muted); } .field small { color:#6f6d93; font-size:12px; }
input, textarea { width:100%; padding:11px 13px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.25); color:var(--ice); font:inherit; }
input:focus, textarea:focus { outline:2px solid rgba(138,131,240,.6); border-color:transparent; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px; border-radius:13px; border:1px solid var(--line); background:rgba(213,230,241,.08); color:var(--ice); font:inherit; font-weight:700; cursor:pointer; text-decoration:none; transition:transform .15s, box-shadow .2s; }
.btn:hover { transform:translateY(-1px); } .btn.sm { padding:8px 14px; font-size:13px; }
.btn.glow { background:linear-gradient(135deg,var(--violet),#3a3494); border-color:rgba(138,131,240,.8); box-shadow:0 8px 30px rgba(92,85,205,.4); }
.err { color:#ff8a8a; min-height:1em; font-size:13px; }
.bar { position:sticky; top:0; display:flex; align-items:center; gap:12px; padding:14px 20px; border-bottom:1px solid var(--line); background:rgba(11,10,28,.8); backdrop-filter:blur(14px); flex-wrap:wrap; }
.bar small { color:var(--muted); }
.bar nav { display:flex; gap:6px; margin-left:16px; flex:1; }
.bar nav button { background:none; border:0; color:var(--muted); font:inherit; padding:8px 12px; border-radius:10px; cursor:pointer; }
.bar nav button.on { background:rgba(92,85,205,.25); color:var(--ice); }
main { max-width:980px; margin:0 auto; padding:30px 20px 60px; }
h1 { font-size:30px; } .hint { color:var(--muted); margin:6px 0 20px; } code { background:rgba(0,0,0,.35); padding:2px 6px; border-radius:6px; }
.card { padding:24px; display:grid; gap:16px; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; } .wide { grid-column:1/-1; }
.row { display:flex; align-items:center; gap:14px; margin-top:6px; } .ok { color:#8ee5ad; font-size:14px; }
.plans { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-bottom:14px; }
.plans .card h3 { font-size:18px; } .check { display:flex; gap:8px; align-items:center; } .check input { width:auto; }
#toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#2a2b3a; border:1px solid var(--line); padding:12px 18px; border-radius:12px; }
@media (max-width:760px) { .grid, .plans { grid-template-columns:1fr; } .bar nav { margin-left:0; order:3; width:100%; } }
.cards-head { display:flex; align-items:baseline; gap:12px; margin-top:8px; } .cards-head h2 { font-size:20px; } .cards-head .hint { margin:0; }
.layout { display:grid; grid-template-columns:repeat(6,1fr); gap:6px; padding:10px; border-radius:14px; border:1px dashed var(--line); }
.layout i { height:34px; border-radius:9px; display:grid; place-items:center; background:color-mix(in srgb,var(--brand) 22%,transparent); border:1px solid color-mix(in srgb,var(--brand) 45%,transparent); }
.layout em { grid-column:1/-1; font-style:normal; }
.citem { padding:16px; display:grid; gap:12px; border-radius:16px; }
.chead { display:flex; align-items:center; gap:10px; } .chead select { padding:9px 12px; border-radius:11px; background:rgba(0,0,0,.25); color:var(--ice); border:1px solid var(--line); font:inherit; }
.cbtns { margin-left:auto; display:flex; gap:6px; } .cbtns button { width:34px; height:34px; border-radius:10px; border:1px solid var(--line); background:rgba(213,230,241,.06); color:var(--ice); cursor:pointer; }
.cbtns button:hover { background:rgba(213,230,241,.14); } .cbtns [data-del]:hover { background:rgba(255,80,80,.25); }
.sico { width:34px; height:34px; border-radius:10px; display:inline-grid; place-items:center; flex:none; background:linear-gradient(145deg,var(--brand),color-mix(in srgb,var(--brand) 50%,#0b0a1c)); }
.sico svg { fill:none; stroke:#fff; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.layout .sico { width:24px; height:24px; border-radius:7px; }
.add { display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; } .add .hint { margin:8px 0 0; }
#add-btns { display:flex; flex-wrap:wrap; gap:8px; flex:1; }
.addb { display:inline-flex; align-items:center; gap:8px; padding:6px 12px 6px 6px; border-radius:12px; border:1px solid var(--line); background:rgba(213,230,241,.05); color:var(--ice); font:inherit; font-size:13.5px; cursor:pointer; transition:background .2s, transform .15s; }
.addb:hover { background:rgba(213,230,241,.12); transform:translateY(-1px); } .addb .sico { width:26px; height:26px; border-radius:8px; }
select option { background:#1a1838; }
.chead { flex-wrap:wrap; }
.picker { display:flex; flex-wrap:wrap; gap:5px; }
.pick { padding:0; border:2px solid transparent; border-radius:12px; background:none; cursor:pointer; opacity:.45; transition:opacity .2s, transform .15s, border-color .2s; }
.pick .sico { width:32px; height:32px; }
.pick:hover { opacity:.85; transform:translateY(-2px); }
.pick.on { opacity:1; border-color:var(--ice); }
.pname { font-size:15px; }

.note { background:rgba(92,85,205,.2); border:1px solid rgba(138,131,240,.4); padding:10px 12px; border-radius:12px; font-size:14px; }
input.code { font-size:22px; letter-spacing:4px; text-align:center; font-variant-numeric:tabular-nums; }
.sec { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.sec #tfa { grid-row:span 2; }
.card h3 { font-size:18px; } .card .hint { margin:0; }
.steps { padding-left:20px; display:grid; gap:4px; color:var(--ice); }
#tfa-qr { display:block; width:200px; height:200px; border-radius:12px; background:#fff; padding:6px; margin:4px 0; image-rendering:pixelated; }
#tfa-setup, #tfa-on, #tfa-off { display:grid; gap:12px; }
.okline { color:#8ee5ad; font-weight:700; }
details { display:grid; gap:10px; } details[open] > .grid { margin:10px 0; } summary { cursor:pointer; color:var(--muted); }
.btn.ghost { background:transparent; } .btn.danger { background:rgba(255,80,80,.18); border-color:rgba(255,120,120,.5); }
.logins { margin-top:16px; } .tbl { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13.5px; } th { text-align:left; color:var(--muted); font-weight:500; }
th, td { padding:8px 10px; border-bottom:1px solid var(--line); white-space:nowrap; } td.ua { white-space:normal; color:var(--muted); max-width:340px; }
tr.bad td { color:#ff9a9a; } tr.bad td.ua { color:#c98585; }
@media (max-width:760px) { .sec { grid-template-columns:1fr; } .sec #tfa { grid-row:auto; } }
/* ---- панель продавца ---- */
.bar nav a { color:var(--muted); text-decoration:none; padding:8px 12px; border-radius:10px; white-space:nowrap; }
.bar nav a.on { background:rgba(92,85,205,.25); color:var(--ice); }
.bar nav { overflow-x:auto; }
.bar nav a i { font-style:normal; background:#e0566b; color:#fff; border-radius:20px; padding:0 7px; font-size:12px; margin-left:4px; }
.bar nav a i:empty { display:none; }
main { max-width:1180px; }
.head { display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap; justify-content:space-between; margin-bottom:18px; }
.head h1 + .hint { margin:4px 0 0; }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:18px; }
.stat { padding:16px 18px; border-radius:18px; background:var(--glass); border:1px solid var(--line); }
.stat small { color:var(--muted); display:block; font-size:12.5px; } .stat b { font-size:28px; }
.stat.warn b { color:#ffc36b; } .stat.bad b { color:#ff8a8a; } .stat.ok b { color:#8ee5ad; }
.seg { display:inline-flex; background:rgba(0,0,0,.25); border:1px solid var(--line); border-radius:12px; padding:3px; }
.seg button { background:none; border:0; color:var(--muted); font:inherit; padding:7px 14px; border-radius:9px; cursor:pointer; }
.seg button.on { background:rgba(92,85,205,.35); color:var(--ice); }
.group { margin-bottom:22px; } .group > h2 { font-size:17px; margin:0 0 10px; display:flex; gap:10px; align-items:center; } .group > h2 small { color:var(--muted); font-weight:400; }
.dot { width:9px; height:9px; border-radius:50%; display:inline-block; background:#6f6d93; flex:none; }
.dot.online { background:#5ee29a; box-shadow:0 0 10px #5ee29a; } .dot.stopped, .dot.errored { background:#e0566b; } .dot.launching { background:#ffc36b; }
.ccards { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:12px; }
.ccard { padding:16px; border-radius:18px; background:var(--glass); border:1px solid var(--line); cursor:pointer; display:grid; gap:8px; transition:transform .15s, border-color .2s, background .2s; text-decoration:none; color:inherit; }
.ccard:hover { transform:translateY(-2px); border-color:rgba(138,131,240,.6); background:rgba(92,85,205,.12); }
.ccard .top { display:flex; align-items:center; gap:8px; } .ccard .top b { font-size:16px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ccard .meta { color:var(--muted); font-size:13px; display:flex; gap:10px; flex-wrap:wrap; }
.pill { display:inline-block; padding:2px 10px; border-radius:20px; font-size:12px; background:rgba(213,230,241,.08); border:1px solid var(--line); white-space:nowrap; }
.pill.ok { background:rgba(94,226,154,.12); border-color:rgba(94,226,154,.4); color:#8ee5ad; }
.pill.warn { background:rgba(255,195,107,.12); border-color:rgba(255,195,107,.4); color:#ffc36b; }
.pill.bad { background:rgba(224,86,107,.14); border-color:rgba(224,86,107,.45); color:#ff8a8a; }
.pill.brand { background:rgba(92,85,205,.25); border-color:rgba(138,131,240,.6); }
.cols { display:grid; grid-template-columns:1.25fr 1fr; gap:16px; align-items:start; }
.kv { display:grid; grid-template-columns:auto 1fr; gap:6px 16px; } .kv span { color:var(--muted); } .kv b { font-weight:600; overflow-wrap:anywhere; }
.actions { display:flex; gap:8px; flex-wrap:wrap; }
.btn.danger { background:rgba(224,86,107,.16); border-color:rgba(224,86,107,.5); }
.btn.ok { background:rgba(94,226,154,.14); border-color:rgba(94,226,154,.45); }
table { width:100%; border-collapse:collapse; font-size:14px; } th { text-align:left; color:var(--muted); font-weight:500; } th, td { padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl { overflow-x:auto; }
td.mono, .mono { font-family:ui-monospace,Consolas,monospace; letter-spacing:.5px; }
select { width:100%; padding:11px 13px; border-radius:12px; border:1px solid var(--line); background:rgba(0,0,0,.25); color:var(--ice); font:inherit; }
.mods { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:6px; }
.mods label { display:flex; gap:8px; align-items:flex-start; padding:8px 10px; border-radius:11px; border:1px solid var(--line); background:rgba(0,0,0,.15); cursor:pointer; font-size:13.5px; }
.mods label:has(input:checked) { border-color:rgba(138,131,240,.7); background:rgba(92,85,205,.18); }
.mods input { width:auto; margin-top:3px; } .mods small { display:block; color:var(--muted); font-size:11.5px; }
.mods label.from-plan { opacity:.55; cursor:default; }
.plan-ed { padding:18px; border-radius:18px; display:grid; gap:12px; }
.plan-ed .phead { display:flex; gap:10px; align-items:center; } .plan-ed .phead b { font-size:18px; flex:1; }
.cbtns button { width:34px; height:34px; border-radius:10px; border:1px solid var(--line); background:rgba(213,230,241,.06); color:var(--ice); cursor:pointer; }
pre.logs { background:rgba(0,0,0,.4); border:1px solid var(--line); border-radius:12px; padding:12px; max-height:420px; overflow:auto; font-size:12px; white-space:pre-wrap; word-break:break-all; }
#maint-bar { background:linear-gradient(90deg,rgba(255,195,107,.2),rgba(224,86,107,.18)); border-bottom:1px solid rgba(255,195,107,.4); padding:10px 20px; display:flex; gap:12px; align-items:center; justify-content:center; flex-wrap:wrap; }
#modal { position:fixed; inset:0; background:rgba(5,4,15,.7); display:grid; place-items:center; padding:16px; z-index:50; }
.mbox { width:min(560px,100%); padding:24px; max-height:90vh; overflow:auto; display:grid; gap:14px; }
.empty { padding:26px; text-align:center; color:var(--muted); border:1px dashed var(--line); border-radius:16px; }
.steps { padding-left:20px; display:grid; gap:4px; } .grid3 { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.newkeys { display:grid; gap:6px; } .newkeys code { font-size:16px; padding:8px 12px; cursor:pointer; }
.sec { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
#tfa-qr { display:block; width:200px; height:200px; border-radius:12px; background:#fff; padding:6px; }
input.code { font-size:22px; letter-spacing:4px; text-align:center; }
.note { background:rgba(92,85,205,.2); border:1px solid rgba(138,131,240,.4); padding:10px 12px; border-radius:12px; font-size:14px; }
tr.bad td { color:#ff9a9a; }
.muted { color:var(--muted); }
@media (max-width:860px) { .cols, .sec, .grid3 { grid-template-columns:1fr; } }
@media (max-width:760px) { .bar nav { flex:1 0 100%; margin-left:0; } .bar #logout { margin-left:auto; } .head > div:last-child { width:100%; } }

.botline { display:flex; align-items:center; gap:10px; } .botline img, .bava { width:34px; height:34px; border-radius:50%; flex:none; background:linear-gradient(135deg,#5C55CD,#3a3494); }
.botline small { display:block; font-size:11.5px; } .err { color:#ff8a8a; }
.tbl td .actions { flex-wrap:nowrap; } .tbl td:last-child { width:1%; white-space:nowrap; }
.brands { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:10px; align-items:start; }
.brand-card { padding:0; border:2px solid var(--line); border-radius:14px; overflow:hidden; background:rgba(0,0,0,.2); color:var(--ice); cursor:pointer; text-align:left; font:inherit; }
.brand-card img { display:block; width:100%; aspect-ratio:3/1; object-fit:cover; } .brand-card span { display:flex; gap:8px; align-items:center; padding:8px 10px; font-weight:600; }
.brand-card i { width:12px; height:12px; border-radius:50%; } .brand-card.on { border-color:var(--violet-hi); } .brand-card:hover { border-color:rgba(138,131,240,.6); }
