/* =========================================================
   Blurt Racer — plain CSS (no build step, no framework)
   Dark "blockchain arcade" theme: near-black background,
   lime/emerald accents, soft glass cards.
   ========================================================= */

:root {
  color-scheme: dark;
  --bg: #05070d;
  --surface: rgba(15, 23, 42, 0.6);
  --surface-solid: #0f172a;
  --surface-2: rgba(15, 23, 42, 0.92);
  --border: rgba(255, 255, 255, 0.1);
  --border-soft: rgba(255, 255, 255, 0.05);
  --text: #ffffff;
  --text-60: rgba(255, 255, 255, 0.6);
  --text-50: rgba(255, 255, 255, 0.5);
  --text-40: rgba(255, 255, 255, 0.4);
  --text-35: rgba(255, 255, 255, 0.35);
  --lime: #a3e635;
  --lime-2: #bef264;
  --lime-dim: rgba(163, 230, 53, 0.15);
  --emerald: #34d399;
  --cyan: #22d3ee;
  --amber: #fbbf24;
  --amber-dim: rgba(251, 191, 36, 0.15);
  --rose: #fb7185;
  --rose-dim: rgba(244, 63, 94, 0.12);
  --fuchsia: #d946ef;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, button, select, textarea { font-family: inherit; }
code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

.wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 768px; margin: 0 auto; padding: 0 16px; }
.wrap-mid { max-width: 896px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(2, 6, 14, 0.85);
  backdrop-filter: blur(10px);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 14px; font-size: 18px;
  background: linear-gradient(135deg, #bef264, #10b981);
  box-shadow: 0 8px 20px rgba(163, 230, 53, 0.35);
}
.brand-name { font-weight: 900; letter-spacing: -0.02em; font-size: 16px; }
.brand-name .accent { color: var(--lime); }

nav.main-nav { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--text-60); flex-wrap: wrap; }
nav.main-nav a.nav-link { padding: 7px 14px; border-radius: 999px; transition: background 0.15s, color 0.15s; }
nav.main-nav a.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }

.user-chip {
  margin-left: 4px; display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; border: 1px solid rgba(163,230,53,0.3);
  background: var(--lime-dim); padding: 6px 12px; font-size: 12px; font-weight: 700; color: #d9f99d;
}
.user-chip .avatar {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--lime); color: #052e16; font-size: 11px; font-weight: 900;
}
.user-chip button { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 14px; margin-left: 2px; }
.user-chip button:hover { color: #fff; }

.btn-signin {
  margin-left: 4px; border-radius: 999px; background: var(--lime); color: #052e16;
  font-weight: 900; font-size: 12px; padding: 7px 16px; border: none; transition: background 0.15s;
}
.btn-signin:hover { background: var(--lime-2); }

/* ---------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; font-weight: 800; font-size: 14px; padding: 13px 28px;
  border: none; transition: filter 0.15s, background 0.15s; text-align: center;
}
.btn-lime { background: var(--lime); color: #052e16; box-shadow: 0 14px 40px rgba(163,230,53,0.3); }
.btn-lime:hover { background: var(--lime-2); }
.btn-gradient { background: linear-gradient(90deg, #a3e635, #34d399); color: #052e16; }
.btn-gradient:hover { filter: brightness(1.1); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }

.pill {
  border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700;
  border: 1px solid var(--border); background: rgba(255,255,255,0.05); color: var(--text-60);
  transition: background 0.15s, color 0.15s;
}
.pill:hover { color: #fff; }
.pill.active { background: var(--lime); color: #052e16; border-color: transparent; }

/* ---------------------------------------------------------- cards */

.card {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface); padding: 20px;
}
.card-lg { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.card-lime { border-color: rgba(163,230,53,0.25); }

/* ---------------------------------------------------------- hero */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border-soft); }
.hero-grid-bg {
  position: absolute; inset: 0; opacity: 0.7;
  background-image:
    linear-gradient(rgba(163,230,53,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163,230,53,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  animation: gridScroll 2.6s linear infinite;
}
@keyframes gridScroll { from { background-position: 0 0; } to { background-position: 0 44px; } }
.hero-fade {
  position: absolute; inset-inline: 0; bottom: 0; height: 160px;
  background: linear-gradient(to top, var(--bg), transparent);
}
.hero-inner {
  position: relative; display: grid; gap: 40px; padding: 56px 16px 80px;
}
@media (min-width: 1024px) { .hero-inner { grid-template-columns: 1.1fr 0.9fr; padding-top: 80px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  border: 1px solid rgba(163,230,53,0.3); background: var(--lime-dim);
  padding: 5px 12px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: #bef264;
}
.hero h1 { margin: 20px 0 0; font-size: 42px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.05; }
@media (min-width: 640px) { .hero h1 { font-size: 60px; } }
.hero h1 .sub {
  display: block; background: linear-gradient(90deg, #bef264, #6ee7b7, #67e8f9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { margin-top: 20px; max-width: 560px; color: var(--text-60); font-size: 16px; line-height: 1.6; }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-ctas .hint { font-size: 12px; color: var(--text-40); }

.stat-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; max-width: 520px; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4,1fr); } }
.stat-box { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 12px; }
.stat-box .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
.stat-box .value { margin-top: 4px; font-size: 18px; font-weight: 800; }

.chain-badge {
  display: flex; align-items: center; gap: 12px; border-radius: 16px;
  border: 1px solid var(--border); background: rgba(15,23,42,0.6); padding: 12px 16px; font-size: 12px;
}
.chain-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.3); flex-shrink: 0; }
.chain-dot.online { background: var(--lime); }
.chain-dot.offline { background: var(--rose); }
.chain-badge .headline { font-weight: 700; }
.chain-badge .sub { margin-top: 2px; font-size: 11px; color: var(--text-40); }

/* signed-in driver card */
.driver-card h2 { margin: 8px 0 0; font-size: 26px; font-weight: 900; }
.driver-card .eyebrow2 { font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #bef264; }
.driver-mini-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; text-align: center; font-size: 12px; }
.driver-mini-grid .box { border-radius: 14px; background: rgba(255,255,255,0.05); padding: 12px; }
.driver-mini-grid .box .l { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
.driver-mini-grid .box .v { margin-top: 4px; font-size: 16px; font-weight: 800; }

/* ---------------------------------------------------------- sections */

section.section { padding: 64px 16px; }
section.section h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; }
@media (min-width: 640px) { section.section h2 { font-size: 30px; } }
.section-bordered { border-block: 1px solid var(--border-soft); background: rgba(2,6,14,0.6); }

.grid-3 { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
.grid-4 { margin-top: 32px; display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4,1fr); } }

.step-card, .feature-card { border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); padding: 20px; }
.step-card .icon { font-size: 24px; }
.step-card h3, .feature-card h3 { margin: 10px 0 0; font-size: 15px; font-weight: 800; }
.step-card p, .feature-card p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); }
.feature-card .icon { font-size: 20px; }

footer.site-footer { padding: 40px 16px; }
.footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--text-40);
}
.footer-links { display: flex; align-items: center; gap: 16px; }
.footer-links a { text-decoration: underline; }
.footer-links a.lime { color: var(--lime-2); }

/* ---------------------------------------------------------- login card */

.login-card { border-radius: var(--radius-xl); border: 1px solid var(--border); background: rgba(15,23,42,0.7); padding: 24px; backdrop-filter: blur(10px); }
.login-card.shadowed { box-shadow: var(--shadow-lg); }
.login-head { display: flex; align-items: center; gap: 12px; }
.login-head .icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 16px; background: var(--lime-dim); font-size: 18px; }
.login-head h2 { margin: 0; font-size: 17px; font-weight: 800; }
.login-head p { margin: 2px 0 0; font-size: 11px; color: var(--text-50); }

.field-label { display: block; margin-top: 18px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-50); }
.field-shell {
  margin-top: 6px; display: flex; align-items: center; border-radius: 14px;
  border: 1px solid var(--border); background: rgba(2,6,14,0.7); padding: 0 12px;
  transition: border-color 0.15s;
}
.field-shell:focus-within { border-color: rgba(163,230,53,0.6); }
.field-shell .at { color: var(--text-40); }
.field-shell input {
  width: 100%; background: transparent; border: none; outline: none; color: #fff;
  padding: 12px 8px; font-size: 14px;
}
.field-shell input::placeholder { color: rgba(255,255,255,0.25); }
.field-shell .toggle-btn { background: none; border: none; font-size: 11px; font-weight: 700; color: var(--text-50); margin-left: 6px; }
.field-shell .toggle-btn:hover { color: #fff; }

.alert { margin-top: 12px; border-radius: 14px; padding: 10px 12px; font-size: 12px; }
.alert-error { border: 1px solid rgba(244,63,94,0.3); background: rgba(244,63,94,0.1); color: #fecdd3; }
.alert-ok { border: 1px solid rgba(163,230,53,0.3); background: var(--lime-dim); color: #d9f99d; }
.alert-warn { border: 1px solid rgba(251,191,36,0.3); background: var(--amber-dim); color: #fde68a; }

.fineprint { margin-top: 16px; font-size: 11px; line-height: 1.6; color: var(--text-40); }
.fineprint b, .fineprint .hl { color: rgba(255,255,255,0.7); }

/* ---------------------------------------------------------- leaderboard */

.lb-tabs { margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lb-refreshing { font-size: 12px; color: var(--text-40); align-self: center; }

.lb-table { width: 100%; overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); }
.lb-head, .lb-row {
  display: grid; grid-template-columns: 44px 1fr 84px 68px; gap: 8px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--border-soft);
}
@media (min-width: 640px) { .lb-head, .lb-row { grid-template-columns: 48px 1fr 100px 90px 90px; } }
.lb-head { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
.lb-row.mine { background: var(--lime-dim); }
.lb-row.stripe { background: rgba(255,255,255,0.02); }
.lb-row .rank { font-family: ui-monospace, monospace; font-size: 12px; font-weight: 700; color: var(--text-50); }
.lb-row .driver { min-width: 0; }
.lb-row .driver .name-row { display: flex; align-items: center; gap: 8px; }
.lb-row .driver .name { font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-row .driver .tag { border-radius: 999px; padding: 1px 6px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }
.lb-row .driver .tag.demo { background: rgba(255,255,255,0.1); color: var(--text-50); }
.lb-row .driver .tag.unverified { background: var(--amber-dim); color: #fcd34d; }
.lb-row .driver .meta { margin-top: 2px; display: block; font-size: 10px; color: rgba(255,255,255,0.35); }
.lb-row .score { text-align: right; font-family: ui-monospace, monospace; font-size: 16px; font-weight: 800; color: var(--lime-2); }
.lb-row .distance { display: none; text-align: right; font-family: ui-monospace, monospace; font-size: 12px; color: var(--text-60); }
@media (min-width: 640px) { .lb-row .distance { display: block; } }
.lb-row .coins { text-align: right; font-family: ui-monospace, monospace; font-size: 12px; color: var(--amber); }
.lb-empty { padding: 40px 16px; text-align: center; font-size: 14px; color: var(--text-40); }

.podium { margin-top: 32px; display: grid; gap: 12px; }
@media (min-width: 640px) { .podium { grid-template-columns: repeat(3,1fr); } }
.podium .place { border-radius: var(--radius-xl); border: 1px solid var(--border); padding: 20px; text-align: center; }
.podium .place.gold { border-color: rgba(252,211,77,0.4); background: rgba(252,211,77,0.1); }
@media (min-width: 640px) { .podium .place.gold { margin-top: -12px; } }
.podium .place.silver { border-color: rgba(203,213,225,0.25); background: rgba(203,213,225,0.05); }
.podium .place.bronze { border-color: rgba(251,146,60,0.25); background: rgba(251,146,60,0.05); }
.podium .medal { font-size: 30px; }
.podium .name { margin-top: 8px; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium .score { margin-top: 4px; font-family: ui-monospace, monospace; font-size: 24px; font-weight: 900; }
.podium .meta { margin-top: 4px; font-size: 11px; color: var(--text-50); }

.lb-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lb-me-chip { border-radius: 16px; border: 1px solid rgba(163,230,53,0.25); background: var(--lime-dim); padding: 12px 16px; font-size: 12px; }
.lb-me-chip .n { font-weight: 800; color: #d9f99d; }
.lb-me-chip .stats { margin-top: 4px; color: var(--text-60); }

/* ---------------------------------------------------------- play page */

.play-grid { display: grid; gap: 32px; padding: 32px 16px; }
@media (min-width: 1024px) { .play-grid { grid-template-columns: minmax(0,1fr) 320px; } }
.announcement-bar { background: var(--amber-dim); padding: 8px 16px; text-align: center; font-size: 12px; font-weight: 700; color: #fde68a; }

.game-stage {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: #020617; padding: 8px; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.game-stage canvas { display: block; width: 100%; border-radius: 18px; background: #0f172a; touch-action: none; }

.hud { position: absolute; inset: 8px; border-radius: 18px; padding: 12px; color: #fff; pointer-events: none; }
.hud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hud-chip { border-radius: 14px; background: rgba(0,0,0,0.45); padding: 8px 12px; backdrop-filter: blur(4px); }
.hud-chip.right { text-align: right; }
.hud-chip .l { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #bef264; }
.hud-chip.right .l { color: #fcd34d; }
.hud-chip .v { font-family: ui-monospace, monospace; font-size: 22px; font-weight: 800; line-height: 1; }
.hud-chip .sv { margin-top: 4px; font-size: 10px; color: rgba(255,255,255,0.6); }

.hud-bottom { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hud-meter { width: 144px; border-radius: 14px; background: rgba(0,0,0,0.45); padding: 8px 12px; backdrop-filter: blur(4px); }
.hud-meter.nitro { text-align: right; }
.hud-meter .row { display: flex; align-items: baseline; justify-content: space-between; }
.hud-meter .row span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.6); }
.hud-meter .speedval { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 800; color: #67e8f9; }
.hud-meter .bar-track { margin-top: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.15); overflow: hidden; }
.hud-meter .bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #22d3ee, #bef264, #fbbf24); transition: width 0.15s; }
.hud-meter.nitro .bar-fill { background: linear-gradient(90deg, #d946ef, #fb923c); }
.hud-meter.nitro .bar-track { height: 10px; }

.overlay {
  position: absolute; inset: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; border-radius: 18px; background: rgba(2,6,23,0.85); padding: 24px; text-align: center;
  backdrop-filter: blur(6px); pointer-events: auto;
}
.overlay.result { background: rgba(2,6,23,0.92); overflow-y: auto; gap: 12px; padding: 20px; }
.overlay h2 { margin: 0; font-size: 28px; font-weight: 900; }
.overlay p.desc { max-width: 280px; font-size: 13px; color: rgba(255,255,255,0.7); margin: 0; }
.overlay .tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em; color: #fb7185; }
.overlay .bigscore { font-family: ui-monospace, monospace; font-size: 46px; font-weight: 900; margin: 0; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; width: 100%; max-width: 260px; text-align: left; font-size: 12px; color: rgba(255,255,255,0.7); }
.result-grid .rv { text-align: right; font-family: ui-monospace, monospace; color: #fff; }
.result-msg { font-size: 12px; font-weight: 700; margin: 4px 0 0; }
.result-msg.ok { color: #bef264; }
.result-msg.warn { color: #fcd34d; }
.overlay .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }

.touch-controls { display: flex; width: 100%; max-width: 520px; margin: 16px auto 0; align-items: center; justify-content: space-between; gap: 12px; }
.touch-btn {
  height: 64px; flex: 1; border-radius: 18px; border: 1px solid var(--border); background: rgba(255,255,255,0.05);
  font-size: 24px; font-weight: 900; color: #fff; transition: background 0.1s; user-select: none;
}
.touch-btn:active { background: rgba(163,230,53,0.3); }
.touch-btn.nitro-btn { border-color: rgba(217,70,239,0.3); background: rgba(217,70,239,0.15); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #f0abfc; }
.touch-btn.nitro-btn:active { background: rgba(217,70,239,0.4); }
.touch-btn:disabled { opacity: 0.4; }

.play-footer-row { display: flex; width: 100%; max-width: 520px; margin: 8px auto 0; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-50); }
.mute-btn { border-radius: 999px; border: 1px solid var(--border); padding: 5px 12px; font-weight: 700; color: var(--text-60); background: transparent; }
.mute-btn:hover { background: rgba(255,255,255,0.1); }

aside.side-panel { display: flex; flex-direction: column; gap: 16px; }
.side-card h2 { margin: 0; font-size: 14px; font-weight: 800; }
.side-card .big-name { margin-top: 4px; font-size: 18px; font-weight: 900; color: var(--lime-2); }
dl.profile-grid { margin: 16px 0 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; font-size: 12px; }
dl.profile-grid .box { border-radius: 14px; background: rgba(255,255,255,0.05); padding: 8px 12px; }
dl.profile-grid dt { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
dl.profile-grid dd { margin: 2px 0 0; font-family: ui-monospace, monospace; font-size: 14px; font-weight: 800; }
.control-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-60); }
.link-card { display: block; border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--surface); padding: 20px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; transition: border-color 0.15s, background 0.15s; }
.link-card:hover { border-color: rgba(163,230,53,0.4); background: #0f172a; }

/* ---------------------------------------------------------- admin */

.admin-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-actions { display: flex; align-items: center; gap: 8px; }
.flash-msg { font-size: 12px; color: var(--lime-2); }

.admin-panel { margin-top: 20px; }
.admin-grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media (min-width: 640px) { .admin-grid-4 { grid-template-columns: repeat(4,1fr); } }
.admin-box { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 16px; }
.admin-box .l { font-size: 12px; color: var(--text-40); }
.admin-box .v { margin-top: 4px; font-family: ui-monospace, monospace; font-size: 20px; font-weight: 800; }
.admin-grid-2 { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 768px) { .admin-grid-2 { grid-template-columns: repeat(2,1fr); } }
.admin-box h3 { margin: 0 0 10px; font-size: 14px; font-weight: 800; }
.kv-list { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-60); }
.kv-list .row { display: flex; justify-content: space-between; gap: 12px; }
.kv-list .row dd, .kv-list .row dt { margin: 0; }
.kv-list .row dd { font-family: ui-monospace, monospace; color: #fff; }
.maint-tools { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 700; }
.maint-tools button { border-radius: 12px; padding: 8px 12px; }
.tool-neutral { border: 1px solid var(--border); background: transparent; color: var(--text-60); }
.tool-neutral:hover { background: rgba(255,255,255,0.1); }
.tool-warn { border: 1px solid rgba(251,191,36,0.3); background: var(--amber-dim); color: #fcd34d; }
.tool-danger { border: 1px solid rgba(244,63,94,0.3); background: var(--rose-dim); color: #fda4af; }

.sessions-list { margin-top: 12px; max-height: 220px; overflow-y: auto; font-size: 12px; }
.sessions-list .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--border-soft); padding: 8px 0; color: var(--text-60); }
.sessions-list .row .u { font-weight: 700; color: #fff; }

.table-wrap { margin-top: 20px; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.table-scroll { overflow-x: auto; }
table.data-table { width: 100%; min-width: 720px; border-collapse: collapse; text-align: left; font-size: 12px; }
table.data-table thead { background: rgba(255,255,255,0.05); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
table.data-table th, table.data-table td { padding: 10px 14px; }
table.data-table td.num { text-align: right; font-family: ui-monospace, monospace; }
table.data-table tbody tr { border-top: 1px solid var(--border-soft); }
table.data-table .banned-tag { margin-left: 8px; border-radius: 999px; background: var(--rose-dim); padding: 1px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; color: #fda4af; }
table.data-table .joined { margin-top: 2px; display: block; font-size: 10px; color: rgba(255,255,255,0.35); }
table.data-table .row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
table.data-table .row-actions button { border-radius: 8px; padding: 4px 8px; font-size: 11px; font-weight: 700; }
.act-ban { border: 1px solid rgba(244,63,94,0.3); background: var(--rose-dim); color: #fda4af; }
.act-unban { border: 1px solid rgba(163,230,53,0.3); background: var(--lime-dim); color: #bef264; }
.act-neutral { border: 1px solid var(--border); background: transparent; color: var(--text-60); }
.state-badge { border-radius: 999px; padding: 2px 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.state-badge.verified { background: var(--lime-dim); color: #bef264; }
.state-badge.unverified { background: var(--amber-dim); color: #fcd34d; }
.empty-row td { padding: 32px 16px; text-align: center; color: var(--text-40); }

.settings-panel { margin-top: 20px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 20px; }
.settings-grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .settings-grid { grid-template-columns: repeat(2,1fr); } }
.settings-grid label { display: block; }
.settings-grid .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-40); }
.settings-grid input[type="text"], .settings-grid input[type="number"] {
  margin-top: 6px; width: 100%; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(2,6,14,0.7); padding: 10px 12px; font-size: 14px; color: #fff; outline: none;
}
.settings-grid input:focus { border-color: rgba(163,230,53,0.6); }
.settings-checks { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; }
.settings-checks label { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-60); }
.settings-checks input { width: 16px; height: 16px; accent-color: var(--lime); }
.settings-panel .save-btn { margin-top: 20px; }
.settings-panel .note { margin-top: 8px; font-size: 11px; color: var(--text-40); }

.json-block { border-radius: 16px; border: 1px solid var(--border); background: var(--surface); padding: 16px; margin-top: 16px; }
.json-block .head { display: flex; align-items: center; justify-content: space-between; }
.json-block h3 { margin: 0; font-family: ui-monospace, monospace; font-size: 13px; font-weight: 800; color: var(--lime-2); }
.json-block .bytes { font-size: 11px; color: var(--text-40); }
.json-block pre { margin: 12px 0 0; max-height: 260px; overflow: auto; border-radius: 14px; background: rgba(2,6,14,0.8); padding: 12px; font-size: 11px; line-height: 1.6; color: rgba(255,255,255,0.7); }

.admin-login-form { max-width: 380px; margin: 40px auto 0; border-radius: var(--radius-xl); border: 1px solid var(--border); background: rgba(15,23,42,0.7); padding: 24px; }
.admin-login-form h2 { margin: 0; font-size: 17px; font-weight: 800; }
.admin-login-form p { margin: 4px 0 0; font-size: 12px; color: var(--text-50); }
.admin-login-form input {
  margin-top: 16px; width: 100%; border-radius: 14px; border: 1px solid var(--border);
  background: rgba(2,6,14,0.7); padding: 12px; font-size: 14px; color: #fff; outline: none;
}
.admin-login-form input:focus { border-color: rgba(163,230,53,0.6); }
.admin-login-form button { margin-top: 16px; width: 100%; padding: 12px; }
.centered-note { text-align: center; padding: 40px 16px; color: var(--text-40); font-size: 14px; }

/* ---------------------------------------------------------- misc */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b0f18; }
::-webkit-scrollbar-thumb { background: #243044; border-radius: 999px; }

.hidden { display: none !important; }
.text-center { text-align: center; }
