/* ===== AnonSMS Design System =====
   Adapted from the Claude Design prototype
   Geist + Geist Mono · Warm off-white palette · Coral accent
   ======================================= */

/* --- Variables --- */
:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --surface-2: #F4F2EC;
  --line: #E5E2D9;
  --line-strong: #CFCBBE;
  --ink: #16140F;
  --ink-2: #3A382F;
  --muted: #76736A;
  --accent: oklch(0.62 0.16 28);
  --accent-ink: #FFF;
  --accent-tint: oklch(0.94 0.04 35);
  --ok: oklch(0.58 0.13 150);
  --warn: oklch(0.72 0.14 75);
  --bad: oklch(0.55 0.18 25);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 0 rgba(20,18,12,0.04), 0 1px 2px rgba(20,18,12,0.04);
  --shadow-md: 0 1px 0 rgba(20,18,12,0.04), 0 6px 18px -8px rgba(20,18,12,0.10);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
h1,h2,h3,h4,h5,h6 { margin: 0; }
p { margin: 0; }
ul { margin: 0; padding-left: 18px; }

/* --- Generic helpers --- */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }
.d-none { display: none !important; }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--muted);
  padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface);
}
.tag.ok  { color: var(--ok);  border-color: color-mix(in oklch, var(--ok)  35%, var(--line)); }
.tag.bad { color: var(--bad); border-color: color-mix(in oklch, var(--bad) 35%, var(--line)); }
.tag.warn{ color: var(--warn);border-color: color-mix(in oklch, var(--warn) 35%, var(--line)); }

/* --- Inputs --- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 120ms, box-shadow 120ms;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--ink) 8%, transparent);
}
.input.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.textarea { resize: vertical; min-height: 88px; line-height: 1.5; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  transition: background 120ms, border-color 120ms, transform 120ms;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in oklch, var(--ink) 5%, var(--surface-2)); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #FFF; }
.btn.primary:hover { background: color-mix(in oklch, var(--ink) 90%, #000); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: color-mix(in oklch, var(--accent) 88%, #000); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.danger { background: transparent; border-color: color-mix(in oklch, var(--bad) 50%, var(--line)); color: var(--bad); }
.btn.danger:hover { background: color-mix(in oklch, var(--bad) 8%, transparent); }
.btn.ok { background: transparent; border-color: color-mix(in oklch, var(--ok) 50%, var(--line)); color: var(--ok); }
.btn.ok:hover { background: color-mix(in oklch, var(--ok) 8%, transparent); }
.btn.sm { padding: 6px 10px; font-size: 12.5px; }
.btn.lg { padding: 12px 18px; font-size: 15px; }
.btn.full { width: 100%; }
.btn[disabled], .btn:disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* --- Cards --- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.card-pad { padding: 20px; }
.card-hdr { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-hdr h3 { margin: 0; font-size: 14px; font-weight: 600; }

/* --- Layout --- */
.app-root { min-height: 100%; display: flex; flex-direction: column; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 880px; }
.container.tight { max-width: 460px; }

/* --- Alerts / Messages --- */
.alert {
  padding: 11px 14px; border-radius: var(--radius); font-size: 13.5px; margin-bottom: 14px;
  border: 1px solid transparent; line-height: 1.5;
}
.alert-success { background: color-mix(in oklch, var(--ok) 10%, var(--surface)); color: var(--ok); border-color: color-mix(in oklch, var(--ok) 30%, var(--line)); }
.alert-danger  { background: color-mix(in oklch, var(--bad) 10%, var(--surface)); color: var(--bad); border-color: color-mix(in oklch, var(--bad) 30%, var(--line)); }
.alert-info    { background: color-mix(in oklch, var(--ink) 5%, var(--surface)); color: var(--ink-2); border-color: var(--line); }
.alert-warning { background: color-mix(in oklch, var(--warn) 10%, var(--surface)); color: color-mix(in oklch, var(--warn) 80%, var(--ink)); border-color: color-mix(in oklch, var(--warn) 30%, var(--line)); }

/* --- Navigation --- */
.mk-nav {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg) 80%, transparent);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.mk-nav .row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.mk-nav nav { display: flex; gap: 22px; }
.mk-nav nav a { font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.mk-nav nav a:hover { color: var(--ink); }
.mk-nav nav a.active { color: var(--ink); font-weight: 500; }
.mk-nav .nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  width: 17px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 140ms, opacity 140ms;
}
.mk-nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mk-nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.mk-nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; cursor: pointer; }
.logo-mark {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}

/* --- Hero (landing) --- */
.hero { padding: 64px 0 56px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 600; text-wrap: balance; }
.hero p.lede { font-size: 17px; color: var(--ink-2); max-width: 560px; margin: 0 0 28px; line-height: 1.55; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 14px; }
.hero-checks { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 13px; margin-top: 22px; list-style: none; padding: 0; }
.hero-checks li::before { content: "✓ "; color: var(--ok); }

/* --- Hero preview card --- */
.preview-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 22px; box-shadow: var(--shadow-md); transform: rotate(-0.3deg);
}
.preview-card .row { display: flex; justify-content: space-between; align-items: center; }
.preview-card .body { margin-top: 16px; }
.preview-card textarea {
  width: 100%; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 10px; font-family: var(--font-mono); font-size: 13px;
  resize: none; min-height: 86px; color: var(--ink);
}
.preview-card .meta { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* --- Feature grid --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface);
}
.feature h4 { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; }
.feature .ic { width: 28px; height: 28px; border-radius: 6px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink); border: 1px solid var(--line); }

/* --- Steps grid --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
.step-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: 0.08em; margin-bottom: 14px; }

/* --- Section blocks --- */
section.block { padding: 56px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 600; }
section.block .sub { color: var(--muted); margin: 0 0 28px; max-width: 560px; }

/* --- Page hero (inner pages) --- */
.page-hero { padding: 52px 0 44px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 600; }
.page-hero p.lede { font-size: 16px; color: var(--ink-2); max-width: 520px; margin: 0; line-height: 1.55; }

/* --- Footer --- */
footer.mk-foot { border-top: 1px solid var(--line); padding: 32px 0 56px; margin-top: 40px; color: var(--muted); font-size: 13px; }
footer.mk-foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
footer.mk-foot .footer-cols-compact { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px) { footer.mk-foot .cols { grid-template-columns: 1fr 1fr; } }
footer.mk-foot h5 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); font-weight: 600; }
footer.mk-foot a { display: block; padding: 3px 0; cursor: pointer; }
footer.mk-foot a:hover { color: var(--ink); }
footer.mk-foot .legal { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; gap: 8px; }

/* --- Auth pages --- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 56px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-md); }
.auth-card h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; font-weight: 600; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.auth-card .stack { display: flex; flex-direction: column; gap: 14px; }
.auth-card .alt { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.auth-card .alt a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.token-display { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.05em; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--line-strong); padding: 14px 16px; border-radius: var(--radius); user-select: all; }

/* --- Checkbox --- */
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input[type="checkbox"] { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--ink); flex-shrink: 0; }
.checkbox-row label { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.checkbox-row label a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }

/* --- App shell (user + admin dashboards) --- */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.app-side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-side .brand { padding: 4px 8px 14px; border-bottom: 1px solid var(--line); }
.app-side .nav-grp { display: flex; flex-direction: column; gap: 1px; }
.app-side .nav-grp .grp-label { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); padding: 0 8px 8px; }
.app-side .nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; border-radius: 6px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.app-side .nav-item:hover { background: var(--surface-2); color: var(--ink); }
.app-side .nav-item.active { background: var(--ink); color: #fff; }
.app-side .nav-item .ic-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--line-strong); flex-shrink: 0; }
.app-side .nav-item.active .ic-dot { background: var(--accent); }
.app-side .footer-pin { margin-top: auto; padding: 12px 8px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--line)); flex-shrink: 0; }

.app-main { padding: 28px 36px 80px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.page-head .sub { color: var(--muted); margin: 4px 0 0; font-size: 13.5px; }

/* --- Tables --- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.tbl th { text-align: left; padding: 10px 14px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line); background: var(--surface-2); font-weight: 500; }
table.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: color-mix(in oklch, var(--surface-2) 50%, transparent); }
.tbl-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.tbl-input { font-family: var(--font-mono); font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 5px 9px; color: var(--ink); width: 100%; min-width: 80px; }
.tbl-input:focus { outline: none; border-color: var(--ink); }
.mobile-record-list { display: none; }

/* --- Status badges --- */
.badge { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; border: 1px solid transparent; }
.badge-ok   { color: var(--ok);  background: color-mix(in oklch, var(--ok)  12%, var(--surface)); border-color: color-mix(in oklch, var(--ok)  30%, var(--line)); }
.badge-bad  { color: var(--bad); background: color-mix(in oklch, var(--bad) 12%, var(--surface)); border-color: color-mix(in oklch, var(--bad) 30%, var(--line)); }
.badge-warn { color: color-mix(in oklch, var(--warn) 80%, var(--ink)); background: color-mix(in oklch, var(--warn) 12%, var(--surface)); border-color: color-mix(in oklch, var(--warn) 30%, var(--line)); }
.badge-muted{ color: var(--muted); background: var(--surface-2); border-color: var(--line); }

/* --- Stat cards --- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 980px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.stat .lbl { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; }
.stat .val { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }

/* --- Send composer --- */
.composer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
@media (max-width: 980px) { .composer-grid { grid-template-columns: 1fr; } }
.char-meter { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.char-meter .bar { flex: 1; margin: 0 12px; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.char-meter .bar > span { display: block; height: 100%; background: var(--accent); transition: width 200ms; }
.char-meter.over .bar > span { background: var(--bad); }

/* --- Credits widget --- */
.credit-widget { background: var(--ink); color: #fff; padding: 18px; border-radius: var(--radius-lg); }
.credit-widget .top { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }
.credit-widget .amt { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin: 6px 0 12px; }
.credit-widget .pip-row { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin-bottom: 14px; }
.credit-widget .pip { height: 6px; border-radius: 2px; background: rgba(255,255,255,0.12); }
.credit-widget .pip.on { background: var(--accent); }
.credit-widget .cw-btn { width: 100%; background: rgba(255,255,255,0.08); color: #fff; padding: 9px; border-radius: 6px; font-size: 13px; }
.credit-widget .cw-btn:hover { background: rgba(255,255,255,0.16); }

/* --- Token slab --- */
.token-slab {
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  padding: 16px; border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.token-slab .tok { font-family: var(--font-mono); font-size: 15px; letter-spacing: 0.05em; user-select: all; word-break: break-all; }

/* --- Template list --- */
.tmpl-item { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.tmpl-item:hover { background: var(--surface-2); }
.tmpl-item:last-child { border-bottom: 0; }
.tmpl-item .name { font-weight: 500; font-size: 14px; }
.tmpl-item .body { color: var(--muted); font-size: 13px; margin-top: 2px; font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tmpl-item .actions { display: flex; gap: 6px; }

/* --- Subnav (tabs inside app) --- */
.subnav { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 22px; width: fit-content; }
.subnav button { padding: 6px 12px; border-radius: 5px; font-size: 13px; color: var(--muted); }
.subnav button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* --- Tab panes --- */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-weight: 500; font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .chev { font-family: var(--font-mono); transition: transform 160ms; color: var(--muted); }
.faq-item p { color: var(--muted); margin: 10px 0 0; font-size: 14px; line-height: 1.6; max-width: 700px; }

/* --- Account info rows --- */
.account-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; gap: 12px; }
.account-line:last-child { border-bottom: 0; }
.account-line .lbl { color: var(--muted); flex-shrink: 0; }
.account-line .val { font-weight: 500; text-align: right; word-break: break-all; }
.account-panel { max-width: 520px; }
.account-token-row { display: flex; gap: 8px; align-items: center; }
.danger-zone { padding-top: 24px; border-top: 1px solid var(--line); }

/* --- Admin row (gateway list etc.) --- */
.admin-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.admin-row:last-child { border-bottom: 0; }
.admin-row > div { min-width: 0; }
.empty-state { color: var(--muted); font-size: 13.5px; padding: 20px 0; text-align: center; }

/* --- Spinner --- */
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.6s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Utility --- */
.row-flex { display: flex; gap: 10px; align-items: center; }
.row-flex.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.stack-v { display: flex; flex-direction: column; gap: 14px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.text-ok   { color: var(--ok); }
.text-bad  { color: var(--bad); }
.text-warn { color: var(--warn); }
.text-muted{ color: var(--muted); }
.font-mono { font-family: var(--font-mono); }
.text-sm   { font-size: 12.5px; }
.nowrap    { white-space: nowrap; }

/* --- Pagination --- */
.pagination-bar { display: flex; gap: 4px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.pagination-bar button { font-family: var(--font-mono); font-size: 12px; padding: 5px 10px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.pagination-bar button:hover { background: var(--surface-2); color: var(--ink); }
.pagination-bar button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination-bar .pg-info { font-size: 12px; color: var(--muted); font-family: var(--font-mono); margin-left: 8px; }

/* --- Ko-fi / donation card --- */
.kofi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.kofi-card h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.kofi-card p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.donation-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid color-mix(in oklch, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  background: var(--accent-tint);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.donation-note strong { color: var(--ink); font-family: var(--font-mono); font-size: 12.5px; }
.donation-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.credits-summary { display: flex; gap: 32px; flex-wrap: wrap; }
.settings-smtp-grid { display: grid; grid-template-columns: 1fr 90px auto 1fr; gap: 12px; align-items: end; }
.settings-smtp-credentials { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* --- Content sections (about/terms) --- */
.prose { max-width: 720px; }
.prose h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.prose p, .prose li { color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose ul { margin-top: 8px; }
.prose li { margin-bottom: 4px; }
.prose-section { padding: 28px 0; border-bottom: 1px solid var(--line); }
.prose-section:last-child { border-bottom: 0; }

/* --- Contact cards --- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.contact-card .ic-lg { width: 44px; height: 44px; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.contact-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

/* --- Standalone lede --- */
.lede { font-size: 16px; color: var(--ink-2); line-height: 1.55; max-width: 560px; }

/* --- Landing: hero section --- */
.hero { padding: 72px 0 64px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 600; text-wrap: balance; }
.hero p.lede { font-size: 16.5px; color: var(--ink-2); max-width: 540px; margin: 0 0 28px; line-height: 1.55; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

/* hero checklist */
.hero-checks { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.hero-checks span { display: flex; align-items: center; gap: 6px; }
.ic-check { width: 14px; height: 14px; stroke: var(--ok); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* hero preview card */
.preview-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-md);
  transform: rotate(-0.4deg);
}
.preview-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.preview-body { display: flex; flex-direction: column; gap: 0; }
.preview-field-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.preview-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.preview-bar { flex: 1; margin: 0 10px; height: 3px; background: var(--surface-2); border-radius: 2px; overflow: hidden; border: 1px solid var(--line); }
.preview-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 99px; }
.ok-dot { background: var(--ok); }

/* --- Landing: steps --- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-grid { grid-template-columns: 1fr; } }
.step { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step h4 { font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: 13.5px; margin: 0; }

/* --- Landing: features --- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 880px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.feature h4 { margin: 12px 0 6px; font-size: 15px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.feature .ic {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
}
/* old emoji icon (keep for compat) */
.feature-icon { font-size: 20px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }

/* --- Landing: donation list --- */
.donation-list { padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 14px; }
.donation-list li { display: flex; align-items: flex-start; gap: 8px; }
.donation-list li::before { content: "→"; font-family: var(--font-mono); color: var(--accent); flex-shrink: 0; }

/* --- Landing: price strip --- */
.price-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
@media (max-width: 640px) { .price-strip { grid-template-columns: 1fr; } }
.price-action { text-align: right; }
.price-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.025em; margin-bottom: 10px; }
.price-amount small { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 8px; letter-spacing: 0; }

/* --- About page stats --- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 36px;
}
@media (max-width: 640px) { .about-stats { grid-template-columns: 1fr 1fr; } }
.about-stat {
  background: var(--surface);
  padding: 20px 22px;
}
.about-stat-val {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.about-stat-lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* --- About page list --- */
.about-list {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.about-list li { display: flex; gap: 10px; align-items: flex-start; }
.about-list li::before {
  content: "—";
  font-family: var(--font-mono);
  color: var(--muted);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- Section title (legacy) --- */
.section-title { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 28px; }

/* --- Block variants --- */
section.block.alt { background: var(--surface); }
.center-block { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.center-block h2 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

/* --- Contact grid --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* --- FAQ list --- */
.faq-list { max-width: 720px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item summary { cursor: pointer; list-style: none; font-weight: 500; font-size: 14.5px; padding: 16px 20px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); font-size: 13.5px; line-height: 1.6; padding: 0 20px 16px; margin: 0; }

/* --- Auth page structure --- */
.auth-header { margin-bottom: 24px; }
.auth-header h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-top: 6px; }
.auth-links { display: flex; gap: 16px; margin-top: 18px; justify-content: center; font-size: 13px; color: var(--muted); }
.auth-links a { color: var(--ink); font-weight: 500; }
.auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- App shell sidebar nav --- */
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-link { display: block; width: 100%; text-align: left; padding: 8px 12px; border-radius: 6px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.side-link:hover { background: var(--surface-2); color: var(--ink); }
.side-link.active { background: var(--ink); color: #fff; }

/* --- App top bar --- */
.app-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }

/* --- Muted box (empty / placeholder content) --- */
.muted-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--muted); font-size: 13.5px; }

/* --- Prose (terms / legal content) --- */
.prose { max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.prose h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.prose p { color: var(--muted); font-size: 14px; line-height: 1.7; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 0; }

/* --- Btn active state (pagination) --- */
.btn.ghost.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* --- Filter pills --- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill {
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.pill:hover { border-color: var(--line-strong); color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Stats grid (overview) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card.low-credit {
  border-color: color-mix(in oklch, var(--warn) 45%, var(--line));
  background: color-mix(in oklch, var(--warn) 8%, var(--surface));
}
.stat-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

/* --- Contact page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.contact-info-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.captcha-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.captcha-card input { background: var(--surface); }
.captcha-code {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 11px;
  margin-bottom: 6px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  user-select: none;
}
.contact-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 16px;
  gap: 6px;
}
.contact-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  background: oklch(0.95 0.08 145);
  color: var(--ok);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-weight: 600;
}
.contact-success h3 { margin: 0; font-size: 17px; font-weight: 600; }
.d-none { display: none !important; }

/* --- FAQ page --- */
.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  padding: 15px 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.18s;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary:hover { background: var(--surface-2); }
.faq-item > p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}
.faq-cta {
  margin-top: 48px;
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.faq-cta h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.faq-cta p { color: var(--muted); font-size: 14px; margin: 0 0 18px; }

/* --- Mobile responsive app shell --- */
@media (max-width: 760px) {
  .container { padding: 0 18px; }
  .mk-nav .row { position: relative; gap: 10px; }
  .mk-nav .logo { margin-right: auto; }
  .mk-nav .nav-actions { margin-left: 0; }
  .nav-toggle { display: inline-flex; order: 3; }
  .mk-nav nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 20;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .mk-nav.menu-open nav { display: flex; }
  .mk-nav nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius);
  }
  .mk-nav nav a:hover,
  .mk-nav nav a.active { background: var(--surface-2); }
  .mk-nav .nav-actions .btn { padding: 7px 10px; font-size: 12.5px; }
  .btn { min-height: 42px; white-space: normal; text-align: center; }
  .btn.sm { min-height: 36px; }
  .input, .textarea, .select { min-height: 42px; font-size: 16px; }
  .app-shell { grid-template-columns: 1fr; min-height: auto; }
  .app-side { display: none; }
  .subnav {
    display: flex;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 59px;
    z-index: 6;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav button { flex: 0 0 auto; min-height: 36px; }
  .app-main { padding: 18px 16px 56px; }
  .app-topbar { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 16px; }
  .page-title { font-size: 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.tbl { min-width: 720px; }
  #accounts-list.tbl-wrap,
  #logs-list.tbl-wrap,
  #history-list.tbl-wrap { border: 0; border-radius: 0; overflow: visible; }
  #accounts-list table.tbl,
  #logs-list table.tbl,
  #history-list table.tbl { display: none; }
  .mobile-record-list { display: flex; flex-direction: column; gap: 12px; }
  .mobile-record-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
  }
  .mobile-record-card.is-muted { opacity: 0.68; }
  .mobile-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
  .mobile-record-head strong { min-width: 0; word-break: break-word; font-size: 14px; }
  .mobile-record-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
  }
  .mobile-record-line span,
  .mobile-record-token span { color: var(--muted); font-size: 12px; flex-shrink: 0; }
  .mobile-record-line b { font-weight: 500; text-align: right; min-width: 0; word-break: break-word; }
  .mobile-record-token { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
  .mobile-record-message {
    margin: 10px 0 0;
    padding: 10px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
  }
  .mobile-record-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-row .btn-row,
  .admin-row > div:last-child { width: 100%; }
  .admin-row .btn-row .btn { flex: 1 1 auto; }
  .token-slab,
  .account-line,
  .preview-footer { flex-direction: column; align-items: stretch; }
  .tmpl-item { grid-template-columns: 1fr; }
  .tmpl-item .body { white-space: normal; }
  .settings-smtp-grid,
  .settings-smtp-credentials { grid-template-columns: 1fr; }
  .account-panel { max-width: none; }
  .account-mobile-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 16px;
  }
  .account-token-row { flex-direction: column; align-items: stretch; }
  .account-token-row .btn,
  .account-mobile-card .btn { width: 100%; }
  /* landing */
  .hero { padding: 40px 0 34px; }
  .hero h1 { font-size: 34px; line-height: 1.08; }
  .hero p.lede { font-size: 15.5px; }
  .hero-actions .btn { flex: 1 1 180px; }
  .preview-card { transform: none; padding: 16px; }
  .preview-meta { align-items: flex-start; gap: 8px; }
  section.block { padding: 42px 0; }
  section.block h2 { font-size: 24px; }
  .price-strip { padding: 22px; }
  .price-action { text-align: left; }
  .price-amount { font-size: 34px; }
  .price-amount small { display: block; margin-left: 0; }
  #donatii .container > div { grid-template-columns: 1fr !important; gap: 28px !important; }
  .hero-checks { gap: 12px; }
  .credits-summary { gap: 20px; }
  .donation-buttons .btn { flex: 1 1 100%; }
  /* contact */
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-card { padding: 20px; }
  .captcha-card { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .mk-nav .nav-actions .guest-only:not(.accent) { display: none; }
  .mk-nav .nav-actions .btn { padding: 7px 9px; font-size: 12px; }
  .hero h1 { font-size: 30px; }
  .stats-grid { grid-template-columns: 1fr; }
  .filter-pills .pill { flex: 1 1 auto; text-align: center; }
  .app-main { padding-left: 12px; padding-right: 12px; }
}
