/*
 * Arctic Labs -- single CSS file.
 *
 * Dark aurora palette: slate-950 base, sky/cyan accents.  No build
 * step, no @import chains -- one file ships as-is.
 */

:root {
  --bg: #020617;            /* slate-950 */
  --bg-card: #0f172a;       /* slate-900 */
  --bg-card-hover: #1e293b; /* slate-800 */
  --border: #1e293b;        /* slate-800 */
  --text: #e2e8f0;          /* slate-200 */
  --text-dim: #94a3b8;      /* slate-400 */
  --text-muted: #64748b;    /* slate-500 */
  --accent: #0ea5e9;        /* sky-500 */
  --accent-bright: #38bdf8; /* sky-400 */
  --accent-dim: #0c4a6e;    /* sky-900 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --aurora-1: #0ea5e9;
  --aurora-2: #8b5cf6;
  --aurora-3: #06b6d4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

code, pre {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: rgba(15, 23, 42, 0.7);
  padding: 2px 6px;
  border-radius: 4px;
}
pre { padding: 14px 18px; overflow-x: auto; border: 1px solid var(--border); }
pre code { background: transparent; padding: 0; }

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none;
}
.brand-icon {
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 22px;
}
.main-nav { display: flex; gap: 4px; margin-left: 16px; flex-wrap: wrap; }
.auth-nav { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.auth-nav a, .auth-nav button { font-size: 14px; }

/* ─── Main ──────────────────────────────────────────────────────────────── */
main.container { flex: 1; padding-top: 48px; padding-bottom: 64px; }

h1 { font-size: 36px; margin: 0 0 16px; line-height: 1.2; letter-spacing: -0.02em; }
h2 { font-size: 24px; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
.muted { color: var(--text-dim); }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero { padding: 32px 0 24px; text-align: center; }
.hero h1 {
  font-size: 56px;
  background: linear-gradient(135deg, var(--aurora-1), var(--aurora-2), var(--aurora-3));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-bottom: 24px;
}
.hero-body { font-size: 18px; color: var(--text-dim); max-width: 640px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--bg-card-hover); text-decoration: none; }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.btn.full { display: block; width: 100%; text-align: center; margin-top: 12px; }

/* ─── Cards / grid ──────────────────────────────────────────────────────── */
.card-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin: 24px 0;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  color: var(--text);
  text-decoration: none;
  transition: border-color .12s, transform .08s;
}
.card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-1px); }
.card.stat { text-align: center; }
.stat-num { font-size: 36px; font-weight: 700; color: var(--accent-bright); }
.stat-label { color: var(--text-dim); font-size: 14px; margin: 4px 0 12px; }

/* ─── Forms ─────────────────────────────────────────────────────────────── */
.form-card {
  max-width: 420px; margin: 32px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
}
.form-card.wide { max-width: 640px; }

.page-edit-form, .form-card form { display: flex; flex-direction: column; gap: 16px; }

label {
  display: flex; flex-direction: column; gap: 6px;
  font-weight: 600; color: var(--text); font-size: 14px;
}
label small {
  color: var(--text-muted); font-size: 12px; font-weight: 400; margin-top: 2px;
  line-height: 1.4;
}
label.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  align-items: start;
  cursor: pointer;
}
label.checkbox input { margin-top: 4px; }
label.checkbox small { grid-column: 2; }
label.checkbox span { font-weight: 600; }

input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="file"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
textarea { resize: vertical; min-height: 100px; font-family: "SF Mono", Menlo, Consolas, monospace; }

.form-alt { text-align: center; color: var(--text-dim); font-size: 14px; margin-top: 16px; }

/* ─── Account / info lists ──────────────────────────────────────────────── */
.account { max-width: 640px; margin: 0 auto; }
.info-list { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; margin: 24px 0; }
.info-list dt { color: var(--text-dim); }
.info-list dd { margin: 0; color: var(--text); }

/* ─── Dynamic page (admin-edited content) ───────────────────────────────── */
.page-body { max-width: 760px; margin: 0 auto; }
.page-body h1 { font-size: 40px; }
.page-body h2 { border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.page-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 16px;
  color: var(--text-dim);
  margin: 16px 0;
}
.page-body ul, .page-body ol { padding-left: 28px; }
.page-body table { border-collapse: collapse; margin: 16px 0; }
.page-body table th, .page-body table td {
  border: 1px solid var(--border);
  padding: 8px 14px;
  text-align: left;
}

/* ─── Admin ─────────────────────────────────────────────────────────────── */
.admin-nav {
  display: flex; gap: 4px; padding: 12px; margin: 0 0 24px;
  background: var(--bg-card); border-radius: 12px;
  border: 1px solid var(--border);
  overflow-x: auto;
}
.admin-nav a {
  padding: 8px 16px;
  color: var(--text-dim);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}
.admin-nav a:hover { color: var(--text); background: var(--bg-card-hover); text-decoration: none; }
.admin-nav a.active { color: var(--accent-bright); background: rgba(14, 165, 233, 0.1); }

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin: 16px 0;
}
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.admin-table th {
  background: rgba(15, 23, 42, 0.5);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(255, 255, 255, 0.02); }
.admin-table code { font-size: 12px; color: var(--accent-bright); background: transparent; padding: 0; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 14px;
}

/* ─── Brand ─────────────────────────────────────────────────────────────── */
.brand-name {
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.01em;
}

/* ─── Page + section nav (docs-style sidebar) ──────────────────────────── */
.page-with-nav {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.page-with-nav__main { min-width: 0; }
.page-with-nav .page-body { margin: 0; max-width: 760px; }

.section-nav {
  position: sticky; top: 88px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  font-size: 14px;
}
.section-nav__parent,
.section-nav__title {
  display: block;
  padding: 4px 10px 10px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.section-nav__parent:hover { color: var(--accent-bright); text-decoration: none; }
.section-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.section-nav ul ul { margin: 2px 0 4px 12px; padding-left: 10px; border-left: 1px solid var(--border); }
.section-nav li a {
  display: block; padding: 7px 10px; border-radius: 8px;
  color: var(--text-dim); text-decoration: none;
  transition: background .12s, color .12s;
}
.section-nav li a:hover { background: var(--bg-card-hover); color: var(--text); text-decoration: none; }
.section-nav li a.is-current {
  background: rgba(14, 165, 233, 0.12); color: var(--accent-bright); font-weight: 600;
}
.section-nav__hidden {
  font-size: 11px; font-weight: 400; color: var(--warning);
  text-transform: uppercase; letter-spacing: 0.04em; margin-left: 6px;
}

/* ─── Polish ────────────────────────────────────────────────────────────── */
.card:hover { box-shadow: 0 10px 34px rgba(14, 165, 233, 0.09); }
.btn.primary { box-shadow: 0 4px 14px rgba(14, 165, 233, 0.22); }
.page-body { font-size: 16.5px; }
.page-body > p:first-of-type { font-size: 18px; color: var(--text); }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* The page editor's 2-col grid (form + file picker) collapses to a
     single column; sidebar stays full-width but stops being sticky. */
  main.container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  main.container > div[style*="grid-template-columns"] > aside {
    position: static !important;
  }
  .page-with-nav { grid-template-columns: 1fr; gap: 24px; }
  .section-nav { position: static; }
}
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; }
  .auth-nav { margin-left: auto; }
  h1 { font-size: 28px; }
  .info-list { grid-template-columns: 1fr; gap: 4px; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 8px 10px; }
}

/* ════════════════════════════════════════════════════════════════════════
   Premium redesign layer (loaded last, so it wins).  Studio-site polish:
   dramatic hero, glowing accents, generous rhythm, feature cards.  Kept
   fully semantic + keyboard-accessible (visible focus, real headings).
   ════════════════════════════════════════════════════════════════════════ */

/* Ambient aurora glow behind everything — subtle, fixed to the viewport. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(14,165,233,0.16), transparent 60%),
    radial-gradient(720px 520px at 85% 0%, rgba(139,92,246,0.12), transparent 55%),
    radial-gradient(720px 520px at 10% 4%, rgba(6,182,212,0.10), transparent 55%);
}

/* Header + nav — big-studio (Blizzard/Epic) treatment: taller bar, bold
   uppercase links, an animated underline that grows from the centre, and a
   highlighted "active" item.  Stays high-contrast + keyboard-focusable. */
.site-header { background: rgba(2, 6, 23, 0.72); backdrop-filter: blur(14px); }
.header-inner { padding-top: 18px; padding-bottom: 18px; }
.brand-name { font-size: 19px; }
.main-nav { gap: 2px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  font-size: 13.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color .14s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--accent-bright), var(--aurora-2));
  border-radius: 2px; transition: left .18s ease, right .18s ease;
}
.main-nav a:hover { color: var(--text); background: transparent; text-decoration: none; }
.main-nav a:hover::after { left: 14px; right: 14px; }
.main-nav a[aria-current="page"] { color: var(--text); background: transparent; }
.main-nav a[aria-current="page"]::after { left: 14px; right: 14px; }
.auth-nav .btn, .auth-nav a[href="/signup"] { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700; font-size: 12.5px; }

/* Hero — dramatic */
.hero { padding: 76px 0 56px; text-align: center; position: relative; }
.hero-eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 12px; font-weight: 700;
  color: var(--accent-bright); margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); line-height: 1.04; font-weight: 800;
  letter-spacing: -0.02em; margin: 0 auto 22px; max-width: 16ch;
  background: linear-gradient(135deg, #f8fafc 20%, var(--accent-bright) 70%, var(--aurora-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-body { font-size: 19px; line-height: 1.7; color: var(--text-dim); max-width: 640px; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons — premium */
.btn { transition: transform .08s ease, box-shadow .14s, background .14s, border-color .14s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.lg { padding: 14px 28px; font-size: 15px; border-radius: 10px; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #6366f1);
  border-color: transparent; color: #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,0.30);
}
.btn.primary:hover { background: linear-gradient(135deg, var(--accent-bright), #818cf8); box-shadow: 0 12px 32px rgba(14,165,233,0.42); }
.btn.ghost { background: rgba(148,163,184,0.06); border-color: rgba(148,163,184,0.25); color: var(--text); }
.btn.ghost:hover { background: rgba(148,163,184,0.12); border-color: rgba(148,163,184,0.4); }

/* Home sections */
.home-section { margin-top: 88px; }
.home-section__title { font-size: 30px; font-weight: 800; letter-spacing: -0.01em; text-align: center; margin: 0 0 8px; }
.home-section__lead { text-align: center; color: var(--text-dim); max-width: 640px; margin: 0 auto 36px; font-size: 17px; }

/* Feature / product cards */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, rgba(15,23,42,0.9), rgba(2,6,23,0.92));
  border: 1px solid var(--border); border-radius: 16px; padding: 26px;
  color: var(--text); text-decoration: none; overflow: hidden;
  transition: transform .12s ease, border-color .14s, box-shadow .18s;
}
.feature-card::after {
  content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none;
  background: radial-gradient(420px 160px at 50% -20%, rgba(14,165,233,0.18), transparent 70%);
  opacity: 0; transition: opacity .2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(56,189,248,0.5); box-shadow: 0 18px 44px rgba(2,6,23,0.6); text-decoration: none; }
.feature-card:hover::after { opacity: 1; }
.feature-card h3 { margin: 0; font-size: 20px; }
.feature-card p { margin: 0; color: var(--text-dim); flex: 1; line-height: 1.6; }
.feature-card__cta { color: var(--accent-bright); font-weight: 600; font-size: 14px; margin-top: 4px; }

/* Mission value strip */
.home-values {
  display: grid; gap: 24px; margin-top: 80px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 36px; border: 1px solid var(--border); border-radius: 18px; background: rgba(15,23,42,0.5);
}
.home-values .value h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent-bright); }
.home-values .value p { margin: 0; color: var(--text-dim); line-height: 1.65; }
.home-body { margin-top: 72px; }

/* Footer — multi-column, studio style */
.site-footer { background: rgba(2,6,23,0.6); padding: 0; margin-top: 88px; color: var(--text-muted); font-size: 14px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
  padding-top: 52px; padding-bottom: 44px;
}
.footer-brand .brand-name { font-size: 18px; }
.footer-tag { margin: 14px 0 0; color: var(--text-dim); max-width: 30ch; line-height: 1.65; }
.footer-col h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); margin: 0 0 16px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a { color: var(--text-muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent-bright); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 22px; }
.footer-bottom p { margin: 0; }
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 40px; }
}

/* Accessibility — clear keyboard focus everywhere */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-bright); outline-offset: 2px;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 36px; }
  .home-section { margin-top: 56px; }
  .home-values { margin-top: 48px; padding: 24px; }
}

/* ── Skip-to-content link (accessibility) ────────────────────────────────
   Visually hidden until it receives keyboard focus, then slides into the
   top-left so keyboard / screen-reader users can jump past the nav. */
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 1000;
  padding: 10px 18px;
  background: #0ea5e9;
  color: #04121f;
  font-weight: 700;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid #7dd3fc;
  outline-offset: 2px;
}
/* Don't draw a focus ring when <main> is programmatically focused via the
   skip link -- it's a scroll target, not an interactive control. */
#main-content:focus { outline: none; }

/* ── Page elements: callout / accordion / video / download button ───────── */
.callout {
  border-radius: 10px;
  padding: 14px 18px;
  margin: 18px 0;
  border: 1px solid;
  border-left-width: 4px;
}
.callout-title { font-weight: 700; margin: 0 0 6px; }
.callout-body :last-child { margin-bottom: 0; }
.callout-body :first-child { margin-top: 0; }
.callout--info    { background: rgba(14,165,233,.08);  border-color: #0ea5e9; }
.callout--tip     { background: rgba(139,92,246,.08);  border-color: #8b5cf6; }
.callout--success { background: rgba(16,185,129,.08);  border-color: #10b981; }
.callout--warning { background: rgba(245,158,11,.08);  border-color: #f59e0b; }
.callout--danger  { background: rgba(239,68,68,.08);   border-color: #ef4444; }

.accordion {
  border: 1px solid #1e293b;
  border-radius: 10px;
  margin: 12px 0;
  background: #0f172a;
  overflow: hidden;
}
.accordion > summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  list-style: none;
  position: relative;
  user-select: none;
}
.accordion > summary::-webkit-details-marker { display: none; }
/* Disclosure affordance: a small chevron that rotates when open (no +/- signs). */
.accordion > summary::after {
  content: '\203A'; position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%) rotate(90deg); transform-origin: center;
  color: #7dd3fc; font-size: 20px; transition: transform .15s ease;
}
.accordion[open] > summary::after { transform: translateY(-50%) rotate(270deg); }
.accordion > summary:focus-visible { outline: 2px solid #7dd3fc; outline-offset: -2px; }
.accordion-body { padding: 0 18px 14px; }
.accordion-body :first-child { margin-top: 0; }

.video-fig { margin: 18px 0; }
.video-embed {
  position: relative; width: 100%; padding-top: 56.25%; /* 16:9 */
  border-radius: 12px; overflow: hidden; background: #020617;
}
.video-embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.download-cta-wrap { margin: 18px 0; }
.download-cta {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-radius: 12px; text-decoration: none;
  background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff;
  box-shadow: 0 8px 24px rgba(14,165,233,.28); transition: transform .12s, box-shadow .12s;
}
.download-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(14,165,233,.4); }
.download-cta:focus-visible { outline: 3px solid #7dd3fc; outline-offset: 3px; }
.download-cta-icon { font-size: 26px; line-height: 1; }
.download-cta-text { display: flex; flex-direction: column; }
.download-cta-label { font-weight: 700; font-size: 16px; }
.download-cta-meta { font-size: 12.5px; opacity: .85; }

/* ── Developer console ──────────────────────────────────────────────────── */
.dev-head h1 { margin-bottom: 2px; }
.dev-nav { display: flex; gap: 8px; margin: 14px 0 22px; flex-wrap: wrap; }
.dev-nav a {
  padding: 8px 16px; border-radius: 8px; text-decoration: none;
  background: #0f172a; border: 1px solid #1e293b; color: #cbd5e1; font-weight: 600;
}
.dev-nav a.is-active { background: rgba(139,92,246,.18); border-color: #8b5cf6; color: #c4b5fd; }
.dev-section { margin: 30px 0; }
.dev-section > h2 { border-bottom: 1px solid #1e293b; padding-bottom: 8px; }
.dev-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px; margin: 16px 0;
}
.dev-stat {
  background: #0f172a; border: 1px solid #1e293b; border-radius: 12px;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.dev-stat--hero { background: linear-gradient(135deg, rgba(139,92,246,.18), rgba(14,165,233,.12)); border-color: #6366f1; }
.dev-stat-label { color: #94a3b8; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.dev-stat-value { font-size: 30px; font-weight: 800; line-height: 1.1; }
.dev-stat-sub { color: #94a3b8; font-size: 13px; }
.dev-testmode { background: rgba(245,158,11,.12); border: 1px solid #f59e0b; color: #fcd34d; padding: 10px 14px; border-radius: 8px; }
.role-badge { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.role-badge.role-user  { background: #1e293b; color: #cbd5e1; }
.role-badge.role-admin { background: rgba(251,191,36,.18); color: #fbbf24; }
.role-badge.role-dev   { background: rgba(167,139,250,.2); color: #c4b5fd; }

/* ── Donate amount selector (single-select; styled via :checked, no inline JS) ── */
.donate-fieldset { border: 0; padding: 0; margin: 0; }
.donate-fieldset legend { font-weight: 600; color: #cbd5e1; }
.donate-amounts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 10px; margin: 12px 0;
}
.donate-amount {
  cursor: pointer; background: #0f172a; border: 1px solid #1e293b;
  border-radius: 8px; padding: 14px; text-align: center; font-weight: 700;
  display: block; transition: border-color .12s, background .12s;
}
.donate-amount input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.donate-amount:has(input:checked) { border-color: #0ea5e9; background: rgba(14,165,233,.12); }
.donate-amount:focus-within { outline: 2px solid #7dd3fc; outline-offset: 2px; }
