/* ALTS — site styles (landing, auth, dashboard) */
:root {
  --midnight: #1b2538;
  --bg: #07090f;
  --bg-2: #0a0e16;
  --surface: #0d121c;
  --surface-2: #121926;
  --surface-3: #1b2538;
  --line: rgba(174, 190, 225, .08);
  --line-2: rgba(174, 190, 225, .13);
  --line-3: rgba(174, 190, 225, .22);
  --text: #e7ebf3;
  --text-2: #9ba6bb;
  --text-3: #667189;
  --accent: #a5b8e0;
  --accent-2: #8fa6d8;
  --accent-ink: #0a1020;
  --accent-soft: rgba(165, 184, 224, .1);
  --accent-line: rgba(165, 184, 224, .3);
  --ok: #86d3b1;
  --danger: #f28b8b;
  --danger-soft: rgba(242, 139, 139, .1);
  --warn: #e8c170;
  --info: #7cc4f0;
  --radius-sm: 8px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 24px 48px -28px rgba(0, 0, 0, .85);
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(165, 184, 224, .3); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { display: inline-flex; width: 18px; height: 18px; flex: none; }
.ic svg { width: 100%; height: 100%; }
.ic.sm { width: 15px; height: 15px; }
.ic.lg { width: 22px; height: 22px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 15px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--surface-3); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer;
  white-space: nowrap; transition: background .15s, border-color .15s, color .15s; user-select: none; }
.btn:hover { background: #222e45; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn.is-loading { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--text); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-3); }
.btn-subtle { background: transparent; color: var(--text-2); font-weight: 400; }
.btn-subtle:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(242, 139, 139, .25); }
.btn-danger:hover { background: rgba(242, 139, 139, .18); }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 7px; }
.btn-lg { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 9px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }

/* ---------- forms ---------- */
.field { display: grid; gap: 7px; }
.field + .field { margin-top: 14px; }
.label { font-size: 13px; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.label .hint { font-weight: 400; color: var(--text-3); font-size: 12px; }
.help { font-size: 12.5px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; font-size: 14.5px;
}
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(165, 184, 224, .12); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667189' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px; }
.input-group { display: flex; align-items: stretch; border-radius: var(--radius-sm); background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.input-group:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(165, 184, 224, .12); }
.input-group .prefix { display: flex; align-items: center; padding: 0 0 0 12px; color: var(--text-3); font-size: 14.5px; white-space: nowrap; }
.input-group .input { border: 0; box-shadow: none; background: transparent; padding-left: 1px; }
.input-group .suffix { display: flex; align-items: center; padding: 0 12px; color: var(--text-3); }
.field-status { font-size: 12.5px; min-height: 18px; display: flex; align-items: center; gap: 6px; color: var(--text-3); }
.field-status.ok { color: var(--ok); }
.field-status.bad { color: var(--danger); }
.field-status .ic { width: 14px; height: 14px; }

.check { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }

/* toggle */
.toggle { position: relative; width: 36px; height: 20px; flex: none; }
.toggle input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle .track { position: absolute; inset: 0; border-radius: 999px; background: #1a2233; border: 1px solid var(--line-2); transition: background .18s, border-color .18s; }
.toggle .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #8791a6; transition: transform .18s, background .18s; }
.toggle input:checked + .track { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .track::after { transform: translateX(16px); background: var(--accent-ink); }
.toggle input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmented */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 9px; }
.seg button { height: 30px; padding: 0 12px; border: 0; background: transparent; color: var(--text-2); border-radius: 6px; font-size: 13px; cursor: pointer; transition: background .15s, color .15s; }
.seg button:hover { color: var(--text); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.seg button .ic { width: 16px; height: 16px; }
.field > .seg button { height: 34px; }
.seg button.on { background: var(--surface-3); color: var(--text); }

/* range */
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row output { min-width: 52px; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 22px; background: transparent; cursor: pointer; margin: 0; --p: 50%; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), #1f2940 var(--p)); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: #1f2940; }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(165, 184, 224, .25); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 3px rgba(165, 184, 224, .25); }

/* color */
.color-row { display: flex; align-items: center; gap: 8px; }
.swatch-input { position: relative; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); overflow: hidden; flex: none; cursor: pointer; }
.swatch-input input { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); border: 0; padding: 0; cursor: pointer; background: none; }
.color-row .input { font-family: var(--mono); text-transform: lowercase; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.chip.green { background: rgba(134, 211, 177, .1); color: var(--ok); border-color: rgba(134, 211, 177, .22); }
.chip.red { background: var(--danger-soft); color: var(--danger); border-color: rgba(242, 139, 139, .22); }
.chip.amber { background: rgba(232, 193, 112, .1); color: var(--warn); border-color: rgba(232, 193, 112, .22); }
.chip.blue { background: var(--accent-soft); color: var(--accent); border-color: rgba(165, 184, 224, .22); }
.chip .ic { width: 13px; height: 13px; }
.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }
.kbd { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line-2); }

/* toast */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow);
  font-size: 13.5px; animation: toastIn .2s ease-out; }
.toast .ic { width: 17px; height: 17px; margin-top: 1px; color: var(--ok); }
.toast.error .ic { color: var(--danger); }
.toast.out { opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 150; background: rgba(4, 6, 11, .72); display: grid; place-items: center; padding: 20px; animation: fadeIn .15s; }
.modal { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .9); animation: modalIn .18s ease-out; max-height: calc(100vh - 40px); overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-head h3 { font-size: 17px; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 0 20px 18px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px); } }

.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .2em; color: var(--text); }
.logo img { width: 26px; height: auto; }
.logo span { padding-top: 1px; }

/* =========================================================
   Landing
   ========================================================= */
.site-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 70% -10%, rgba(88, 118, 190, .2), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(120, 140, 210, .07), transparent 60%),
    var(--bg); }
.site-bg::after { content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(190, 205, 240, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 205, 240, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.nav { position: sticky; top: 0; z-index: 40; background: rgba(7, 9, 15, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--text-2); font-size: 14px; transition: color .15s; }
.nav-links a:not(.btn):hover, .nav-links a.on { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 6px; }

.hero { padding: 88px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 12px; margin-bottom: 24px; border-radius: 8px;
  background: rgba(13, 18, 28, .7); border: 1px solid var(--line-2); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--text-2); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(165, 184, 224, .15); }
.hero h1 { font-size: clamp(40px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; max-width: 11ch; }
.hero .lead { margin-top: 22px; font-size: 17px; color: var(--text-2); max-width: 430px; line-height: 1.55; }
.claim { margin-top: 34px; display: flex; align-items: center; gap: 6px; max-width: 440px; padding: 5px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .15s; }
.claim:focus-within { border-color: var(--accent-line); }
.claim label { display: flex; align-items: center; flex: 1; min-width: 0; padding-left: 12px; font-size: 15.5px; color: var(--text-3); cursor: text; }
.claim input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15.5px; color: var(--text); height: 40px; padding: 0 0 0 1px; }
.claim input::placeholder { color: #3d4659; }
.claim .btn { height: 40px; }
.claim-status { margin-top: 12px; min-height: 20px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-3); }
.claim-status.ok { color: var(--ok); }
.claim-status.bad { color: var(--danger); }
.claim-status .ic { width: 15px; height: 15px; }
.hero-note { margin-top: 4px; font-size: 13px; color: var(--text-3); }

.hero-visual { position: relative; }
.device { position: relative; aspect-ratio: 4 / 4.5; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #06080d; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.device-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: 36px; display: flex; align-items: center; justify-content: center; background: rgba(7, 9, 15, .85); border-bottom: 1px solid var(--line); }
.device-url { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.device iframe { position: absolute; left: 0; right: 0; bottom: 0; top: 36px; width: 100%; height: calc(100% - 36px); border: 0; }

.facts { margin: 88px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
.facts > div { padding: 22px 0 0; }
.facts dt { font-size: 12.5px; color: var(--text-3); }
.facts dd { margin: 6px 0 0; font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.section { padding: 128px 0 0; }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
.kicker { font-family: var(--mono); font-size: 12px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

.badge-pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--bc);
  background: color-mix(in srgb, var(--bc) 11%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 26%, transparent); }
.badge-pill .ic { width: 15px; height: 15px; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px; align-items: start; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: color .15s; }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 17px; height: 17px; color: var(--text-3); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); font-size: 14.5px; max-width: 52ch; }

/* ---------- cta + footer ---------- */
.cta { margin-top: 128px; padding: 40px 0 0; border-top: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.035em; }
.cta p { margin-top: 8px; color: var(--text-2); }
.footer { margin-top: 96px; border-top: 1px solid var(--line); padding: 26px 0 36px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-3); }
.footer .logo { font-size: 13px; }
.footer .logo img { width: 22px; }
.footer a { text-decoration: none; color: var(--text-2); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease-out, transform .6s ease-out; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; width: 100%; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-actions .btn-subtle { display: none; }
  .wrap { width: calc(100% - 32px); }
  .section { padding-top: 96px; }
  .claim label { padding-left: 8px; }
}

/* =========================================================
   Auth
   ========================================================= */
.auth-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; background: linear-gradient(180deg, #0c1220 0, var(--bg) 60%); }
.auth-shell { position: relative; width: min(380px, 100%); display: grid; justify-items: center; gap: 22px; }
.auth-logo { font-size: 16px; }
.auth-logo img { width: 30px; }
.auth-card { width: 100%; padding: 26px 24px 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); }
.auth-card h1 { font-size: 22px; letter-spacing: -0.03em; }
.auth-card form { margin-top: 20px; }
.auth-more { margin-top: 14px; }
.auth-more summary { list-style: none; cursor: pointer; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.auth-more summary::-webkit-details-marker { display: none; }
.auth-more summary::before { content: '+'; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--surface-3); font-size: 13px; }
.auth-more[open] summary::before { content: '–'; }
.auth-more summary:hover { color: var(--text); }
.auth-alt { font-size: 13.5px; color: var(--text-3); }
.auth-alt a { color: var(--text); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }
.form-error { display: none; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: var(--danger-soft); border: 1px solid rgba(242, 139, 139, .22); color: #f5b1b1; font-size: 13.5px; }
.form-error.show { display: flex; gap: 8px; align-items: flex-start; }
.form-error .ic { width: 16px; height: 16px; margin-top: 2px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 2px; }
.pw-meter i { height: 3px; border-radius: 3px; background: #1a2233; transition: background .2s; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--accent); }
.pw-meter[data-s="4"] i { background: var(--ok); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: none; color: var(--text-3); border-radius: 6px; display: grid; place-items: center; cursor: pointer; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }
.pw-eye .ic { width: 17px; height: 17px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* =========================================================
   Status page (maintenance / soon)
   ========================================================= */
.status-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, #0c1220 0, var(--bg) 60%); }
.status-shell { position: relative; display: grid; justify-items: center; gap: 22px; text-align: center; }
.status-card { width: min(440px, 100%); padding: 30px 26px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); display: grid; justify-items: center; gap: 12px; }
.status-chip { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border-radius: 6px;
  background: rgba(232, 193, 112, .1); border: 1px solid rgba(232, 193, 112, .25); color: var(--warn); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.status-page[data-mode="soon"] .status-chip { background: var(--accent-soft); border-color: rgba(165, 184, 224, .25); color: var(--accent); }
.status-chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-card h1 { font-size: 26px; letter-spacing: -0.03em; }
.status-card p { color: var(--text-2); font-size: 14.5px; max-width: 34ch; }
.status-card .btn { margin-top: 6px; }

/* =========================================================
   Leaderboard
   ========================================================= */
.lb-wrap { padding: 56px 0 60px; }
.lb-head { max-width: 560px; margin: 0 0 36px; }
.lb-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; }
.lb-head p { margin-top: 10px; font-size: 15px; }

/* top three */
.lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; align-items: stretch; }
.lb-pod { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 26px 16px 20px; border-radius: 12px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .18s, background .18s; }
.lb-pod:hover { border-color: var(--line-3); background: var(--surface-2); }
.lb-pod.p1 { order: 2; border-color: rgba(250, 204, 21, .28); }
.lb-pod.p2 { order: 1; margin-top: 18px; }
.lb-pod.p3 { order: 3; margin-top: 18px; }
.lb-medal { position: absolute; top: 12px; left: 12px; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 6px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--text-3); }
.lb-pod.p1 .lb-medal { background: #facc15; } .lb-pod.p2 .lb-medal { background: #cbd5e1; } .lb-pod.p3 .lb-medal { background: #d08b5a; }
.lb-av { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: var(--surface-3); font-weight: 700; font-size: 15px; }
.lb-av img { width: 100%; height: 100%; object-fit: cover; }
.lb-av.lg { width: 58px; height: 58px; font-size: 21px; margin-top: 4px; }
.lb-pod.p1 .lb-av { width: 68px; height: 68px; }
.lb-name { font-weight: 700; font-size: 15px; }
.lb-handle { font-size: 12.5px; color: var(--text-3); }
.lb-badges { display: inline-flex; gap: 4px; }
.lb-badge .ic, .lb-badges .badge-img { width: 15px; height: 15px; }
.lb-views { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lb-views .ic { width: 14px; height: 14px; }

/* 4 – 15 */
.lb-panel { overflow: hidden; }
.lb-list { display: grid; }
.lb-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .15s; }
.lb-row:last-child { border-bottom: 0; }
.lb-row:hover { background: rgba(255, 255, 255, .02); }
.lb-rank { width: 26px; text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--text-3); flex: none; }
.lb-who { flex: 1; min-width: 0; }
.lb-who b { display: block; font-size: 14px; }
.lb-who span { display: block; font-size: 12px; color: var(--text-3); }
.lb-me { position: sticky; bottom: 14px; margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: rgba(13, 18, 28, .94); border: 1px solid var(--line-3); backdrop-filter: blur(10px); font-size: 14px; font-weight: 700; }
.lb-me .ic { width: 17px; height: 17px; color: var(--accent); }
.lb-me .btn { margin-left: auto; }
@media (max-width: 640px) {
  .lb-podium { grid-template-columns: 1fr; }
  .lb-pod.p1, .lb-pod.p2, .lb-pod.p3 { order: 0; margin-top: 0; }
}

/* =========================================================
   Views chart (dashboard)
   ========================================================= */
.chart { position: relative; }
.chart svg { width: 100%; height: 170px; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); opacity: .85; transition: opacity .15s; }
.chart .bar.empty { fill: #182033; opacity: 1; }
.chart .hit:hover + .bar, .chart .bar:hover { opacity: 1; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart .axis-label { fill: var(--text-3); font-size: 10.5px; font-family: var(--mono); }
.chart-tip { position: absolute; pointer-events: none; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translate(-50%, -100%); transition: opacity .12s; z-index: 5; }
.chart-tip.show { opacity: 1; }
.chart-tip b { color: var(--text); }
.chart-stats { display: flex; flex-wrap: wrap; gap: 22px; margin-bottom: 14px; }
.chart-stat b { display: block; font-size: 22px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.chart-stat span { font-size: 12px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--danger); }
.delta .ic { width: 13px; height: 13px; }
.delta.down .ic { transform: rotate(180deg); }

/* =========================================================
   Dashboard
   ========================================================= */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; min-height: 100dvh; }
.side { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 4px; padding: 18px 12px; border-right: 1px solid var(--line); background: var(--bg-2); }
.side .logo { padding: 4px 10px 20px; }
.side-group { margin-top: 14px; padding: 0 10px 6px; font-size: 11.5px; color: var(--text-3); }
.side-nav { display: grid; gap: 1px; }
.side-nav a { display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: 7px; text-decoration: none; color: var(--text-2); font-size: 14px; transition: background .15s, color .15s; }
.side-nav a .ic { width: 17px; height: 17px; color: var(--text-3); transition: color .15s; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.on { background: var(--surface-3); color: var(--text); }
.side-nav a.on .ic { color: var(--accent); }
.side-foot { margin-top: auto; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 9px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.me-card .av { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.me-card .av img { width: 100%; height: 100%; object-fit: cover; }
.me-card .who { flex: 1; min-width: 0; }
.me-card .who b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card .who span { display: block; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7, 9, 15, .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar h1 { font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.url-pill { display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 4px 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-family: var(--mono); color: var(--text-2); max-width: 320px; }
.url-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-pill b { color: var(--text); font-weight: 400; }
.url-pill button, .url-pill a { width: 26px; height: 24px; border: 0; background: none; border-radius: 5px; display: grid; place-items: center; color: var(--text-3); cursor: pointer; flex: none; }
.url-pill button:hover, .url-pill a:hover { color: var(--text); background: var(--surface-2); }
.url-pill .ic { width: 14px; height: 14px; }
.menu-btn { display: none; }
.content { padding: 28px; }
.page { display: none; }
.page.on { display: block; animation: pageIn .2s ease; }
@keyframes pageIn { from { opacity: 0; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; letter-spacing: -0.03em; }
.page-head p { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }

.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-3); font-size: 13px; }
.stat-top .ic { width: 16px; height: 16px; color: var(--text-3); }
.stat b { display: block; margin-top: 10px; font-size: 28px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat small { font-size: 12.5px; color: var(--text-3); }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; margin-top: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 14.5px; display: flex; align-items: center; gap: 9px; }
.panel-head h3 .ic { width: 16px; height: 16px; color: var(--text-3); }
.panel-body { padding: 18px; }
.checklist { display: grid; gap: 4px; }
.checklist a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 8px; text-decoration: none; color: var(--text-2); font-size: 14px; }
.checklist a:hover { background: var(--surface-2); color: var(--text); }
.checklist .box { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; flex: none; }
.checklist .done .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.checklist .done .box .ic { width: 12px; height: 12px; }
.checklist .done span.t { color: var(--text-3); text-decoration: line-through; }
.checklist .go { margin-left: auto; width: 15px; height: 15px; color: var(--text-3); }
.progress { height: 5px; border-radius: 5px; background: #182033; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s; }
.share-box { display: flex; gap: 8px; }
.share-box .input { font-family: var(--mono); font-size: 13px; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 9px; border: 1px solid var(--line); text-decoration: none; font-size: 13.5px; color: var(--text-2); transition: border-color .15s, color .15s, background .15s; }
.quick a:hover { border-color: var(--line-3); color: var(--text); background: var(--surface-2); }
.quick a .ic { width: 17px; height: 17px; color: var(--text-3); }

/* site status */
.site-banner { display: flex; align-items: center; gap: 10px; padding: 10px 28px; font-size: 13.5px; font-weight: 700;
  background: rgba(232, 193, 112, .1); border-bottom: 1px solid rgba(232, 193, 112, .22); color: #f0d59c; }
.site-banner .ic { width: 17px; height: 17px; color: var(--warn); }
.site-banner .btn { margin-left: auto; }
.mode-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mode-pick button { display: grid; justify-items: start; gap: 4px; padding: 14px; border-radius: 10px; text-align: left; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); transition: border-color .15s, background .15s; }
.mode-pick button:hover:not(:disabled) { border-color: var(--line-3); }
.mode-pick button.on { border-color: var(--accent-line); background: var(--surface-3); }
.mode-pick button:disabled { opacity: .5; cursor: not-allowed; }
.mode-pick .ic { width: 18px; height: 18px; color: var(--accent); }
.mode-pick b { font-size: 14px; }
.mode-pick span:not(.ic) { font-size: 12.5px; color: var(--text-3); font-weight: 400; line-height: 1.4; }
.tbl tr.is-banned td { opacity: .55; }
.tbl tr.is-banned .user-cell b { text-decoration: line-through; }
@media (max-width: 720px) { .mode-pick { grid-template-columns: 1fr; } .site-banner { padding: 10px 14px; } }

/* customize */
.wp { display: block; }
.wp.has-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 20px; align-items: start; }
.wp > .pages { min-width: 0; padding-bottom: 90px; }
.cust-controls { display: grid; gap: 10px; min-width: 0; }
.sec { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sec > summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: 14.5px; user-select: none; }
.sec > summary::-webkit-details-marker { display: none; }
.sec > summary .sec-ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent); }
.sec > summary .sec-ic .ic { width: 15px; height: 15px; }
.sec > summary .chev { margin-left: auto; width: 17px; height: 17px; color: var(--text-3); transition: transform .2s; }
.sec[open] > summary .chev { transform: rotate(180deg); }
.sec > summary:hover { background: rgba(255, 255, 255, .015); }
.sec-body { padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; border-top: 1px solid var(--line); }
.ctl { display: grid; gap: 8px; align-content: start; min-width: 0; }
.ctl.full { grid-column: 1 / -1; }
.ctl.inline { align-self: end; grid-template-columns: 1fr auto; align-items: center; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; gap: 12px; }
.ctl.inline .label { font-weight: 400; }
.ctl[hidden] { display: none; }
.media-ctl { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 1px dashed var(--line-3); background: var(--bg-2); transition: border-color .15s, background .15s; }
.media-ctl.drag { border-color: var(--accent); background: var(--accent-soft); }
.media-thumb { width: 54px; height: 54px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; flex: none; color: var(--text-3); }
.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; }
.media-info { flex: 1; min-width: 0; font-size: 13px; }
.media-info b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-info span { color: var(--text-3); }
.media-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.media-url { display: flex; gap: 6px; margin-top: 8px; }
.media-url .input { height: 34px; font-size: 13px; }
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.font-grid button { height: 42px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text-2); cursor: pointer; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 8px; transition: border-color .15s, color .15s; }
.font-grid button:hover { color: var(--text); border-color: var(--line-3); }
.font-grid button.on { border-color: var(--accent-line); color: var(--text); background: var(--surface-3); }

.preview-col { display: none; }
.wp.has-preview .preview-col { display: block; position: sticky; top: 80px; }
.preview-frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #06080d; height: calc(100vh - 160px); min-height: 520px; transition: width .3s; margin: 0 auto; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.preview-frame.mobile { width: 390px; max-width: 100%; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.preview-bar .live { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.preview-bar .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

.savebar { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px;
  border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .9); transition: transform .28s ease-out; font-size: 14px; font-weight: 700; white-space: nowrap; }
.savebar.show { transform: translate(-50%, 0); }
.savebar .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.savebar.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translate(calc(-50% - 6px), 0); } 40%, 80% { transform: translate(calc(-50% + 6px), 0); } }

/* links editor */
.links-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(42px, 1fr)); gap: 6px; }
.platforms button { height: 42px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.platforms button:hover { border-color: var(--line-3); color: var(--text); background: var(--surface-2); }
.platforms .ic { width: 18px; height: 18px; }
.list { display: grid; gap: 8px; }
.row-item { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 6px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); transition: border-color .15s, opacity .15s; }
.row-item.dragging { opacity: .4; }
.row-item.over { border-color: var(--accent); }
.row-item .grip { color: var(--text-3); cursor: grab; display: grid; place-items: center; width: 22px; }
.row-item .grip .ic { width: 16px; height: 16px; }
.row-item .pf { width: 34px; height: 34px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--text); }
.row-item .pf .ic { width: 17px; height: 17px; }
.row-item .fields { flex: 1; min-width: 0; display: grid; gap: 6px; }
.row-item .fields .input, .row-item .fields .select { height: 34px; font-size: 13.5px; }
.row-item .fields .pair { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px; }
.row-item .name { font-size: 12px; color: var(--text-3); }
.empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 30px 16px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--text-3); font-size: 14px; }
.empty .ic { width: 22px; height: 22px; color: var(--text-3); }

/* badges page */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.badge-card { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.badge-card .bi { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex: none; color: var(--bc); background: color-mix(in srgb, var(--bc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bc) 25%, transparent); }
.badge-card .bi .ic, .badge-card .bi .badge-img { width: 19px; height: 19px; }
.badge-img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; flex: none; }
.mini-badges .badge-img { width: 15px; height: 15px; }
.badge-pill .badge-img { width: 15px; height: 15px; }
.badge-toggle .badge-img { width: 15px; height: 15px; }
.badge-card .bt { flex: 1; min-width: 0; }
.badge-card .bt b { display: block; font-size: 14px; }
.badge-card .bt span { display: block; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-card.locked { opacity: .45; }
.badge-card.locked .bi { filter: grayscale(1); }
.redeem { display: flex; gap: 8px; }

/* tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 400; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, .012); }
.tbl .actions { display: flex; gap: 4px; justify-content: flex-end; }
.user-cell { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.user-cell .av { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: 13px; }
.user-cell .av img { width: 100%; height: 100%; object-fit: cover; }
.user-cell b { display: block; }
.user-cell span { color: var(--text-3); font-size: 12px; }
.key-code { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.mini-badges { display: flex; gap: 3px; flex-wrap: wrap; }
.mini-badges .ic { width: 15px; height: 15px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { height: 32px; padding: 0 13px; border: 0; border-radius: 6px; background: none; color: var(--text-2); font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button .ic { width: 15px; height: 15px; }
.tabs button.on { background: var(--surface-3); color: var(--text); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { position: relative; }
.toolbar .search .ic { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.toolbar .search .input { padding-left: 36px; height: 36px; width: 260px; max-width: 100%; }
.badge-toggle { display: flex; flex-wrap: wrap; gap: 6px; }
.badge-toggle label { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px 0 8px; border-radius: 7px; border: 1px solid var(--line-2); cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.badge-toggle label:has(input:checked) { border-color: color-mix(in srgb, var(--bc) 50%, transparent); background: color-mix(in srgb, var(--bc) 12%, transparent); color: var(--text); }
.badge-toggle input { display: none; }
.badge-toggle .ic { width: 15px; height: 15px; color: var(--bc); }
.icon-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 5px; max-height: 176px; overflow: auto; padding: 2px; }
.icon-pick button { height: 38px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.icon-pick button.on { border-color: var(--accent-line); color: var(--text); background: var(--surface-3); }
.icon-pick .ic { width: 17px; height: 17px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.danger-zone { border-color: rgba(242, 139, 139, .2); }
.danger-zone .panel-head h3 .ic { color: var(--danger); }
.loading-screen { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 300; transition: opacity .3s; }
.loading-screen.gone { opacity: 0; pointer-events: none; }
.loading-screen img { width: 40px; height: auto; animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

@media (max-width: 1180px) {
  .wp.has-preview { grid-template-columns: 1fr; }
  .wp.has-preview .preview-col { position: relative; top: 0; order: -1; }
  .preview-frame { height: 480px; min-height: 0; }
  .grid-stats { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; z-index: 100; width: 260px; transform: translateX(-100%); transition: transform .25s; box-shadow: 30px 0 60px -20px rgba(0, 0, 0, .8); }
  .side.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px; }
  .url-pill { display: none; }
  .links-grid, .settings-grid { grid-template-columns: 1fr; }
  .sec-body { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .grid-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 24px; }
  .quick { grid-template-columns: 1fr; }
  .savebar { left: 12px; right: 12px; transform: translateY(140%); justify-content: space-between; }
  .savebar.show { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ALTS — detail layer (depth, light, colour accents)
   ========================================================= */
:root {
  --accent: #8eaaff;
  --accent-2: #6f8ff5;
  --accent-soft: rgba(142, 170, 255, .1);
  --accent-line: rgba(142, 170, 255, .38);
  --glow: rgba(111, 143, 245, .45);
  --hue-blue: #8eaaff;
  --hue-violet: #b69cff;
  --hue-teal: #6fd6c4;
  --hue-amber: #f2c46d;
  --edge: inset 0 1px 0 rgba(255, 255, 255, .045);
  --surface-grad: linear-gradient(180deg, rgba(160, 180, 230, .045), rgba(160, 180, 230, 0) 42%);
}
::selection { background: rgba(142, 170, 255, .32); }

/* ---------- buttons ---------- */
.btn { transition: background .15s, border-color .15s, color .15s, box-shadow .2s, transform .15s; }
.btn-primary {
  background: linear-gradient(180deg, #aac0ff 0%, #7f9cf7 100%); color: #0a1020;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 0 0 1px rgba(142, 170, 255, .55), 0 8px 22px -10px var(--glow);
}
.btn-primary:hover { background: linear-gradient(180deg, #bccdff 0%, #8ea9fb 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 0 0 1px rgba(160, 185, 255, .7), 0 10px 30px -8px var(--glow); }
.btn-ghost { background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, 0)); box-shadow: var(--edge); }
.btn-ghost:hover { border-color: var(--accent-line); }

/* ---------- inputs ---------- */
.input:focus, .select:focus, .textarea:focus, .input-group:focus-within { border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(142, 170, 255, .12), 0 0 18px -6px var(--glow); }
.toggle input:checked + .track { background: linear-gradient(180deg, #a3b9ff, #7f9cf7); border-color: transparent; box-shadow: 0 0 12px -2px var(--glow); }
.seg button.on { background: linear-gradient(180deg, #25324d, #1b2538); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(142, 170, 255, .18); }
.tabs button.on { background: linear-gradient(180deg, #25324d, #1b2538); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 0 0 1px rgba(142, 170, 255, .18); }
input[type=range]::-webkit-slider-thumb { box-shadow: 0 0 0 3px rgba(142, 170, 255, .3), 0 0 12px var(--glow); }
.font-grid button.on, .icon-pick button.on, .mode-pick button.on { border-color: var(--accent-line); box-shadow: 0 0 0 1px rgba(142, 170, 255, .15), 0 0 20px -8px var(--glow); }

/* ---------- surfaces: light from above ---------- */
.card, .panel, .stat, .sec, .me-card, .auth-card, .status-card, .lb-pod, .badge-card {
  background-image: var(--surface-grad); box-shadow: var(--edge);
}
.panel-head { background: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent); }

/* icon tiles */
.panel-head h3 .ic, .quick a .ic, .stat-top .ic {
  box-sizing: content-box; padding: 6px; border-radius: 8px;
  color: var(--tile, var(--accent)); background: color-mix(in srgb, var(--tile, var(--accent)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--tile, var(--accent)) 24%, transparent);
}
.panel-head h3 .ic { width: 14px; height: 14px; }
.quick a .ic { width: 15px; height: 15px; }
.sec > summary .sec-ic { background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }

/* stat cards: label in small caps, each with its own hue */
.stat { position: relative; overflow: hidden; padding: 16px 18px 18px; }
.stat::after { content: ''; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--tile) 22%, transparent), transparent 70%); pointer-events: none; }
.stat-top { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.stat-top .ic { width: 15px; height: 15px; }
.stat b { margin-top: 12px; }
.grid-stats .stat:nth-child(1) { --tile: var(--hue-blue); }
.grid-stats .stat:nth-child(2) { --tile: var(--hue-violet); }
.grid-stats .stat:nth-child(3) { --tile: var(--hue-amber); }
.grid-stats .stat:nth-child(4) { --tile: var(--hue-teal); }
.quick a:nth-child(1) { --tile: var(--hue-blue); }
.quick a:nth-child(2) { --tile: var(--hue-teal); }
.quick a:nth-child(3) { --tile: var(--hue-amber); }
.quick a:nth-child(4) { --tile: var(--hue-violet); }
.quick a { background: rgba(255, 255, 255, .012); }
.quick a:hover { border-color: color-mix(in srgb, var(--tile) 35%, transparent); }

/* chart */
.chart .bar { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(111, 143, 245, .35)); }

/* ---------- sidebar & top bar ---------- */
.side { background: linear-gradient(180deg, #0c111c 0%, #080b12 100%); }
.side-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.side-nav a { position: relative; }
.side-nav a.on { background: linear-gradient(90deg, rgba(142, 170, 255, .14), rgba(142, 170, 255, .03)); box-shadow: inset 0 0 0 1px rgba(142, 170, 255, .14); }
.side-nav a.on::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.topbar { border-bottom-color: transparent; }
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, var(--line) 0%, rgba(142, 170, 255, .35) 50%, var(--line) 100%); }
.preview-frame { box-shadow: 0 0 0 1px rgba(142, 170, 255, .06), 0 30px 60px -30px rgba(0, 0, 0, .9), 0 0 60px -30px var(--glow); }
.savebar { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 0 0 1px rgba(142, 170, 255, .12), 0 24px 50px -18px rgba(0, 0, 0, .9); }

/* ---------- landing ---------- */
.nav.scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(0, 0, 0, .8); }
.eyebrow { background: linear-gradient(180deg, rgba(27, 37, 56, .9), rgba(13, 18, 28, .9)); border-color: rgba(142, 170, 255, .22); box-shadow: var(--edge), 0 0 24px -12px var(--glow); color: #c9d5f2; }
.eyebrow i { box-shadow: 0 0 0 3px rgba(142, 170, 255, .18), 0 0 10px var(--accent); animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 50% { box-shadow: 0 0 0 5px rgba(142, 170, 255, .06), 0 0 14px var(--accent); } }
.claim { background: linear-gradient(180deg, #111829, #0c111c); box-shadow: var(--edge), 0 20px 40px -24px rgba(0, 0, 0, .9); }
.claim:focus-within { box-shadow: var(--edge), 0 0 0 3px rgba(142, 170, 255, .1), 0 0 30px -10px var(--glow); }

.hero-visual::before { content: ''; position: absolute; inset: 10% -8% -6% -8%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 143, 245, .28), transparent 72%); filter: blur(10px); }
.device { border-color: rgba(142, 170, 255, .2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6), 0 40px 90px -40px rgba(0, 0, 0, .95), 0 0 80px -40px var(--glow); }
.device::after { content: ''; position: absolute; left: 12%; right: 12%; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(170, 192, 255, .8), transparent); }
.device-bar { background: linear-gradient(180deg, rgba(20, 27, 42, .95), rgba(9, 12, 20, .95)); }
.device-bar::before { content: ''; position: absolute; left: 14px; width: 42px; height: 8px;
  background: radial-gradient(circle at 4px 4px, #3a4660 3.5px, transparent 4px), radial-gradient(circle at 21px 4px, #3a4660 3.5px, transparent 4px), radial-gradient(circle at 38px 4px, #3a4660 3.5px, transparent 4px); }

.facts { border-top: 0; column-gap: 12px; }
.facts > div { position: relative; padding: 18px 20px; border-radius: 12px; background: var(--surface); background-image: var(--surface-grad);
  border: 1px solid var(--line); box-shadow: var(--edge); overflow: hidden; }
.facts > div::before { content: ''; position: absolute; left: 20px; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--tile); box-shadow: 0 0 10px var(--tile); }
.facts > div:nth-child(1) { --tile: var(--hue-blue); }
.facts > div:nth-child(2) { --tile: var(--hue-violet); }
.facts > div:nth-child(3) { --tile: var(--hue-teal); }
.facts > div:nth-child(4) { --tile: var(--hue-amber); }
.facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.faq { border-top: 0; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); background-image: var(--surface-grad); box-shadow: var(--edge); padding: 0 18px; transition: border-color .15s; }
.faq details:hover { border-color: var(--line-2); }
.faq details[open] { border-color: rgba(142, 170, 255, .22); }
.faq summary .ic { box-sizing: content-box; padding: 5px; border-radius: 7px; background: var(--surface-3); color: var(--accent); }

.cta { position: relative; overflow: hidden; padding: 40px 44px; border: 1px solid rgba(142, 170, 255, .18); border-radius: 18px; align-items: center;
  background: radial-gradient(600px 260px at 85% 120%, rgba(111, 143, 245, .25), transparent 70%), linear-gradient(180deg, #121a2b, #0b0f19);
  box-shadow: var(--edge), 0 30px 70px -40px rgba(0, 0, 0, .9); }
.cta::before { content: ''; position: absolute; left: 10%; right: 10%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 192, 255, .7), transparent); }
.cta::after { content: ''; position: absolute; right: 190px; top: 50%; width: 220px; height: 220px; transform: translateY(-50%); opacity: .06; pointer-events: none;
  background: url('/assets/img/logo-mark.svg') center / contain no-repeat; }
.cta > * { position: relative; z-index: 1; }
.footer { border-top-color: transparent; background: linear-gradient(90deg, transparent, rgba(142, 170, 255, .18), transparent) top / 100% 1px no-repeat; }

/* ---------- auth / status / leaderboard ---------- */
.auth-page, .status-page { background: radial-gradient(700px 420px at 50% -10%, rgba(88, 118, 190, .28), transparent 65%), var(--bg); }
.auth-card, .status-card { position: relative; border-color: rgba(142, 170, 255, .16); box-shadow: var(--edge), 0 30px 70px -40px rgba(0, 0, 0, .95), 0 0 60px -36px var(--glow); }
.auth-card::before, .status-card::before { content: ''; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(170, 192, 255, .75), transparent); }
.lb-pod.p1 { border-color: rgba(250, 204, 21, .32); background-image: radial-gradient(300px 160px at 50% 0%, rgba(250, 204, 21, .1), transparent 70%); box-shadow: var(--edge), 0 0 50px -28px rgba(250, 204, 21, .6); }
.lb-pod.p2 { background-image: radial-gradient(300px 160px at 50% 0%, rgba(203, 213, 225, .07), transparent 70%); }
.lb-pod.p3 { background-image: radial-gradient(300px 160px at 50% 0%, rgba(208, 139, 90, .08), transparent 70%); }
.lb-medal { box-shadow: 0 0 12px -2px currentColor; }
.lb-me { box-shadow: 0 0 0 1px rgba(142, 170, 255, .12), 0 20px 40px -20px rgba(0, 0, 0, .9); }

/* ---------- signature details: coloured tab + faint grid ---------- */
.stat::before { content: ''; position: absolute; left: 18px; top: 0; width: 28px; height: 2px; border-radius: 0 0 2px 2px; background: var(--tile); box-shadow: 0 0 10px var(--tile); }
.stat::after { background: radial-gradient(circle, color-mix(in srgb, var(--tile) 30%, transparent), transparent 70%); }
.main { position: relative; isolation: isolate; }
.main::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 420px; z-index: -1; pointer-events: none;
  background-image: radial-gradient(700px 300px at 70% -60px, rgba(88, 118, 190, .16), transparent 70%),
    linear-gradient(rgba(190, 205, 240, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 205, 240, .035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.auth-page, .status-page { position: relative; isolation: isolate; }
.auth-page::before, .status-page::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(190, 205, 240, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(190, 205, 240, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 40%, #000 20%, transparent 75%); }
.sec[open] > summary .sec-ic { box-shadow: 0 0 14px -4px var(--glow); }
.preview-bar .live i { box-shadow: 0 0 8px var(--ok); animation: pulseDot 2.4s ease-in-out infinite; }
.cta::after { opacity: .05; }

@media (max-width: 640px) {
  .cta { padding: 28px 22px; border-radius: 14px; }
  .cta::after { right: -30px; width: 180px; height: 180px; }
  .facts > div { padding: 16px; }
}

/* discord link (account page + staff users) */
.discord-row { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.discord-row img { width: 36px; height: 36px; border-radius: 50%; flex: none; background: var(--surface-3); }
.discord-row .who { flex: 1; min-width: 0; }
.discord-row .who b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-row .who span { display: block; font-size: 12px; color: var(--text-3); }
.discord-help { margin-top: 10px; }
.discord-text { font-size: 14px; }
.discord-btn { margin-top: 14px; background: linear-gradient(180deg, #7b85ff, #5865f2); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 0 0 1px rgba(88, 101, 242, .6), 0 8px 22px -10px rgba(88, 101, 242, .7); }
.discord-btn:hover { background: linear-gradient(180deg, #8d96ff, #6570f5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 0 0 1px rgba(120, 130, 255, .7), 0 10px 28px -8px rgba(88, 101, 242, .8); }
.user-cell .dc { display: inline-flex !important; align-items: center; gap: 4px; color: #9aa3ff !important; }
.user-cell .dc .ic { width: 12px; height: 12px; }
.discord-setup { margin-top: 16px; padding: 12px; border-radius: 10px; border: 1px dashed var(--line-3); background: var(--bg-2); }
.discord-setup p { font-size: 12.5px; color: var(--text-3); }
.discord-setup-url { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.discord-setup-url code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; color: var(--text); padding: 7px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--line-2); }
