/* Naija Task design system
   Style: clean Swiss minimal, fintech trust. Brand: deep green (naira, Nigeria) with a warm gold for money.
   All colours below meet WCAG AA contrast for their intended use. */

@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --bg: #f5f6f2;
  --surface: #ffffff;
  --surface-2: #f0f2ec;
  --text: #13201b;
  --muted: #4f5d56;
  --border: #dde2da;
  --primary: #0b6b47;
  --primary-hover: #08583a;
  --primary-soft: #e3f1ea;
  --on-primary: #ffffff;
  --gold: #8a5a0b;
  --gold-soft: #fbf0d8;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --warning: #8a4b00;
  --warning-soft: #fff3df;
  --info: #155e9a;
  --info-soft: #e6f0fa;
  --ring: #0b6b47;

  --font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 5vw, 3rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 32, 27, 0.06), 0 1px 1px rgba(19, 32, 27, 0.04);
  --shadow-lg: 0 10px 30px rgba(19, 32, 27, 0.12);
  --t-fast: 150ms;
  --t: 220ms;
  --header-h: 60px;
  --bottom-nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s-3); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-4); }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
small, .small { font-size: var(--fs-xs); }
.muted { color: var(--muted); }
.wrap { overflow-wrap: anywhere; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; left: var(--s-3); top: -60px; z-index: 100;
  background: var(--text); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); color: #fff; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s-4); }
.container.narrow { max-width: 760px; }

/* ---------- icons ---------- */
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.lg { width: 24px; height: 24px; }
.icon.xl { width: 32px; height: 32px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover:not([disabled]) { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover:not([disabled]) { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover:not([disabled]) { background: var(--primary-soft); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover:not([disabled]) { background: #931c13; color: #fff; }
.btn-telegram { background: #1f6fb2; color: #fff; }
.btn-telegram:hover:not([disabled]) { background: #185a91; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-xs); }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 700ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--radius-sm); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- forms ---------- */
.field { margin-bottom: var(--s-4); }
.field label, .label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: 6px; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: 10px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--surface); border: 1px solid #b9c2bb; border-radius: var(--radius-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
textarea.input { min-height: 110px; resize: vertical; }
.input:hover { border-color: #8f9b93; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11, 107, 71, 0.2); }
.input[aria-invalid='true'] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: var(--fs-xs); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.field-error:empty { display: none; }
.password-wrap { position: relative; }
.password-wrap .input { padding-right: 52px; }
.password-wrap .icon-btn { position: absolute; right: 2px; top: 1px; }
.check { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.input-prefix .input { padding-left: 34px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.alert { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: var(--s-4); }
.alert .icon { margin-top: 2px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--primary-soft); color: var(--primary-hover); }
.alert-info { background: var(--info-soft); color: var(--info); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow); }
.card + .card { margin-top: var(--s-4); }
.grid > .card { margin-top: 0; }
.app-main .view > div > * + * { margin-top: var(--s-4); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.badge-green { background: var(--primary-soft); color: var(--primary-hover); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-grey { background: var(--surface-2); color: var(--muted); }

.stat { padding: var(--s-4); }
.stat .label { color: var(--muted); font-weight: 500; font-size: var(--fs-xs); margin: 0 0 4px; }
.stat .value { font-size: var(--fs-xl); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- site header (public pages) ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: var(--s-3); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--fs-lg); color: var(--text); text-decoration: none; }
.logo:hover { color: var(--text); }
.logo img { width: 32px; height: 32px; }
.nav-actions { display: flex; align-items: center; gap: var(--s-2); }

/* ---------- landing ---------- */
.hero { padding: var(--s-7) 0 var(--s-6); }
.hero-grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } .hero { padding: var(--s-8) 0; } }
.hero .lead { font-size: var(--fs-lg); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.rules-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.rules-card header { background: var(--primary); color: #fff; padding: var(--s-4) var(--s-5); font-weight: 600; }
.rules-list { list-style: none; margin: 0; padding: 0; }
.rules-list li { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border); }
.rules-list li:first-child { border-top: 0; }
.rules-list strong { font-variant-numeric: tabular-nums; }
.section { padding: var(--s-7) 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: var(--s-5); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: var(--s-5); padding-top: calc(var(--s-5) + 36px); }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: var(--s-5); left: var(--s-5);
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-hover);
  display: grid; place-items: center; font-weight: 700;
}
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-3);
  padding: var(--s-4) 0; cursor: pointer; font-weight: 600; list-style: none; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { color: var(--muted); padding-bottom: var(--s-4); margin: 0; }
.promo {
  display: flex; flex-direction: column; gap: var(--s-4); align-items: flex-start;
  background: var(--text); color: #fff; border-radius: var(--radius); padding: var(--s-5);
}
.promo p { color: #d3ddd8; margin: 0; }
.promo h2, .promo h3 { color: #fff; margin: 0 0 var(--s-2); }
@media (min-width: 720px) { .promo { flex-direction: row; align-items: center; justify-content: space-between; } }

.site-footer { padding: var(--s-6) 0 calc(var(--s-6) + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface); font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s-2); }
.footer-links a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- auth pages ---------- */
.auth-page { min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: var(--s-6) var(--s-4); }
@media (min-height: 760px) { .auth-main { align-items: center; } }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: var(--fs-2xl); }

/* ---------- app shell (user + admin portals) ---------- */
.app-header { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--border); }
.app-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); height: var(--header-h); padding: 0 var(--s-4); }
.balance-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: var(--gold-soft); color: var(--gold); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; }
.app-layout { display: flex; min-height: calc(100vh - var(--header-h)); }
.sidebar { display: none; }
.app-main { flex: 1; min-width: 0; padding: var(--s-5) var(--s-4) calc(var(--bottom-nav-h) + var(--s-6) + env(safe-area-inset-bottom)); }
.app-main > .view { max-width: 920px; margin: 0 auto; }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-5); }
.page-title h1 { font-size: var(--fs-2xl); margin: 0; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--bottom-nav-h); font-size: 0.75rem; font-weight: 500; color: var(--muted); text-decoration: none;
}
.bottom-nav a[aria-current='page'] { color: var(--primary); font-weight: 700; }
.bottom-nav a[aria-current='page'] .icon { stroke-width: 2.4; }

.side-link {
  display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-3); border-radius: var(--radius-sm);
  color: var(--muted); text-decoration: none; font-weight: 500; min-height: 44px;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link[aria-current='page'] { background: var(--primary-soft); color: var(--primary-hover); font-weight: 700; }
.side-link .count { margin-left: auto; }
.side-sep { border: 0; border-top: 1px solid var(--border); margin: var(--s-4) 0; }
a.card.stat { color: inherit; text-decoration: none; transition: border-color var(--t-fast); }
a.card.stat:hover { border-color: var(--primary); color: inherit; }

@media (min-width: 960px) {
  .sidebar { display: block; width: 248px; flex: none; border-right: 1px solid var(--border); background: var(--surface); padding: var(--s-4); position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .bottom-nav { display: none; }
  .app-main { padding: var(--s-6) var(--s-6) var(--s-7); }
}

/* Admin mobile nav: horizontally scrollable tabs inside the page (no page-level horizontal scroll). */
.admin-tabs { display: flex; gap: var(--s-2); overflow-x: auto; padding: var(--s-2) var(--s-4); border-bottom: 1px solid var(--border); background: var(--surface); scrollbar-width: thin; }
.admin-tabs a { flex: none; padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.admin-tabs a[aria-current='page'] { background: var(--primary-soft); color: var(--primary-hover); }
@media (min-width: 960px) { .admin-tabs { display: none; } }
.admin-page .app-main { padding-bottom: var(--s-7); }

/* Wallet hero */
.wallet-hero { background: var(--primary); color: #fff; border-radius: var(--radius); padding: var(--s-5); display: grid; gap: var(--s-4); }
.wallet-hero .amount { font-size: clamp(2rem, 7vw, 2.75rem); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.wallet-hero .meta { color: #cfe6da; font-size: var(--fs-sm); }
.wallet-hero .actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.wallet-hero .btn-light { background: #fff; color: var(--primary-hover); }
.wallet-hero .btn-light:hover:not([disabled]) { background: #e9f3ee; color: var(--primary-hover); }
.wallet-hero .btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.wallet-hero .btn-outline-light:hover:not([disabled]) { background: rgba(255,255,255,0.12); color: #fff; }

.progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--primary); border-radius: 99px; transition: width var(--t); }

/* Task list */
.task { display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-4) 0; border-top: 1px solid var(--border); }
.task:first-child { border-top: 0; padding-top: 0; }
.task-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.task-icon.whatsapp { background: #e3f5e9; color: #126b34; }
.task-icon.telegram { background: #e3effa; color: #1f6fb2; }
.task-icon.website { background: var(--gold-soft); color: var(--gold); }
.task-icon.social, .task-icon.other { background: var(--surface-2); color: var(--muted); }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 600; margin: 0 0 2px; overflow-wrap: anywhere; }
.task-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; font-size: var(--fs-xs); color: var(--muted); }
.task-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-3); }
.instructions { white-space: pre-line; background: var(--surface-2); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); margin: var(--s-3) 0 0; overflow-wrap: anywhere; }

/* Lists and tables */
.list { list-style: none; margin: 0; padding: 0; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--border); }
.list-row:first-child { border-top: 0; }
.list-row .main { min-width: 0; }
.list-row .title { font-weight: 600; overflow-wrap: anywhere; }
.amount-pos { color: var(--primary-hover); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount-neg { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td .cell-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; }
.copy-row { display: flex; gap: var(--s-2); align-items: stretch; }
.copy-row .input { flex: 1; min-width: 0; }

/* Admin withdrawal cards (readable on phones) */
.w-card { border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); }
.w-card + .w-card { margin-top: var(--s-3); }
.w-card .value { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.w-grid { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s-4); font-size: var(--fs-sm); margin: var(--s-3) 0; }
.w-grid dt { color: var(--muted); }
.w-grid dd { margin: 0; overflow-wrap: anywhere; font-weight: 500; }

/* States */
.empty { text-align: center; padding: var(--s-6) var(--s-4); color: var(--muted); }
.empty .icon { margin: 0 auto var(--s-3); width: 36px; height: 36px; color: #8f9b93; }
.empty h3 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, #e6e9e2 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 6px; height: 16px; margin-bottom: 10px; }
.skeleton.tall { height: 64px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Toasts */
.toasts { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom)); display: grid; gap: var(--s-2); width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 960px) { .toasts { bottom: 24px; } }
.toast { pointer-events: auto; display: flex; gap: var(--s-3); align-items: flex-start; background: var(--text); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); animation: toast-in var(--t) ease-out; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--primary-hover); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Dialog */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(94vw, 520px); max-height: 90vh; box-shadow: var(--shadow-lg); color: var(--text); }
dialog::backdrop { background: rgba(19, 32, 27, 0.5); }
.dialog-body { padding: var(--s-5); overflow-y: auto; max-height: calc(90vh - 72px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--border); }
.dialog-head h2 { font-size: var(--fs-lg); margin: 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-4); }

/* Legal pages */
.prose { max-width: 720px; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-6); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s-2); }
.breadcrumbs { font-size: var(--fs-sm); color: var(--muted); margin: var(--s-5) 0 var(--s-4); }
.breadcrumbs a { color: var(--muted); }

.row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: var(--s-4); }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .app-header, .bottom-nav, .sidebar, .admin-tabs, .toasts, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
.text-danger { color: var(--danger); font-weight: 600; }
