/* ========= Adbidvertiser design system ========= */
:root {
  --bg: #0b0d14;
  --bg-soft: #10131d;
  --surface: #161a27;
  --surface-2: #1c2132;
  --surface-3: #232941;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f8;
  --text-dim: #9aa1b5;
  --text-faint: #6b7288;
  --brand: #6366f1;
  --brand-2: #a855f7;
  --accent: #22d3ee;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --green: #34d399;
  --red: #f87171;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1200px 600px at 80% -100px, rgba(99, 102, 241, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }
img { display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 13, 20, 0.78);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.logo-mark img { width: 100%; height: 100%; }
.header-nav { display: flex; gap: 4px; margin-left: 8px; }
.header-nav a {
  color: var(--text-dim); padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
}
.header-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.header-nav a.active { color: var(--text); background: var(--surface-2); }
.header-spacer { flex: 1; }
.header-countdown {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px;
  font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap;
}
.header-countdown b { color: var(--gold); font-weight: 700; }
.header-ledger {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 7px 5px 11px;
  border: 1px solid rgba(34, 211, 238, 0.24); border-radius: 999px;
  background: rgba(34, 211, 238, 0.08); color: var(--text-dim); white-space: nowrap;
}
.header-ledger-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--accent); }
.header-ledger-select {
  max-width: 176px; min-width: 132px; border: 0; outline: none;
  color: var(--text); background: var(--bg-soft); border-radius: 999px;
  padding: 5px 9px; font-size: 12px; font-weight: 700;
}
.header-auth { display: flex; gap: 10px; align-items: center; }
.header-user {
  max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.10); color: var(--gold);
  font-size: 13px; font-weight: 800;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.15s ease;
  background: var(--surface-2); color: var(--text); text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.15); transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1204;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.3);
}
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: rgba(248, 113, 113, 0.14); color: var(--red); border-color: rgba(248, 113, 113, 0.3); }
.btn-sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 3px 9px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 30px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -0.03em; line-height: 1.1;
  background: linear-gradient(120deg, #fff 30%, #b4b9f8 70%, #d8b4fe);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { margin: 16px auto 0; max-width: 640px; color: var(--text-dim); font-size: 17px; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-disclaimer { margin-top: 18px; font-size: 12px; color: var(--text-faint); }

/* ---------- Section headings ---------- */
.section { margin: 44px 0; scroll-margin-top: 80px; }
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.section-head .sub { color: var(--text-faint); font-size: 13px; }
.section-head .spacer { flex: 1; }
.slot-badge {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--brand-2); background: rgba(168, 85, 247, 0.12); padding: 3px 10px; border-radius: 999px;
}

/* ---------- Top Sponsor Spotlight (Slot 1) ---------- */
.spotlight {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(140deg, rgba(251, 191, 36, 0.12), rgba(245, 158, 11, 0.04) 45%, var(--surface));
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 0 60px rgba(251, 191, 36, 0.08), var(--shadow);
  padding: 30px; display: grid; grid-template-columns: 130px 1fr auto; gap: 26px; align-items: center;
}
.spotlight::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px 200px at 15% 0%, rgba(251, 191, 36, 0.12), transparent);
}
.spotlight-img { width: 130px; height: 130px; border-radius: 18px; overflow: hidden; border: 2px solid rgba(251, 191, 36, 0.5); box-shadow: 0 6px 24px rgba(0,0,0,0.4); }
.spotlight-img svg, .spotlight-img img { width: 100%; height: 100%; }
.spotlight-crown { position: absolute; top: 14px; right: 18px; font-size: 22px; }
.spotlight-label { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.spotlight-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.spotlight-ad { margin-top: 8px; color: var(--text); font-size: 16px; max-width: 560px; }
.spotlight-meta { display: flex; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat .k { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); }
.stat .v { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat .v.gold { color: var(--gold); }
.stat .v.cyan { color: var(--accent); }
.spotlight-side { text-align: center; min-width: 190px; }
.countdown-box { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-strong); border-radius: 14px; padding: 14px 18px; }
.countdown-box .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); }
.countdown-box .time { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); margin-top: 3px; }
.sister-chip { margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); background: rgba(34, 211, 238, 0.1); padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(34, 211, 238, 0.25); }
.spotlight-empty { padding: 44px 30px; text-align: center; border-radius: 22px; border: 1px dashed rgba(251, 191, 36, 0.4); background: var(--surface); }
.spotlight-empty h3 { color: var(--gold); font-size: 20px; margin-bottom: 6px; }
.spotlight-empty p { color: var(--text-dim); font-size: 14px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 14px; }
.grid-rising { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.grid-rotation { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; transition: border-color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.ad-card { display: flex; flex-direction: column; gap: 10px; min-height: 100%; }
.ad-card-top { display: flex; gap: 12px; align-items: center; }
.ad-avatar { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.ad-avatar svg, .ad-avatar img { width: 100%; height: 100%; }
.ad-name { font-weight: 700; font-size: 14px; }
.ad-cat { font-size: 11px; color: var(--text-faint); }
.ad-text { font-size: 13px; color: var(--text-dim); flex: 1; }
.ad-scores { display: flex; gap: 14px; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.ad-scores b { color: var(--text); font-weight: 700; }
.ad-cta { font-size: 13px; font-weight: 600; }
.needed-chip { font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.25); padding: 3px 9px; border-radius: 999px; }
.rank-badge {
  position: absolute; top: -9px; left: -9px; width: 28px; height: 28px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Ledger table ---------- */
.ledger-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.ledger-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.ledger-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.ledger-table tr:last-child td { border-bottom: none; }
.ledger-table tr:hover td { background: rgba(255, 255, 255, 0.02); }
.pos-cell { font-weight: 800; color: var(--brand-2); font-variant-numeric: tabular-nums; width: 52px; }
.pos-cell.top3 { color: var(--gold); }
.ledger-user { display: flex; gap: 10px; align-items: center; }
.ledger-avatar { width: 36px; height: 36px; border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.ledger-avatar svg { width: 100%; height: 100%; }
.ledger-adtext { color: var(--text-dim); font-size: 13px; max-width: 380px; }
.num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cat-chip { font-size: 11px; color: var(--text-dim); background: var(--surface-2); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.time-in-pos { font-size: 12px; color: var(--text-faint); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-chip {
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-dim);
}
.filter-chip:hover { color: var(--text); border-color: var(--border-strong); }
.filter-chip.active { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.ledger-selector {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--surface); min-height: 40px;
}
.ledger-country-select {
  min-width: 150px; max-width: 240px; border: 0; outline: none;
  color: var(--text); background: var(--bg-soft); border-radius: 8px; padding: 7px 9px;
}
/* ---------- Rotation slots ---------- */
.rot-slot { display: flex; flex-direction: column; }
.rot-slot .card { flex: 1; animation: fadeIn 0.4s ease; }
.rot-controls { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 7px; }
.rot-btn {
  width: 28px; height: 24px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-faint); cursor: pointer; font-size: 11px;
  display: grid; place-items: center; transition: all 0.12s;
}
.rot-btn:hover { color: var(--text); border-color: var(--border-strong); }
.rot-btn.on { color: var(--gold); border-color: rgba(251, 191, 36, 0.4); }
.rot-progress { height: 2px; background: var(--surface-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.rot-progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1s linear; }
.rot-slot-empty { border: 1px dashed var(--border); border-radius: var(--radius); display: grid; place-items: center; color: var(--text-faint); font-size: 12px; min-height: 150px; }
.cat-group-label { grid-column: 1 / -1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-top: 8px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(5, 6, 10, 0.7); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fadeIn 0.15s ease;
}
.modal {
  width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 20px;
  padding: 26px; box-shadow: var(--shadow);
}
.modal.wide { max-width: 720px; }
.modal h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.modal .modal-sub { color: var(--text-faint); font-size: 13px; margin-bottom: 18px; }
.modal-close { position: sticky; float: right; top: 0; background: none; border: none; color: var(--text-faint); font-size: 22px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }

.history-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-item:last-child { border-bottom: none; }
.history-meta { font-size: 11px; color: var(--text-faint); }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; font-size: 14px;
  background: var(--bg-soft); border: 1px solid var(--border-strong); color: var(--text);
  font-family: inherit; outline: none; transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-dim); margin: 14px 0; }
.checkbox-row input { margin-top: 3px; }

.form-error { background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); color: var(--red); padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }
.form-success { background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--green); padding: 10px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; }

/* ---------- Auth pages ---------- */
.auth-wrap { max-width: 420px; margin: 60px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.auth-card h2 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-faint); font-size: 14px; margin-bottom: 22px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-dim); }

/* ---------- Dashboard ---------- */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 26px; margin: 34px 0; align-items: start; }
.dash-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 3px; }
.dash-nav button {
  text-align: left; padding: 10px 14px; border-radius: 10px; border: none; background: none;
  color: var(--text-dim); font-size: 14px; font-weight: 500; cursor: pointer;
}
.dash-nav button:hover { background: var(--surface); color: var(--text); }
.dash-nav button.active { background: var(--surface-2); color: var(--text); font-weight: 700; }
.dash-panel { min-width: 0; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat-card .k { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card .v { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.stat-card .v.gold { color: var(--gold); } .stat-card .v.cyan { color: var(--accent); }
.stat-card .v.green { color: var(--green); } .stat-card .v.violet { color: var(--brand-2); }
.stat-card .d { font-size: 12px; color: var(--text-faint); margin-top: 3px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.panel h3 { font-size: 16px; font-weight: 700; margin-bottom: 14px; }
.panel .panel-sub { font-size: 13px; color: var(--text-faint); margin: -10px 0 16px; }
.bonus-rules-details > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.bonus-rules-details > summary::-webkit-details-marker { display: none; }
.bonus-rules-link {
  color: var(--accent); font-size: 16px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px;
}
.bonus-rules-hint {
  color: var(--text-faint); font-size: 12px; font-weight: 700;
}
.bonus-rules-details > summary::after {
  content: '›'; color: var(--text-faint); font-size: 24px; line-height: 1; transition: transform .18s;
}
.bonus-rules-details[open] > summary { margin-bottom: 14px; }
.bonus-rules-details[open] > summary::after { transform: rotate(90deg); }
.bonus-rules-details[open] .bonus-rules-hint { font-size: 0; }
.bonus-rules-details[open] .bonus-rules-hint::before { content: 'Expanded'; font-size: 12px; }
.bonus-rules-sub { margin-top: 0 !important; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { text-align: left; padding: 8px 10px; color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; border-bottom: 1px solid var(--border); }
.data-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.green { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.badge.red { background: rgba(248, 113, 113, 0.12); color: var(--red); }
.badge.gold { background: rgba(251, 191, 36, 0.12); color: var(--gold); }
.badge.gray { background: var(--surface-2); color: var(--text-dim); }
.badge.violet { background: rgba(168, 85, 247, 0.14); color: #c084fc; }
.badge.cyan { background: rgba(34, 211, 238, 0.12); color: var(--accent); }

.verify-banner {
  background: rgba(251, 191, 36, 0.08); border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 12px; padding: 14px 18px; margin: 18px 0; display: flex; gap: 12px; align-items: center;
  font-size: 14px; color: var(--text-dim); flex-wrap: wrap;
}

.info-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px; align-items: center; border: 1px solid var(--border-strong);
  border-radius: 18px; padding: 22px; box-shadow: var(--shadow);
}
.info-banner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), transparent 45%, rgba(34, 211, 238, 0.10));
}
.info-banner-content, .info-banner-media { position: relative; z-index: 1; }
.info-banner-kicker {
  display: inline-flex; margin-bottom: 8px; color: var(--gold); font-size: 11px; font-weight: 800;
  letter-spacing: 0.10em; text-transform: uppercase;
}
.info-banner h2, .info-banner h3 { margin: 0 0 6px; font-weight: 900; letter-spacing: 0; line-height: 1.12; }
.info-banner p { color: var(--text-dim); max-width: 720px; }
.info-banner .btn { margin-top: 14px; }
.info-banner-media {
  width: 170px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16); background: var(--surface-2);
}
.info-banner-media img { width: 100%; height: 100%; object-fit: cover; }
.homepage-banner {
  margin: 28px 0 10px; background: linear-gradient(135deg, rgba(22, 26, 39, 0.98), rgba(28, 33, 50, 0.92));
}
.homepage-banner h2 { font-size: 24px; }
.dashboard-banner {
  margin: 18px 0 8px; padding: 26px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.26), rgba(22, 26, 39, 0.94) 50%, rgba(251, 191, 36, 0.14));
}
.dashboard-banner h2 { font-size: 28px; }
.coupon-redeem-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.coupon-code { font-weight: 800; letter-spacing: 0.08em; color: var(--gold); }
.banner-preview {
  width: 180px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border-strong);
}
.banner-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Admin ---------- */
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 26px 0 22px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.admin-tabs button {
  padding: 8px 14px; border-radius: 9px; border: none; background: none; color: var(--text-dim);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.admin-tabs button:hover { background: var(--surface); color: var(--text); }
.admin-tabs button.active { background: var(--surface-2); color: var(--text); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ---------- Advertiser hover/tap preview ---------- */
.hover-dim {
  position: fixed; inset: 0; z-index: 299; display: none;
  background: rgba(5, 6, 10, 0.55); backdrop-filter: blur(2px);
  animation: fadeIn 0.15s ease;
  pointer-events: none; /* must never intercept the hover that opened it */
}
.hover-dim.show { display: block; }
.hover-preview {
  position: fixed; z-index: 300; display: none; pointer-events: none;
  left: 0; top: 0;
  width: min(560px, 92vw);
  align-items: center; gap: clamp(14px, 2.5vw, 22px);
  padding: clamp(14px, 2.5vw, 22px);
  background: rgba(13, 16, 26, 0.94); backdrop-filter: blur(16px);
  border: 1px solid var(--border-strong); border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(99, 102, 241, 0.25);
  animation: fadeIn 0.12s ease;
}
.hover-preview.show { display: flex; }
.hover-preview .hp-img {
  width: clamp(140px, 22vw, 220px); aspect-ratio: 1; flex-shrink: 0;
  border-radius: 16px; overflow: hidden; border: 2px solid var(--border-strong);
}
.hover-preview .hp-img img { width: 100%; height: 100%; display: block; }
.hover-preview .hp-body { min-width: 0; }
.hover-preview .hp-name {
  font-size: clamp(20px, 3vw, 28px); font-weight: 800; letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.hover-preview .hp-text {
  font-size: clamp(15px, 2.2vw, 19px); line-height: 1.55; color: var(--text-dim);
  margin-top: 8px; overflow-wrap: break-word;
}
/* Touch devices: centered modal variant with darkened backdrop */
.hover-preview.modal-mode {
  pointer-events: auto;
  left: 50% !important; top: 50% !important; transform: translate(-50%, -50%);
  flex-direction: column; text-align: center; max-height: 86vh; overflow-y: auto;
}
.hover-preview.modal-mode .hp-img { width: clamp(160px, 48vw, 260px); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
  padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
  animation: slideUp 0.25s ease; max-width: 380px;
}
.toast.error { border-color: rgba(248, 113, 113, 0.4); }
.toast.success { border-color: rgba(52, 211, 153, 0.4); }
.toast.fade-out { opacity: 0; transition: opacity 0.3s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Break banner ---------- */
.break-banner {
  text-align: center; padding: 60px 30px; border-radius: 22px; margin: 20px 0;
  background: linear-gradient(140deg, rgba(34, 211, 238, 0.08), var(--surface));
  border: 1px solid rgba(34, 211, 238, 0.3);
}
.break-banner h2 { font-size: 26px; font-weight: 800; }
.break-banner .time { font-size: 44px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; margin: 14px 0; }

/* ---------- Sister site preview ---------- */
.sister-frame { border: 1px solid var(--border-strong); border-radius: 18px; overflow: hidden; margin: 30px 0; }
.sister-head { background: #f4f4f6; color: #333; padding: 14px 22px; font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.sister-body { background: #fff; color: #222; padding: 26px; }
.sister-ad { border: 2px solid var(--gold-2); border-radius: 14px; padding: 18px; display: flex; gap: 16px; align-items: center; background: #fffbeb; }
.sister-tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: #b45309; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 70px; padding: 34px 0; color: var(--text-faint); font-size: 13px; }
.site-footer .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.footer-note { max-width: 560px; line-height: 1.6; }

.empty-note { color: var(--text-faint); font-size: 14px; padding: 26px; text-align: center; }
.mono { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 12px; }
.dim { color: var(--text-dim); } .faint { color: var(--text-faint); }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.right { margin-left: auto; }

/* ---------- CSP-safe utilities ---------- */
.is-hidden { display: none !important; }
.container-narrow { max-width: 760px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-accent { color: var(--accent); }
.text-red { color: var(--red); }
.text-small { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-body-sm { font-size: 13px; }
.text-body { font-size: 14px; }
.text-strong { font-weight: 700; }
.text-semibold { font-weight: 600; }
.text-value { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.text-block { line-height: 1.7; }
.ml-xs { margin-left: 4px; }
.ml-sm { margin-left: 10px; }
.mt-xs { margin-top: 4px; }
.mt-sm { margin-top: 10px; }
.mb-xs { margin-bottom: 4px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 10px; }
.my-xs { margin: 4px 0; }
.my-sm { margin: 6px 0; }
.field-tight { margin: 0; }
.field-compact { margin-bottom: 8px; }
.flex-1 { flex: 1; }
.flex-min { flex: 1; min-width: 0; }
.flex-min-200 { flex: 1; min-width: 200px; }
.flex-min-220 { flex: 1; min-width: 220px; }
.table-scroll { overflow-x: auto; }
.grid-spark { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card-compact { padding: 12px; }
.card-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.copy-input {
  flex: 1; padding: 10px 14px; border-radius: 10px; background: var(--bg-soft);
  border: 1px solid var(--border-strong); color: var(--text);
}
.trend { font-size: 12px; font-weight: 700; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.trend.flat { color: var(--text-faint); }
.spark-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint);
}
.spark-svg { width: 100%; height: 60px; display: block; margin-top: 4px; }
.hero-text { display: flex; flex-direction: column; justify-content: center; transition: opacity 0.4s; }
.hero-text-stable { min-height: 150px; }
.hero-probe { visibility: hidden; padding: 0; margin: 0; pointer-events: none; }
.fade-text { transition: opacity 0.4s; }
.opacity-0 { opacity: 0; }
.opacity-1 { opacity: 1; }
.report-link { font-size: 11px; }
.ledger-name { font-weight: 700; font-size: 13px; }
.sister-copy { color: #555; margin-bottom: 16px; font-size: 14px; }
.sister-avatar { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.sister-avatar img { width: 100%; height: 100%; }
.sister-name { font-weight: 800; margin: 2px 0; }
.sister-text { font-size: 14px; color: #444; }
.sister-link { color: #b45309; font-weight: 700; font-size: 13px; }
.sister-empty { border: 2px dashed #ddd; border-radius: 14px; padding: 24px; text-align: center; color: #999; }

/* ---------- Inbox ---------- */
.email-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.email-card .from { font-size: 12px; color: var(--text-faint); }
.email-card .subject { font-weight: 700; margin: 4px 0 10px; }
.email-body { background: var(--bg-soft); border-radius: 10px; padding: 16px; font-size: 14px; color: var(--text-dim); }
.email-body a.btn { margin: 8px 0; }
.email-body p { margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .spotlight { grid-template-columns: 90px 1fr; }
  .spotlight-img { width: 90px; height: 90px; }
  .spotlight-side { grid-column: 1 / -1; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-nav { position: static; flex-direction: row; flex-wrap: wrap; }
  .header-nav { display: none; }
  .header-inner { gap: 10px; }
  .header-auth { gap: 6px; }
  .header-user { max-width: 150px; padding-inline: 10px; }
  .header-ledger-label { display: none; }
  .header-ledger { padding: 4px; }
  .header-ledger-select { min-width: 92px; max-width: 126px; padding: 5px 7px; }
  .ledger-adtext { max-width: 200px; }
  .hide-mobile { display: none; }
  .info-banner { grid-template-columns: 1fr; }
  .info-banner-media { width: 100%; max-height: 220px; }
}

/* ================= Share ("make the spectacle travel") ================= */
.share-ico { display: inline-flex; align-items: center; justify-content: center; }
.share-ico .ico { width: 18px; height: 18px; display: block; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 8px; cursor: pointer; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
.share-btn:hover { color: var(--text); border-color: var(--brand); background: var(--surface-3); }
.share-btn.labelled { padding: 6px 12px; font-size: 13px; font-weight: 600; }
.share-btn.share-btn-lg { padding: 9px 16px; font-size: 14px; font-weight: 700; color: var(--text); }
.country-flag {
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  margin-left: 6px; padding: 2px 5px; border-radius: 999px;
  background: rgba(34, 211, 238, 0.10); border: 1px solid rgba(34, 211, 238, 0.24);
  line-height: 1; vertical-align: 0.05em; filter: saturate(1.08);
}
.country-flag-emoji { font-size: 14px; line-height: 1; }
.country-flag-code { font-size: 10px; font-weight: 900; color: var(--accent); }
.spotlight-name .country-flag { vertical-align: 0.18em; }
.spotlight-name .country-flag-emoji { font-size: 17px; }
.spotlight-name .country-flag-code { font-size: 11px; }
.ledger-name .country-flag { margin-left: 4px; padding-inline: 4px; }
.ledger-name .country-flag-emoji { font-size: 13px; }
.ledger-name .country-flag-code { font-size: 9px; }

.share-sheet { display: flex; flex-direction: column; gap: 14px; }
.share-sheet h3 { font-size: 18px; font-weight: 800; }
.share-target-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--text-dim); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0;
}
.share-target-select {
  min-width: 150px; padding: 8px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  font-size: 13px; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.share-preview {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  background: var(--bg); aspect-ratio: 1200 / 630;
}
.share-preview img { width: 100%; height: 100%; display: block; object-fit: cover; }
.share-caption { color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.share-nets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.share-net {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 6px; border-radius: 12px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); font-size: 12px; font-weight: 600; transition: transform .12s, border-color .15s;
}
.share-net:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.share-net .ico { width: 26px; height: 26px; }
.share-net.whatsapp { color: #25d366; }
.share-net.x { color: #e7e9ea; }
.share-net.telegram { color: #29a9eb; }
.share-net.facebook { color: #4c8bf5; }
.share-copy-row { display: flex; gap: 8px; }
.share-link {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 9px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-dim); font-size: 13px;
}
.share-copy-row .btn { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* Live activity feed */
.activity-strip {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 10px 14px; overflow: hidden;
}
.activity-live {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; color: #f87171; text-transform: uppercase;
}
.activity-live .dot { width: 9px; height: 9px; border-radius: 50%; background: #f87171; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.activity-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.activity-track::-webkit-scrollbar { display: none; }
.activity-item {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 6px 5px 13px; font-size: 13px; color: var(--text-dim); white-space: nowrap;
}
.activity-item b { color: var(--text); }
.activity-item .share-btn { padding: 3px 6px; }
.activity-item .share-ico .ico { width: 15px; height: 15px; }

/* Shared links open the live ledger with one advertiser visually isolated. */
.share-ledger-loading {
  min-height: 55vh; display: flex; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-dim); font-size: 14px; font-weight: 700;
}
.share-ledger-loading-mark {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong);
  border-top-color: var(--accent); animation: shareLedgerSpin .8s linear infinite;
}
@keyframes shareLedgerSpin { to { transform: rotate(360deg); } }

.country-switch-countdown {
  position: fixed; left: 50%; top: 92px; z-index: 88; transform: translateX(-50%);
  width: min(720px, calc(100vw - 28px)); padding: 18px 22px 20px;
  border: 1px solid rgba(34, 211, 238, .48); border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 20, 36, .96), rgba(34, 22, 54, .95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, .52), 0 0 42px rgba(34, 211, 238, .18);
  text-align: center; color: var(--text); backdrop-filter: blur(14px);
}
.switch-countdown-eyebrow {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 10px; border-radius: 999px; background: rgba(34, 211, 238, .12);
  color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.switch-countdown-title {
  margin-top: 10px; font-size: 22px; font-weight: 900;
}
.switch-countdown-copy {
  max-width: 560px; margin: 6px auto 0; color: var(--text-dim); font-size: 14px; line-height: 1.45;
}
.switch-countdown-clock {
  margin: 10px auto 0; font-size: var(--switch-countdown-size); line-height: .96;
  font-weight: 950; font-variant-numeric: tabular-nums; color: #fff;
  text-shadow: 0 0 22px rgba(34, 211, 238, .72), 0 0 54px rgba(168, 85, 247, .45);
}
.switch-countdown-label {
  color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.switch-countdown-actions {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 15px;
}

.country-switch-notice {
  position: fixed; right: 22px; top: 86px; z-index: 89;
  width: min(390px, calc(100vw - 28px)); padding: 16px 48px 16px 18px;
  border: 1px solid rgba(34, 211, 238, .45); border-radius: 16px;
  background: linear-gradient(145deg, rgba(14, 20, 36, .97), rgba(28, 20, 48, .96));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .46), 0 0 30px rgba(34, 211, 238, .18);
  color: var(--text); font-size: var(--switch-notice-size); backdrop-filter: blur(14px);
}
.switch-notice-kicker {
  color: var(--accent); font-size: .72em; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.switch-notice-text {
  margin: 4px 0 12px; font-size: 1em; font-weight: 850; line-height: 1.25;
}
.switch-notice-close {
  position: absolute; right: 10px; top: 9px; width: 30px; height: 30px;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2);
  color: var(--text-dim); font-size: 20px; line-height: 1; cursor: pointer;
}
.switch-notice-close:hover { color: var(--text); border-color: var(--accent); }

.share-focus-overlay {
  position: fixed; inset: 0; z-index: 75; cursor: pointer;
  background: rgba(8, 10, 16, 0.44);
  backdrop-filter: grayscale(.68) brightness(.74);
  animation: fadeIn .2s ease;
}
.share-focus-target {
  position: relative !important; z-index: 76 !important; isolation: isolate;
  filter: saturate(1.35) brightness(1.16);
  outline: 3px solid var(--accent); outline-offset: 5px;
  box-shadow: 0 0 0 9px rgba(99, 102, 241, .24), 0 0 34px rgba(34, 211, 238, .72), 0 0 80px rgba(168, 85, 247, .45) !important;
  animation: shareFocusGlow 1.5s ease-in-out infinite alternate;
}
.ledger-table tr.share-focus-target { outline-offset: -2px; }
.ledger-table tr.share-focus-target td { background: var(--surface-3); }
@keyframes shareFocusGlow {
  from { filter: saturate(1.25) brightness(1.1); }
  to { filter: saturate(1.5) brightness(1.25); }
}

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(34, 211, 238, .5); border-radius: 50%;
  background: var(--surface-3); color: var(--accent); box-shadow: var(--shadow);
  font-size: 22px; font-weight: 800; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.back-to-top:hover { transform: translateY(-2px); background: var(--accent); color: var(--bg); }
.back-to-top:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .share-ledger-loading-mark, .share-focus-target { animation: none; }
}

@media (max-width: 560px) {
  .spotlight {
    grid-template-columns: 1fr; gap: 18px; padding: 22px;
  }
  .spotlight-img { width: 96px; height: 96px; }
  .spotlight-side { grid-column: auto; min-width: 0; width: 100%; }
  .spotlight .row { align-items: stretch; }
  .spotlight .row .btn { width: 100%; }
  .spotlight-name, .spotlight-ad { overflow-wrap: anywhere; }
  .back-to-top { right: 14px; bottom: 14px; }
  .country-switch-countdown { top: 78px; padding: 15px 14px 16px; }
  .switch-countdown-title { font-size: 18px; }
  .switch-countdown-copy { font-size: 13px; }
  .switch-countdown-clock { font-size: min(var(--switch-countdown-size), 62px); }
  .country-switch-notice { left: 14px; right: 14px; top: 78px; width: auto; }
  .coupon-redeem-grid { grid-template-columns: 1fr; }
  .dashboard-banner h2 { font-size: 24px; }
  .homepage-banner h2 { font-size: 21px; }
  .share-nets { grid-template-columns: repeat(2, 1fr); }
}

.share-rank-panel { border-color: rgba(99,102,241,.45); background:
  linear-gradient(120deg, rgba(99,102,241,.10), rgba(168,85,247,.05) 60%, var(--surface)); }
.share-rank-panel .btn-primary { display: inline-flex; align-items: center; gap: 6px; }

/* ================= Info / legal pages ================= */
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); }

.legal-page { max-width: 820px; margin: 30px auto 60px; }
.legal-head { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.legal-head h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.legal-sub { color: var(--text-dim); margin-top: 8px; font-size: 16px; }
.legal-section { margin: 26px 0; }
.legal-section h2 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.legal-h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 14px 0 6px; }
.legal-page p { color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.legal-page a { color: var(--accent); }
.legal-list { color: var(--text-dim); line-height: 1.7; padding-left: 22px; margin-bottom: 12px; }
.legal-list li { margin-bottom: 7px; }
.legal-disclaimer {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  border-radius: 12px; padding: 14px 18px; color: var(--text-dim); line-height: 1.6; font-size: 14px; margin-bottom: 22px;
}
.legal-updated { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: 13px; }
.legal-cta { margin-top: 24px; }

/* FAQ accordion — native <details> (works without JS, indexable) */
details.faq-item {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); margin-bottom: 10px;
}
details.faq-item > summary {
  list-style: none; cursor: pointer; padding: 15px 44px 15px 18px; position: relative;
  color: var(--text); font-size: 15px; font-weight: 600;
}
details.faq-item > summary::-webkit-details-marker { display: none; }
details.faq-item > summary:hover { background: var(--surface-2); }
details.faq-item > summary::after {
  content: '›'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  color: var(--text-faint); font-size: 20px; transition: transform .18s;
}
details.faq-item[open] > summary::after { transform: translateY(-50%) rotate(90deg); }
details.faq-item .faq-a { padding: 2px 18px 16px; color: var(--text-dim); line-height: 1.7; }
details.faq-item .faq-a p { margin-bottom: 10px; }

/* Rendered article body (FAQ/Terms/Privacy/Contact + admin preview) */
.legal-body h2 { font-size: 20px; font-weight: 700; margin: 26px 0 12px; }
.legal-body h3 { font-size: 15px; font-weight: 700; color: var(--text); margin: 16px 0 6px; }
.legal-body p { color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.legal-body ul { color: var(--text-dim); line-height: 1.7; padding-left: 22px; margin-bottom: 12px; }
.legal-body li { margin-bottom: 7px; }
.legal-body a { color: var(--accent); }
.legal-body strong { color: var(--text); }
.legal-body hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.legal-body blockquote {
  background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3);
  border-radius: 12px; padding: 12px 16px; color: var(--text-dim); margin-bottom: 18px; line-height: 1.6;
}

/* Admin page editor */
.admin-subtabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.page-editor { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; font-size: 13px; line-height: 1.55; width: 100%; }
.page-preview { max-height: 520px; overflow-y: auto; }
.split-grid { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(320px, 1.4fr); gap: 16px; align-items: start; }
.w-100 { width: 100%; }
.text-left { text-align: left; }
.support-message-body {
  margin: 10px 0 0; white-space: pre-wrap; word-break: break-word;
  font-family: inherit; color: var(--text-dim); line-height: 1.55;
}
@media (max-width: 880px) { .split-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.contact-side .panel p { margin-bottom: 10px; }
.contact-success { text-align: center; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
