/* IBOGOLD admin panel: obsidian + gold. No external fonts or scripts. */
:root {
  --bg: #08080a;
  --bg2: #0d0d10;
  --surface: #131317;
  --surface2: #18181d;
  --raise: #1f1f25;
  --line: #25252c;
  --line2: #31313a;
  --text: #ececf0;
  --text2: #b3b3be;
  --text3: #7c7c89;
  --gold: #e9b949;
  --gold2: #f7d67e;
  --gold-ink: #1a1405;
  --gold-dim: rgba(233, 185, 73, .13);
  --gold-line: rgba(233, 185, 73, .42);
  --green: #35c47c;
  --green-dim: rgba(53, 196, 124, .14);
  --red: #ef5552;
  --red-dim: rgba(239, 85, 82, .14);
  --blue: #5d9df5;
  --blue-dim: rgba(93, 157, 245, .14);
  --purple: #a88cfa;
  --purple-dim: rgba(168, 140, 250, .14);
  --amber: #f3a33a;
  --amber-dim: rgba(243, 163, 58, .14);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --side: 256px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(233, 185, 73, .07), transparent 60%),
                    radial-gradient(900px 400px at -10% 110%, rgba(233, 185, 73, .04), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold2); }
::selection { background: var(--gold-dim); }
.mono { font-family: var(--mono); font-size: .93em; letter-spacing: .01em; }
.muted { color: var(--text3); }
.dim { color: var(--text2); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.hidden { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 30;
  background: linear-gradient(180deg, #0c0c0f, #09090b);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.brand img { height: 30px; width: auto; }
.brand b { display: block; font-size: 14px; letter-spacing: .06em; }
.brand span { display: block; font-size: 11px; color: var(--text3); letter-spacing: .14em; text-transform: uppercase; }
.nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav h6 { margin: 18px 12px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text3); }
.nav h6:first-child { margin-top: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0;
  border-radius: 10px; color: var(--text2); font-weight: 500; position: relative;
}
.nav a:hover { background: var(--surface2); color: var(--text); }
.nav a.on { background: linear-gradient(90deg, var(--gold-dim), rgba(233, 185, 73, .03)); color: var(--gold2); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--gold); }
.nav a .count { margin-left: auto; font-size: 11px; padding: 1px 8px; border-radius: 20px; background: var(--raise); color: var(--text2); }
.side-foot { padding: 14px 16px 18px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); font-weight: 700; border: 1px solid var(--gold-line); }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-foot .who span { font-size: 11px; color: var(--text3); }

.main { flex: 1; margin-left: var(--side); min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 14px 32px; background: rgba(8, 8, 10, .82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .menu { display: none; }
.search { flex: 1; max-width: 520px; position: relative; }
.search input[type=search] { width: 100%; padding: 10px 14px 10px 40px; border-radius: 11px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text3); }
.top .spacer { flex: 1; }
.content { padding: 28px 32px 60px; max-width: 1480px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.head p { margin: 6px 0 0; color: var(--text2); max-width: 760px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--text3); font-size: 13px; margin-bottom: 8px; }
.crumb a { color: var(--text2); }
.head .acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- cards, grids */
.card { background: linear-gradient(180deg, var(--surface), #111114); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; }
.grid > .card, .stack > .card { margin-top: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.card-h h3 svg { color: var(--gold); }
.card-h .sub { color: var(--text3); font-size: 12.5px; }
.card-b { padding: 18px 20px; }
.card-b.flush { padding: 0; }
.card-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 380px; }
.g-wide { grid-template-columns: 330px minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }

/* KPI tiles */
.kpi { padding: 18px 20px; position: relative; overflow: hidden; }
.kpi .lbl { display: flex; align-items: center; gap: 8px; color: var(--text2); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.kpi .lbl svg { color: var(--gold); }
.kpi .val { font-size: 30px; font-weight: 750; margin-top: 8px; letter-spacing: -.02em; }
.kpi .val small { font-size: 13px; font-weight: 500; color: var(--text3); margin-left: 6px; }
.kpi .foot { margin-top: 6px; font-size: 12.5px; color: var(--text3); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 185, 73, .10), transparent 70%); }
.kpi.link { display: block; color: inherit; transition: border-color .15s, transform .15s; }
.kpi.link:hover { border-color: var(--gold-line); transform: translateY(-1px); color: inherit; }

/* bars */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.bars .bar i { display: block; width: 100%; max-width: 30px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--gold2), #b98a2b); min-height: 2px; }
.bars .bar span { font-size: 10.5px; color: var(--text3); }
.mix { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: var(--raise); }
.mix i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12.5px; color: var(--text2); }
.legend b { color: var(--text); margin-left: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---------------------------------------------------------------- chips, buttons */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--raise); color: var(--text2); border: 1px solid transparent; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.gold { background: var(--gold-dim); color: var(--gold2); border-color: rgba(233, 185, 73, .22); }
.chip.green { background: var(--green-dim); color: #6fe0a6; }
.chip.red { background: var(--red-dim); color: #ff8a87; }
.chip.blue { background: var(--blue-dim); color: #93bdfa; }
.chip.purple { background: var(--purple-dim); color: #c5b3ff; }
.chip.amber { background: var(--amber-dim); color: #ffc274; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: 10px;
  border: 1px solid var(--line2); background: var(--surface2); color: var(--text); font: 600 13.5px var(--font);
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .1s; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--raise); border-color: #44444f; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn.gold { background: linear-gradient(180deg, #f3cc66, #d9a53a); border-color: #f0c55c; color: var(--gold-ink); box-shadow: 0 6px 18px rgba(233, 185, 73, .18); }
.btn.gold:hover { background: linear-gradient(180deg, #f8d77e, #e3b046); color: var(--gold-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); }
.btn.ghost:hover { background: var(--surface2); color: var(--text); }
.btn.danger { background: transparent; border-color: rgba(239, 85, 82, .45); color: #ff8a87; }
.btn.danger:hover { background: var(--red-dim); border-color: var(--red); color: #ffb0ae; }
.btn.ok { background: transparent; border-color: rgba(53, 196, 124, .45); color: #6fe0a6; }
.btn.ok:hover { background: var(--green-dim); }
.btn.sm { padding: 6px 11px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { padding: 7px; width: 34px; height: 34px; }
.btn.icon.sm { width: 30px; height: 30px; padding: 6px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.acts-row { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }

/* ---------------------------------------------------------------- forms */
input[type=text], input[type=password], input[type=email], input[type=search], input[type=number], input[type=date], input[type=url], select, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--line2); color: var(--text); border-radius: 10px;
  padding: 10px 13px; font: 14px var(--font); transition: border-color .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: #5f5f6b; }
input:hover, select:hover, textarea:hover { border-color: #43434d; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); background: #0b0b0e; box-shadow: 0 0 0 3px var(--gold-dim); }
textarea { min-height: 120px; resize: vertical; font-family: var(--mono); font-size: 13px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
label.f { display: block; }
label.f > span { display: block; font-size: 12.5px; font-weight: 600; color: var(--text2); margin-bottom: 7px; }
.hint { font-size: 12.5px; color: var(--text3); margin-top: 6px; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text2); user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text2); }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 38px; height: 22px; border-radius: 20px; background: var(--raise); border: 1px solid var(--line2); position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8a8a96; transition: transform .15s, background .15s; }
.switch input:checked + i { background: var(--gold-dim); border-color: var(--gold-line); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--gold); }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9px; color: var(--text2); font-weight: 600; }
.seg input:checked + span { background: var(--gold-dim); color: var(--gold2); box-shadow: inset 0 0 0 1px var(--gold-line); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); }

/* ---------------------------------------------------------------- tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text3); padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .012); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .022); }
.tbl tr[data-href] { cursor: pointer; }
.tbl .t-main { font-weight: 600; color: var(--text); }
.tbl .t-sub { font-size: 12.5px; color: var(--text3); margin-top: 2px; }
.empty { text-align: center; padding: 46px 20px; color: var(--text3); }
.empty svg { width: 34px; height: 34px; color: #4b4b56; display: block; margin: 0 auto 10px; }
.empty b { display: block; color: var(--text2); margin-bottom: 4px; font-size: 15px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.toolbar input[type=search] { max-width: 340px; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar .grow { flex: 1; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text3); font-size: 13px; flex-wrap: wrap; }
.pager .pg { display: flex; gap: 6px; }

/* ---------------------------------------------------------------- key / value, secrets, timeline */
dl.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 11px 16px; margin: 0; }
dl.kv dt { color: var(--text3); font-size: 13px; }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.secret { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 6px 6px 12px; }
.secret code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; color: var(--text); }
.secret code.masked { letter-spacing: .25em; color: var(--text3); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline .tdot { width: 10px; height: 10px; border-radius: 50%; margin: 5px 0 0 6px; background: var(--line2); box-shadow: 0 0 0 4px rgba(255, 255, 255, .02); }
.timeline .tdot.gold { background: var(--gold); }
.timeline .tdot.green { background: var(--green); }
.timeline .tdot.red { background: var(--red); }
.timeline .tdot.blue { background: var(--blue); }
.timeline b { font-weight: 600; }
.timeline .det { color: var(--text3); font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; }
.more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; padding: 10px; border-top: 1px solid var(--line); color: var(--gold2); font-size: 13px; font-weight: 600; }
.more:hover { color: var(--gold); }
.timeline time { color: var(--text3); font-size: 12px; white-space: nowrap; }
.progress { height: 8px; border-radius: 8px; background: var(--raise); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #c9952f, var(--gold2)); }

/* ---------------------------------------------------------------- notices */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; }
.flash svg { margin-top: 1px; }
.flash.ok { background: var(--green-dim); border-color: rgba(53, 196, 124, .35); color: #a8f0c9; }
.flash.err { background: var(--red-dim); border-color: rgba(239, 85, 82, .4); color: #ffc0be; }
.flash.info { background: var(--blue-dim); border-color: rgba(93, 157, 245, .35); color: #c3dafd; }
.flash.warn { background: var(--amber-dim); border-color: rgba(243, 163, 58, .38); color: #ffd7a1; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.flash .grow { flex: 1; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks .st { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.checks .st.ok { background: var(--green-dim); color: var(--green); }
.checks .st.bad { background: var(--red-dim); color: var(--red); }
.checks .st.warn { background: var(--amber-dim); color: var(--amber); }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--text3); font-size: 12.5px; }

/* tabs */
.tabs { display: flex; gap: 4px; box-shadow: inset 0 -1px 0 var(--line); padding: 0 12px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { background: none; border: 0; padding: 13px 14px; color: var(--text2); font: 600 13.5px var(--font); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--gold2); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* provider list */
.plist a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.plist a:last-child { border-bottom: 0; }
.plist a:hover { background: rgba(255, 255, 255, .02); }
.plist a.on { background: linear-gradient(90deg, var(--gold-dim), transparent); box-shadow: inset 3px 0 0 var(--gold); }
.plist .pic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--raise); color: var(--gold); flex: none; }
.plist b { display: block; }
.plist span { color: var(--text3); font-size: 12.5px; }

/* ---------------------------------------------------------------- modal */
.modal-bg { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .66); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-bg.on { display: flex; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.modal .mh { padding: 18px 20px 6px; font-size: 16px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.modal .mb { padding: 6px 20px 18px; color: var(--text2); }
.modal .mf { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 70; background: var(--raise); border: 1px solid var(--gold-line); color: var(--text); padding: 10px 18px; border-radius: 12px; transition: all .2s; pointer-events: none; box-shadow: var(--shadow); }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------------- login */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login { width: 100%; max-width: 410px; }
.login .card { padding: 34px 32px 30px; }
.login .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 26px; }
.login .logo img { height: 46px; }
.login .logo span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--text3); }
.login h1 { font-size: 20px; margin: 0 0 4px; text-align: center; }
.login p.lead { color: var(--text3); text-align: center; margin: 0 0 22px; }
.login .btn { width: 100%; padding: 12px; font-size: 14.5px; }
.login .foot { text-align: center; margin-top: 18px; color: var(--text3); font-size: 12.5px; }
.login-icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); border: 1px solid var(--gold-line); }
.login-icon svg { width: 26px; height: 26px; }
.login-note { text-align: center; color: var(--text3); font-size: 12.5px; margin: 14px 0 0; }
.login-note a { display: inline-flex; align-items: center; gap: 6px; }
.login .cf-turnstile { min-height: 65px; }

/* Admins & security */
.kpi .val.sm { font-size: 17px; font-weight: 700; margin-top: 10px; letter-spacing: 0; }
.kpi .val.sm .chip { font-size: 13px; padding: 4px 12px; }
.lead-sm { margin: 0 0 4px; color: var(--text2); line-height: 1.55; }
input.otp { font-family: var(--mono); font-size: 20px; letter-spacing: .3em; text-align: center; max-width: 220px; }
.login input.otp { max-width: none; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 18px; }
.steps > li { counter-increment: st; position: relative; padding-left: 40px; color: var(--text2); line-height: 1.5; }
.steps > li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-dim); color: var(--gold2); border: 1px solid var(--gold-line); font-weight: 700; font-size: 13px; }
.steps > li b { color: var(--text); }
.steps input.otp { display: block; margin-top: 10px; }
.qr-box { display: flex; gap: 18px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.qr { background: #fff; border-radius: 12px; padding: 8px; line-height: 0; box-shadow: 0 0 0 1px var(--gold-line); }
.qr svg { display: block; }
.qr-side { flex: 1; min-width: 200px; display: grid; gap: 8px; font-size: 12.5px; }
.qr-side code { letter-spacing: .08em; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 4px; }
.codes code { font-family: var(--mono); font-size: 15px; text-align: center; padding: 10px; border-radius: 10px; background: var(--bg2); border: 1px dashed var(--gold-line); color: var(--gold2); letter-spacing: .06em; }
.card-more { border-top: 1px solid var(--line); }
.card-more summary { cursor: pointer; padding: 14px 20px; color: var(--text2); font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 8px; list-style: none; }
.card-more summary::-webkit-details-marker { display: none; }
.card-more summary:hover { color: var(--text); }
.card-more[open] summary { color: var(--gold2); }
.card-more form { padding: 0 20px 18px; }
.card-more .acts-row { justify-content: flex-start; flex-wrap: wrap; }
.who-cell { display: flex; align-items: center; gap: 12px; }
.warn-text { color: #ffc274; }
.add-admin { border-top: 1px solid var(--line); }
.add-admin h4 { margin: 0; font-size: 13.5px; display: flex; align-items: center; gap: 8px; color: var(--text2); }
.add-admin .row { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
#account, #twofa, #turnstile, #team { scroll-margin-top: 80px; }
.lock-box { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--red-dim); border: 1px solid rgba(239, 85, 82, .3); }
.lock-box form { justify-self: start; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .g3, .g2, .g-wide { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .side { transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .side.open { transform: none; }
  .main { margin-left: 0; }
  .top { padding: 12px 16px; }
  .top .menu { display: inline-flex; }
  .content { padding: 20px 16px 50px; }
  dl.kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  dl.kv dd { margin-bottom: 10px; }
  .tbl th.opt, .tbl td.opt { display: none; }
}
@media (max-width: 560px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px 14px; }
  .kpi .val { font-size: 24px; margin-top: 4px; }
  .kpi .foot { font-size: 11.5px; }
  .top { gap: 10px; }
  .top .spacer { display: none; }
  .search { max-width: none; }
  .top .btn.gold { padding-left: 12px; padding-right: 12px; }
  .top .btn.gold span { display: none; }
  .head h1 { font-size: 22px; }
  .tbl th.opt2, .tbl td.opt2 { display: none; }
  .login-page { padding: 16px; }
  .login .card { padding: 26px 18px 22px; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .toolbar input[type=search] { flex: 1 1 100%; max-width: none; }
  .toolbar select { flex: 1 1 140px; min-width: 0; }
  .toolbar .btn { flex: 0 0 auto; }
}
