/* ────────────────────────────────────────────────────────────────
   404 VPN — shared design system for account / auth / checkout
   Mirrors tokens from 404vpn-landing.html. Extend, don't diverge.
   ──────────────────────────────────────────────────────────────── */

:root {
  --bg: #0e0f12;
  --surface: #16181d;
  --surface2: #1c1f25;
  --surface3: #22252c;
  --line: rgba(255,255,255,0.06);
  --line-strong: rgba(255,255,255,0.10);
  --line-heavy: rgba(255,255,255,0.16);
  --text: #e8e9ec;
  --text-dim: rgba(232,233,236,0.58);
  --text-mute: rgba(232,233,236,0.38);
  --accent: #6aa9ff;
  --accent-hover: #7fb7ff;
  --accent2: #a67bff;
  --green: #4cc38a;
  --red: #e26d6d;
  --amber: #e8a85a;
  --hover: rgba(255,255,255,0.04);
  --hover-soft: rgba(255,255,255,0.015);
  --max: 1240px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-soft: 0 1px 0 rgba(255,255,255,0.02) inset, 0 2px 8px rgba(0,0,0,0.2);
  --shadow-elev: 0 1px 0 rgba(255,255,255,0.03) inset, 0 8px 28px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "tnum", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--bg); }

/* ── typography helpers ── */
.label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
}
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 500; }
h2 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; }
h3 { font-size: 18px; line-height: 1.35; }
h4 { font-size: 14px; line-height: 1.4; }
p { margin: 0; }

/* ── layout ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 480px; margin: 0 auto; padding: 0 28px; }
.wrap-mid { max-width: 880px; margin: 0 auto; padding: 0 28px; }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ── nav (account pages) ── */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(14, 15, 18, 0.78);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  max-width: var(--max); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 12px; letter-spacing: -0.02em;
  font-family: "JetBrains Mono", monospace;
}
.brand-name { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand-name .slash { color: var(--text-mute); font-weight: 400; margin: 0 4px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { font-size: 13px; color: var(--text-dim); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-user {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.nav-user .email {
  font-size: 12.5px; color: var(--text-dim); font-family: "JetBrains Mono", monospace;
  max-width: 220px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .nav-user .email { max-width: 120px; }
}

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 9px;
  font-family: inherit; font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: 1px solid var(--line-strong);
  background: var(--hover-soft); color: var(--text);
  transition: background .15s, border-color .15s, transform .15s, color .15s;
  text-decoration: none; line-height: 1;
  white-space: nowrap;
}
.btn:hover { background: var(--hover); border-color: var(--line-heavy); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn[disabled], .btn.is-loading {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(2px); }

.btn-primary {
  background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 1px 2px rgba(0,0,0,0.4),
    0 4px 14px rgba(0,0,0,0.28);
}
.btn-primary:hover {
  background: #fff; transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 2px 4px rgba(0,0,0,0.45),
    0 10px 24px rgba(0,0,0,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-accent {
  background: linear-gradient(180deg, #7fb7ff, #5b9cf7);
  color: #08121f;
  border-color: #8fc1ff;
  font-weight: 700;
  letter-spacing: -0.003em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    0 1px 0 rgba(8,18,31,0.35),
    0 3px 10px rgba(107,169,255,0.35),
    0 10px 28px rgba(107,169,255,0.22);
}
.btn-accent:hover {
  background: linear-gradient(180deg, #99c6ff, #6fadfc);
  border-color: #a6cdff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.6),
    0 2px 0 rgba(8,18,31,0.4),
    0 4px 12px rgba(107,169,255,0.45),
    0 14px 36px rgba(107,169,255,0.4);
}
.btn-accent:active { transform: translateY(0); }
.btn-ghost {
  background: transparent; border-color: transparent; color: var(--text-dim);
}
.btn-ghost:hover { background: var(--hover); color: var(--text); border-color: var(--line); }
.btn-danger {
  background: transparent; border-color: color-mix(in oklab, var(--red) 40%, transparent); color: var(--red);
}
.btn-danger:hover { background: color-mix(in oklab, var(--red) 12%, transparent); border-color: var(--red); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }
.btn-lg { padding: 14px 24px; font-size: 15px; border-radius: 10px; }
.btn-xl { padding: 16px 30px; font-size: 16px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn .arrow { font-family: "JetBrains Mono", monospace; }

/* ── cards ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 1px 2px rgba(0,0,0,0.18);
}
.card-q {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.card-padded { padding: 28px; }
.card-tight { padding: 16px 18px; }

/* ── forms ── */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; gap: 12px; }
.form-row > * { flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 12px; letter-spacing: 0.03em; color: var(--text-dim);
  font-weight: 500; display: flex; justify-content: space-between; align-items: baseline;
}
.field-hint { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }
.field-error { font-size: 12px; color: var(--red); margin-top: 4px; display: none; }
.field.has-error .field-error { display: block; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea {
  border-color: color-mix(in oklab, var(--red) 60%, transparent);
}

.input, .select, .textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--text-mute); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-heavy); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.input[readonly] { background: var(--surface2); color: var(--text-dim); cursor: default; }
.input.mono { font-family: "JetBrains Mono", monospace; font-size: 13px; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e8e9ec' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.textarea { resize: vertical; min-height: 90px; }

.input-group {
  display: flex; align-items: stretch;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.input-group:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.input-group .input {
  border: none;
  background: transparent;
  padding: 11px 14px;
}
.input-group .input:focus { box-shadow: none; background: transparent; }
.input-group .input-addon {
  display: flex; align-items: center;
  padding: 0 14px;
  color: var(--text-mute);
  font-size: 12.5px;
  background: var(--surface2);
  border-left: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
}
.input-group.addon-left .input-addon { border-left: none; border-right: 1px solid var(--line); }

/* checkbox / radio */
.check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; user-select: none;
  font-size: 13.5px; color: var(--text-dim);
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1px solid var(--line-heavy);
  background: var(--surface);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.check input:checked ~ .box {
  background: var(--accent); border-color: var(--accent);
}
.check input:checked ~ .box::after {
  content: "";
  width: 8px; height: 5px;
  border-left: 1.6px solid #0a0d14;
  border-bottom: 1.6px solid #0a0d14;
  transform: rotate(-45deg) translate(1px,-1px);
}
.check input:focus-visible ~ .box {
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 30%, transparent);
}
.check a { color: var(--accent); }
.check a:hover { text-decoration: underline; }

.radio .box { border-radius: 50%; }
.radio input:checked ~ .box::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #0a0d14; border: none; transform: none;
}

/* ── segmented control / tabs ── */
.seg {
  display: inline-flex;
  padding: 4px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 10px;
  gap: 2px;
}
.seg button {
  appearance: none;
  background: transparent; border: none;
  color: var(--text-dim);
  font: inherit; font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.seg button:hover { color: var(--text); }
.seg button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 2px 6px rgba(0,0,0,0.18);
}

.tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.tabs button {
  appearance: none; background: transparent; border: none;
  color: var(--text-dim);
  font: inherit; font-size: 13.5px; font-weight: 500;
  padding: 14px 4px; margin-right: 22px;
  cursor: pointer;
  position: relative;
  transition: color .15s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  color: var(--text);
}
.tabs button.active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
}

/* ── badges / chips ── */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 4px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text-dim);
}
.chip-green {
  background: color-mix(in oklab, var(--green) 15%, transparent);
  color: var(--green);
  border-color: color-mix(in oklab, var(--green) 30%, transparent);
}
.chip-accent {
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
}
.chip-amber {
  background: color-mix(in oklab, var(--amber) 15%, transparent);
  color: var(--amber);
  border-color: color-mix(in oklab, var(--amber) 30%, transparent);
}
.chip-red {
  background: color-mix(in oklab, var(--red) 15%, transparent);
  color: var(--red);
  border-color: color-mix(in oklab, var(--red) 30%, transparent);
}
.chip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ── table ── */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
}
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--hover-soft); }
.table th {
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-mute);
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
}
.table td .mono { font-size: 12.5px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── alert / notice ── */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--surface2);
  border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.55;
  color: var(--text-dim);
  display: flex; gap: 12px; align-items: flex-start;
}
.alert strong { color: var(--text); font-weight: 500; }
.alert-accent {
  background: color-mix(in oklab, var(--accent) 8%, var(--surface2));
  border-color: color-mix(in oklab, var(--accent) 25%, var(--line));
}
.alert-green {
  background: color-mix(in oklab, var(--green) 8%, var(--surface2));
  border-color: color-mix(in oklab, var(--green) 25%, var(--line));
}
.alert-amber {
  background: color-mix(in oklab, var(--amber) 8%, var(--surface2));
  border-color: color-mix(in oklab, var(--amber) 25%, var(--line));
}
.alert-red {
  background: color-mix(in oklab, var(--red) 8%, var(--surface2));
  border-color: color-mix(in oklab, var(--red) 25%, var(--line));
}
.alert .icon { flex-shrink: 0; color: var(--accent); margin-top: 1px; }
.alert-green .icon { color: var(--green); }
.alert-amber .icon { color: var(--amber); }
.alert-red .icon { color: var(--red); }

/* ── auth (centered) layout ── */
.auth-shell {
  min-height: calc(100vh - 58px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 36px 32px;
  box-shadow: var(--shadow-elev);
}
.auth-head { margin-bottom: 24px; text-align: left; }
.auth-head h1 {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.auth-head p {
  font-size: 14px; color: var(--text-dim); line-height: 1.55;
}
.auth-foot {
  margin-top: 22px; padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-dim);
  text-align: center;
}
.auth-foot a { color: var(--accent); font-weight: 500; }
.auth-foot a:hover { text-decoration: underline; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-mute); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* ── dashboard layout ── */
.dash-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 58px);
}
.dash-aside {
  border-right: 1px solid var(--line);
  padding: 24px 16px;
  background: var(--bg);
  position: sticky; top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
}
.dash-aside-group + .dash-aside-group { margin-top: 18px; }
.dash-aside-label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-mute); font-weight: 500;
  padding: 0 12px; margin-bottom: 8px;
}
.dash-aside ul { list-style: none; margin: 0; padding: 0; }
.dash-aside a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text-dim);
  transition: background .12s, color .12s;
}
.dash-aside a:hover { color: var(--text); background: var(--hover); }
.dash-aside a.active {
  background: var(--surface2); color: var(--text);
}
.dash-aside a .ico { color: var(--text-mute); flex-shrink: 0; }
.dash-aside a.active .ico { color: var(--accent); }
.dash-aside a .count {
  margin-left: auto;
  font-size: 11px; color: var(--text-mute);
  font-family: "JetBrains Mono", monospace;
}

.dash-main {
  padding: 36px 44px 80px;
  max-width: 1080px;
  width: 100%;
}
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
  flex-wrap: wrap;
}
.page-head h1 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.page-head .page-sub { font-size: 14px; color: var(--text-dim); margin-top: 6px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.section-head { margin-bottom: 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.section-head .hint { font-size: 12.5px; color: var(--text-mute); }
.section + .section { margin-top: 32px; }

/* grid helpers */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }

/* stat tile */
.stat { padding: 18px 20px; }
.stat .label { margin-bottom: 8px; }
.stat .v {
  font-size: 26px; font-weight: 500; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.stat .v.green { color: var(--green); }
.stat .v.accent { color: var(--accent); }
.stat .s { font-size: 11.5px; color: var(--text-dim); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* copy input */
.copy-row {
  display: flex; gap: 8px; align-items: stretch;
}
.copy-row .input { flex: 1; }
.copy-row .btn { flex-shrink: 0; }

.copy-toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: var(--shadow-elev);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 100;
  display: flex; align-items: center; gap: 8px;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.copy-toast .check { color: var(--green); }

/* modal */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(8, 9, 11, 0.72);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; z-index: 80;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: 100%; max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-elev);
}
.modal h2 { font-size: 20px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.02em; }
.modal p { font-size: 14px; color: var(--text-dim); line-height: 1.55; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* QR box */
.qr-box {
  width: 180px; height: 180px;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.qr-box svg { width: 100%; height: 100%; display: block; }

/* tag list (payment cards, deeplinks, etc) */
.app-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.app-link:hover { border-color: var(--line-heavy); background: var(--hover-soft); }
.app-link .logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--surface2);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  color: var(--text);
  flex-shrink: 0;
}
.app-link .t { font-size: 13.5px; font-weight: 500; }
.app-link .s { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.app-link .arrow {
  margin-left: auto; color: var(--text-mute);
  font-family: "JetBrains Mono", monospace;
  transition: color .15s, transform .15s;
}
.app-link:hover .arrow { color: var(--accent); transform: translateX(2px); }

/* footer (minimal) */
.foot-mini {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text-mute);
}
.foot-mini .wrap {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.foot-mini a { color: var(--text-dim); margin-left: 18px; }
.foot-mini a:hover { color: var(--text); }

/* ── utilities ── */
.hidden { display: none !important; }
.center { text-align: center; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.text-accent { color: var(--accent); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-amber { color: var(--amber); }
.mt-0 { margin-top: 0; }
.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; }
.mb-lg { margin-bottom: 24px; }
.w-full { width: 100%; }

/* keyboard hint */
kbd {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-heavy);
  border-radius: 4px;
  background: var(--surface2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* ── responsive ── */
@media (max-width: 960px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-aside {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .dash-aside ul {
    display: flex; gap: 4px; overflow-x: auto;
    padding-bottom: 4px;
  }
  .dash-aside-group + .dash-aside-group { margin-top: 0; }
  .dash-aside-label { display: none; }
  .dash-aside a { white-space: nowrap; }
  .dash-main { padding: 24px 20px 60px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .auth-card { padding: 28px 24px 24px; }
  .form-row { flex-direction: column; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .grid-4 { grid-template-columns: 1fr; }
}
