/* ZoraSMM design system — tokens, base, components, layouts. Mobile-first. */

/* Inter (SIL Open Font License 1.1, see /assets/fonts/LICENSE-Inter.txt), self-hosted latin subset */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --bg: #F5F7FB;
  --bg-elev: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #F1F4F9;
  --surface-3: #E9EDF5;
  --border: #E3E8F0;
  --border-strong: #CBD3E1;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #5B6577;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-soft: #EEF0FF;
  --primary-text: #4338CA;
  --on-primary: #FFFFFF;
  --accent: #06B6D4;
  --accent-soft: #E3F8FC;
  --success: #16A34A;
  --success-soft: #E8F7EE;
  --warning: #B45309;
  --warning-soft: #FEF5E6;
  --danger: #DC2626;
  --danger-soft: #FDECEC;
  --info: #2563EB;
  --info-soft: #EAF1FE;
  --violet: #7C3AED;
  --violet-soft: #F3EDFF;
  --gradient: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-hero: radial-gradient(60% 60% at 15% 10%, rgba(79, 70, 229, .14) 0%, transparent 60%),
                   radial-gradient(50% 50% at 90% 20%, rgba(6, 182, 212, .12) 0%, transparent 60%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 6px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
  --focus: 0 0 0 3px rgba(79, 70, 229, .35);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
  --sidebar-w: 264px;
  --container: 1180px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020; --bg-elev: #10162B; --surface: #121833; --surface-2: #182042; --surface-3: #1F2950;
    --border: #26305A; --border-strong: #354070; --text: #E7EAF3; --text-2: #C3CADB; --muted: #97A2BF;
    --primary: #7C74FF; --primary-hover: #9690FF; --primary-soft: rgba(124, 116, 255, .14); --primary-text: #ABA6FF;
    --accent: #22D3EE; --accent-soft: rgba(34, 211, 238, .12);
    --success: #34D399; --success-soft: rgba(52, 211, 153, .12); --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, .12);
    --danger: #F87171; --danger-soft: rgba(248, 113, 113, .12); --info: #60A5FA; --info-soft: rgba(96, 165, 250, .12);
    --violet: #A78BFA; --violet-soft: rgba(167, 139, 250, .14);
    --gradient-hero: radial-gradient(60% 60% at 15% 10%, rgba(124, 116, 255, .20) 0%, transparent 60%),
                     radial-gradient(50% 50% at 90% 20%, rgba(34, 211, 238, .12) 0%, transparent 60%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .25);
    --shadow-lg: 0 12px 34px rgba(0, 0, 0, .45); --focus: 0 0 0 3px rgba(124, 116, 255, .45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1020; --bg-elev: #10162B; --surface: #121833; --surface-2: #182042; --surface-3: #1F2950;
  --border: #26305A; --border-strong: #354070; --text: #E7EAF3; --text-2: #C3CADB; --muted: #97A2BF;
  --primary: #7C74FF; --primary-hover: #9690FF; --primary-soft: rgba(124, 116, 255, .14); --primary-text: #ABA6FF;
  --accent: #22D3EE; --accent-soft: rgba(34, 211, 238, .12);
  --success: #34D399; --success-soft: rgba(52, 211, 153, .12); --warning: #FBBF24; --warning-soft: rgba(251, 191, 36, .12);
  --danger: #F87171; --danger-soft: rgba(248, 113, 113, .12); --info: #60A5FA; --info-soft: rgba(96, 165, 250, .12);
  --violet: #A78BFA; --violet-soft: rgba(167, 139, 250, .14);
  --gradient-hero: radial-gradient(60% 60% at 15% 10%, rgba(124, 116, 255, .20) 0%, transparent 60%),
                   radial-gradient(50% 50% at 90% 20%, rgba(34, 211, 238, .12) 0%, transparent 60%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 8px 20px rgba(0, 0, 0, .25);
  --shadow-lg: 0 12px 34px rgba(0, 0, 0, .45); --focus: 0 0 0 3px rgba(124, 116, 255, .45);
  color-scheme: dark;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 400 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; color: var(--text); font-weight: 750; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.25rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
code, pre { font-family: var(--mono); font-size: .88em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
::selection { background: rgba(79, 70, 229, .22); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--primary); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center.btn-row, .btn-row.center { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mt-sm { margin-top: 8px; } .mt-md { margin-top: 16px; } .mt-lg { margin-top: 24px; }
.hide-mobile { display: none !important; }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--primary-text);
}
.eyebrow .icon { width: 15px; height: 15px; }
.lead { font-size: 1.08rem; color: var(--text-2); max-width: 60ch; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.link-sm { font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-sm .icon { width: 15px; height: 15px; }

/* Icons (SVG sprite) */
.icon {
  width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

/* ==========================================================================
   3. Buttons, badges
   ========================================================================== */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: 600 .93rem/1 var(--font);
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; }
.btn.is-loading::after {
  content: ""; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn .icon { width: 17px; height: 17px; }
.btn-primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-bd: var(--primary); box-shadow: 0 4px 14px rgba(79, 70, 229, .28); }
.btn-primary:hover { --btn-bg: var(--primary-hover); --btn-bd: var(--primary-hover); }
.btn-ghost { --btn-bg: var(--surface); --btn-bd: var(--border); }
.btn-ghost:hover { --btn-bg: var(--surface-2); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--primary-text); --btn-bd: color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-outline:hover { --btn-bg: var(--primary-soft); }
.btn-light { --btn-bg: #FFFFFF; --btn-fg: #312E81; --btn-bd: #FFFFFF; }
.btn-light:hover { --btn-bg: #EEF0FF; --btn-fg: #312E81; }
.btn-glass { --btn-bg: rgba(255, 255, 255, .14); --btn-fg: #FFFFFF; --btn-bd: rgba(255, 255, 255, .28); }
.btn-glass:hover { --btn-bg: rgba(255, 255, 255, .22); --btn-fg: #fff; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: var(--danger); }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: .86rem; border-radius: 9px; }
.btn-lg { min-height: 50px; padding: 0 24px; font-size: 1rem; border-radius: 12px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.theme-icon-light { display: none; }
:root[data-theme="dark"] .theme-icon-light { display: block; }
:root[data-theme="dark"] .theme-icon-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-icon-light { display: block; }
  :root:not([data-theme="light"]) .theme-icon-dark { display: none; }
}

.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: .74rem; font-weight: 650; line-height: 1.4; white-space: nowrap;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border);
}
.badge-primary { background: var(--primary-soft); color: var(--primary-text); border-color: transparent; }
.badge-success { background: var(--success-soft); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-soft); color: var(--warning); border-color: transparent; }
.badge-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge-info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge-cyan { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

/* ==========================================================================
   4. Forms
   ========================================================================== */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
.optional { font-weight: 400; color: var(--muted); }
.input-wrap { position: relative; }
.input {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-elev); color: var(--text); font: 400 .95rem/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s, background .15s; appearance: none;
}
textarea.input { min-height: 96px; resize: vertical; }
select.input {
  padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A94A8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:hover { border-color: var(--border-strong); }
.input:focus { outline: none; border-color: var(--primary); box-shadow: var(--focus); }
.input[readonly], .input:disabled { background: var(--surface-2); color: var(--muted); }
.has-icon .input { padding-left: 42px; }
.has-toggle .input { padding-right: 46px; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.input-action:hover { color: var(--text); background: var(--surface-2); }
.input-action .eye-hide { display: none; }
.input-action.is-on .eye-show { display: none; }
.input-action.is-on .eye-hide { display: block; }
.has-error .input { border-color: var(--danger); }
.has-error .input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 30%, transparent); }
.field-error { margin: 0; font-size: .84rem; color: var(--danger); font-weight: 500; }
.field-help { margin: 0; font-size: .82rem; color: var(--muted); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.form-foot { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.field-check { gap: 4px; }
.check, .switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: .92rem; color: var(--text-2); user-select: none; }
.check input, .switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-ui {
  width: 20px; height: 20px; flex-shrink: 0; border-radius: 6px; border: 1.5px solid var(--border-strong);
  background: var(--bg-elev); display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.check input:checked + .check-ui { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check-ui::after {
  content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px);
}
.check input:focus-visible + .check-ui, .switch input:focus-visible + .switch-ui { box-shadow: var(--focus); }
.switch-ui {
  position: relative; width: 42px; height: 24px; flex-shrink: 0; border-radius: 999px;
  background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .2s;
}
.switch-ui::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s;
}
.switch input:checked + .switch-ui { background: var(--primary); border-color: var(--primary); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }

/* ==========================================================================
   5. Components
   ========================================================================== */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.card-title { font-size: 1.05rem; margin-bottom: 12px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .card-title { margin-bottom: 0; }
.card-center { text-align: center; }
.card-center .btn-row { justify-content: center; }

.alert {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px solid transparent; font-size: .92rem; line-height: 1.5;
}
.alert > .icon { margin-top: 2px; }
.alert-body { flex: 1; min-width: 0; }
.alert-success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.alert-error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-warning { background: var(--warning-soft); color: var(--warning); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.alert-info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert .alert-body { color: var(--text); }
.alert-close { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 2px; border-radius: 6px; opacity: .7; }
.alert-close:hover { opacity: 1; }
.alert-close .icon { width: 16px; height: 16px; }
.alert-inline { align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.flash-stack { display: grid; gap: 10px; margin-bottom: 18px; }
.layout-public .flash-stack { margin-top: 18px; }

.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  font-weight: 650; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }

.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow-x: auto; }
.tab { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

.pagination { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.page-link { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.page-link.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-link.is-disabled { opacity: .45; }
.page-gap { color: var(--muted); padding: 0 4px; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); min-width: 230px; z-index: 50; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: pop .14s ease-out;
}
.dropdown-right { right: 0; }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; display: grid; }
.dropdown-head span { font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown-menu a, .dropdown-menu button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: var(--text-2); font: 500 .92rem var(--font); background: none; border: 0; cursor: pointer; text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--surface-2); color: var(--text); }
.dropdown-menu form { margin: 0; }

.empty-state { text-align: center; padding: 28px 12px; color: var(--muted); }
.empty-state > .icon { width: 42px; height: 42px; margin: 0 auto 10px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.empty-state h3 { font-size: 1rem; margin-bottom: 4px; }
.empty-state p { font-size: .9rem; margin-bottom: 14px; }

.stat-grid { display: grid; gap: 14px; margin-bottom: 18px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-primary { background: var(--primary-soft); color: var(--primary); }
.stat-cyan { background: var(--accent-soft); color: var(--accent); }
.stat-green { background: var(--success-soft); color: var(--success); }
.stat-amber { background: var(--warning-soft); color: var(--warning); }
.stat-label { margin: 0; font-size: .82rem; color: var(--muted); font-weight: 550; }
.stat-value { margin: 0; font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.stat-hint { margin: 0; font-size: .78rem; color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-bottom: 16px; }
.progress-bar { display: block; height: 100%; border-radius: inherit; background: var(--gradient); transition: width .4s; }
.progress-0 { width: 4%; } .progress-1 { width: 25%; } .progress-2 { width: 50%; } .progress-3 { width: 75%; } .progress-4 { width: 100%; }

.checklist { list-style: none; display: grid; gap: 4px; }
.checklist li { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.checklist li:hover { background: var(--surface-2); }
.checklist li > div { flex: 1; min-width: 0; }
.checklist strong { font-size: .94rem; }
.checklist p { margin: 0; font-size: .84rem; color: var(--muted); }
.checklist-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.checklist-mark .icon { width: 16px; height: 16px; }
.checklist li.is-done .checklist-mark { background: var(--success); border-color: var(--success); color: #fff; }
.checklist li.is-done strong { color: var(--muted); text-decoration: line-through; }

.details { display: grid; gap: 0; margin: 0; }
.details > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); flex-wrap: wrap; }
.details > div:last-child { border-bottom: 0; }
.details dt { color: var(--muted); font-size: .88rem; }
.details dd { margin: 0; font-weight: 600; font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.details-compact > div { padding: 7px 0; }

.health-list { list-style: none; display: grid; gap: 8px; }
.health-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.health-list .is-ok .icon { color: var(--success); }
.health-list .is-bad { color: var(--warning); }
.tip-list { padding-left: 18px; display: grid; gap: 8px; color: var(--text-2); font-size: .9rem; }

/* ==========================================================================
   6. Public layout
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; }
.brand:hover { color: var(--text); }
.brand-text span { color: var(--primary); }
.logo-mark { border-radius: 9px; box-shadow: 0 4px 12px rgba(79, 70, 229, .3); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 39; display: none; flex-direction: column; gap: 2px;
  padding: 12px 18px 20px; background: var(--bg-elev); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.site-nav.is-open { display: flex; animation: pop .16s ease-out; }
.site-nav > a { padding: 12px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { background: var(--surface-2); color: var(--text); }
.site-nav-cta { display: grid; gap: 8px; margin-top: 10px; }

.hero { position: relative; overflow: hidden; padding: 42px 0 56px; }
.hero-glow { position: absolute; inset: 0; background: var(--gradient-hero); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 34px; align-items: center; }
.hero h1 { margin-bottom: 16px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 20px; }
.hero-points { list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; color: var(--text-2); font-size: .92rem; font-weight: 550; }
.hero-points li { display: inline-flex; align-items: center; gap: 6px; }
.hero-points .icon { color: var(--success); width: 17px; height: 17px; }
.login-card { padding: 24px; box-shadow: var(--shadow-lg); border-radius: var(--radius-xl); display: grid; gap: 16px; }
.login-card .card-title { font-size: 1.2rem; margin: 0; }
.login-card .form-foot { margin: 0; }
.hero-balance { font-size: 2.2rem; font-weight: 800; margin: -8px 0 4px; letter-spacing: -.03em; }

.trust-strip { border-block: 1px solid var(--border); background: var(--surface); }
.trust-grid { display: grid; gap: 14px; padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item > .icon { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .84rem; color: var(--muted); }

.section { padding: 64px 0; }
.section-tight { padding: 32px 0 64px; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head p:last-child { color: var(--muted); margin-bottom: 0; }

.platform-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.platform-card { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); transition: transform .15s, box-shadow .15s, border-color .15s; }
.platform-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); }
.platform-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient); color: #fff; margin-bottom: 12px; box-shadow: 0 6px 14px rgba(79, 70, 229, .25); }
.platform-card h3 { margin-bottom: 4px; font-size: 1rem; }
.platform-card p { margin: 0; font-size: .84rem; color: var(--muted); }

.feature-grid { display: grid; gap: 14px; }
.feature-card { padding: 22px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border); }
.feature-card p { margin: 0; color: var(--muted); font-size: .93rem; }
.feature-icon { width: 46px; height: 46px; border-radius: 13px; display: inline-grid; place-items: center; margin-bottom: 14px; }
.feature-icon .icon { width: 22px; height: 22px; }
.fi-primary { background: var(--primary-soft); color: var(--primary); }
.fi-cyan { background: var(--accent-soft); color: var(--accent); }
.fi-green { background: var(--success-soft); color: var(--success); }
.fi-amber { background: var(--warning-soft); color: var(--warning); }
.fi-violet { background: var(--violet-soft); color: var(--violet); }
.fi-blue { background: var(--info-soft); color: var(--info); }

.steps { list-style: none; display: grid; gap: 14px; margin-bottom: 32px; counter-reset: none; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }
.step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--gradient); color: #fff; font-weight: 800; margin-bottom: 14px; }

.api-split { display: grid; gap: 32px; align-items: center; }
.api-split .check-list { margin: 20px 0 24px; }
.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-2); }
.check-list .icon { color: var(--success); margin-top: 3px; }
.code-window { border-radius: var(--radius-lg); background: #0D1226; border: 1px solid #222B4D; box-shadow: var(--shadow-lg); overflow: hidden; }
.code-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #222B4D; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.code-bar span:nth-child(2) { background: #FEBC2E; } .code-bar span:nth-child(3) { background: #28C840; }
.code-bar em { margin-left: 10px; font-style: normal; font-size: .8rem; color: #8A94B8; font-family: var(--mono); }
.code-window pre { margin: 0; padding: 18px; overflow-x: auto; color: #DCE1F5; font-size: .84rem; line-height: 1.7; }
.code-c { color: #6B7699; } .code-k { color: #A5B4FC; } .code-n { color: #67E8F9; }

.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px;
  cursor: pointer; font-weight: 650; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform .2s; color: var(--muted); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

.cta-band { background: var(--gradient); color: #fff; }
.cta-inner { display: flex; flex-direction: column; gap: 20px; padding-block: 44px; }
.cta-inner h2 { color: #fff; margin-bottom: 6px; }
.cta-inner p { margin: 0; color: rgba(255, 255, 255, .85); }

.page-hero { padding: 40px 0 8px; background: var(--gradient-hero); }
.page-hero .lead { margin-bottom: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; font-size: .86rem; color: var(--muted); }
.breadcrumbs .icon { width: 14px; height: 14px; }
.breadcrumbs a { color: var(--muted); } .breadcrumbs a:hover { color: var(--primary); }

.prose { color: var(--text-2); }
.prose h2 { font-size: 1.3rem; margin: 32px 0 10px; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; margin-bottom: 1em; }

.contact-grid { display: grid; gap: 14px; }
.contact-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.contact-card .btn { margin-top: auto; }
.contact-card .muted { flex: 1; }

.error-page { padding: 80px 0; background: var(--gradient-hero); min-height: 60vh; }
.error-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 850; line-height: 1; margin: 0 0 10px; letter-spacing: -.05em; }
.error-code { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.error-page .lead { margin-inline: auto; }

.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 48px; }
.footer-grid { display: grid; gap: 28px; padding-bottom: 32px; }
.footer-brand p { color: var(--muted); font-size: .92rem; margin: 14px 0 0; max-width: 40ch; }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.footer-mail .icon { color: var(--primary); }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { color: var(--text-2); font-size: .93rem; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-block: 18px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.footer-pay { display: inline-flex; align-items: center; gap: 6px; }
.footer-pay .icon { width: 16px; height: 16px; color: var(--success); }

/* ==========================================================================
   7. Auth layout
   ========================================================================== */
.auth-shell { min-height: 100vh; display: grid; }
.auth-aside { display: none; }
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 18px 16px 28px; background: var(--gradient-hero); }
.auth-top { width: 100%; max-width: 460px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.auth-card { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 26px 22px; box-shadow: var(--shadow-lg); }
.auth-head { margin-bottom: 22px; }
.auth-head h1 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-head p { color: var(--muted); margin: 0; }
.auth-foot { margin: 22px 0 0; font-size: .84rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--muted); }
.inline-form { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.inline-form p { margin: 0; font-size: .9rem; }

/* ==========================================================================
   8. App layout (user + admin)
   ========================================================================== */
.layout-app { background: var(--bg); }
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--sidebar-w); display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--border); transform: translateX(-100%); transition: transform .22s ease;
}
.sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(8, 11, 24, .5); backdrop-filter: blur(2px); }
.sidebar-head { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 12px; }
.side-group + .side-group { margin-top: 14px; }
.side-title { margin: 0 0 4px; padding: 0 12px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-2); font-weight: 560; font-size: .93rem; transition: background .12s, color .12s;
}
.side-link:hover { background: var(--surface-2); color: var(--text); }
.side-link.is-active { background: var(--primary-soft); color: var(--primary-text); font-weight: 650; }
.side-link.is-active .icon { color: var(--primary); }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.support-card { padding: 14px; border-radius: 12px; background: var(--gradient); color: #fff; font-size: .84rem; }
.support-card p { margin: 0 0 2px; color: rgba(255, 255, 255, .9); }
.support-card a { color: #fff; font-weight: 650; word-break: break-all; }

.app-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header-h); display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 1.08rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font-weight: 700; font-size: .9rem;
}
.balance-pill > .icon { color: var(--primary); }
.balance-pill:hover { color: var(--text); border-color: var(--primary); }
.balance-plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; }
.balance-plus .icon { width: 15px; height: 15px; }
.avatar-btn { display: flex; align-items: center; gap: 8px; padding: 3px; border-radius: 999px; }
.avatar-btn:hover { background: var(--surface-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 750; font-size: .95rem; }
.user-menu-name { font-weight: 650; font-size: .92rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app-content { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 18px 14px 96px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title { font-size: 1.35rem; margin: 0; }
.page-sub { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.grid-2 { display: grid; gap: 18px; }
.grid-settings { display: grid; gap: 18px; align-items: start; }

.welcome-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 18px; padding: 24px; margin-bottom: 18px;
  border-radius: var(--radius-xl); background: var(--gradient); color: #fff; box-shadow: 0 12px 30px rgba(79, 70, 229, .3);
}
.welcome-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.welcome-kicker { margin: 0; color: rgba(255, 255, 255, .8); font-size: .9rem; }
.welcome-name { margin: 0 0 4px; color: #fff; font-size: 1.6rem; }
.welcome-text { margin: 0; color: rgba(255, 255, 255, .85); }
.welcome-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-around;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(15, 23, 42, .06);
}
.bottom-nav a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 6px 4px; border-radius: 10px; color: var(--muted); font-size: .7rem; font-weight: 600; min-height: 48px; }
.bottom-nav a .icon { width: 21px; height: 21px; }
.bottom-nav a.is-active { color: var(--primary); }

/* ==========================================================================
   9. Animations
   ========================================================================== */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (min-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .auth-card { padding: 32px 30px; }
}

@media (min-width: 768px) {
  .hide-mobile { display: inline-flex !important; }
  .nav-toggle { display: none; }
  .container { padding: 0 24px; }
  .site-nav { position: static; display: flex; flex-direction: row; align-items: center; gap: 2px; padding: 0; margin-left: 20px; background: none; border: 0; box-shadow: none; }
  .site-nav > a { padding: 8px 12px; font-size: .93rem; }
  .site-nav-cta { display: none; }
  .hero { padding: 64px 0 80px; }
  .platform-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .welcome-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 30px; }
  .app-content { padding: 26px 24px 40px; }
  .topbar { padding: 0 24px; }
  .bottom-nav { display: none; }
  .section { padding: 88px 0; }
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .api-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-settings { grid-template-columns: minmax(0, 1fr) 320px; }

  .sidebar { transform: none; }
  .sidebar-toggle { display: none; }
  .sidebar-backdrop { display: none !important; }
  .app-main { margin-left: var(--sidebar-w); }

  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .auth-aside {
    display: flex; align-items: center; justify-content: center; padding: 48px; color: #fff;
    background: var(--gradient); position: relative; overflow: hidden;
  }
  .auth-aside::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -160px; bottom: -160px; background: rgba(255, 255, 255, .08); }
  .auth-aside-inner { position: relative; max-width: 440px; }
  .auth-aside .brand, .auth-aside .brand-text span { color: #fff; }
  .auth-aside h2 { color: #fff; font-size: 2rem; margin: 36px 0 24px; }
  .auth-aside .check-list li { color: rgba(255, 255, 255, .92); }
  .auth-aside .check-list .icon { color: #67E8F9; }
  .auth-brand-mobile { visibility: hidden; }
  .auth-main { justify-content: center; }
}

/* Toasts + scroll lock (used by app.js) */
.toast-stack { position: fixed; z-index: 90; left: 50%; bottom: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
.toast { padding: 11px 16px; border-radius: 12px; background: #0F172A; color: #fff; font-size: .9rem; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .16s ease-out; transition: opacity .3s, transform .3s; }
.toast-error { background: var(--danger); }
.toast.is-leaving { opacity: 0; transform: translateY(6px); }
.no-scroll { overflow: hidden; }
@media (min-width: 768px) { .toast-stack { bottom: 24px; } }

/* Staff login */
.admin-auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; background: var(--gradient-hero); }
.admin-auth-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.1rem; }

/* ==========================================================================
   Phase 2: payments & data views
   ========================================================================== */
.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; }
.t-right { text-align: right !important; }
.justify-end { justify-content: flex-end; }
.text-strong { color: var(--text); }
.mono { font-family: var(--mono); }
.break { word-break: break-all; }
.grow { flex: 1; min-width: 180px; }
.stack { display: grid; gap: 18px; align-content: start; }
.input-sm { min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: .9rem; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filter-bar select.input { width: auto; min-width: 170px; }
.amount { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amount-pos { color: var(--success); }
.amount-neg { color: var(--text); }
.table td.t-right, .table th.t-right { font-variant-numeric: tabular-nums; }

.funds-grid { display: grid; gap: 18px; align-items: start; }
.method-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--primary); background: var(--primary-soft); }
.method-card strong { display: block; }
.method-card p { margin: 0; font-size: .86rem; color: var(--text-2); }
.method-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gradient); color: #fff; flex-shrink: 0; }
.method-check { margin-left: auto; color: var(--primary); width: 22px; height: 22px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: -6px; }
.chip { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: 600 .9rem var(--font); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary-text); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.mini-steps { list-style: none; counter-reset: step; display: grid; gap: 14px; }
.mini-steps li { counter-increment: step; position: relative; padding-left: 42px; display: grid; gap: 2px; }
.mini-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-text); font-weight: 750; font-size: .85rem; }
.mini-steps span { color: var(--muted); font-size: .88rem; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--text-2); }
.note .icon { color: var(--info); margin-top: 2px; }
.note p { margin: 0; }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.copy-field code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: none; border: 0; padding: 0; font-size: .82rem; }
.copy-field .icon-btn { width: 34px; height: 34px; flex-shrink: 0; }

.status-card { max-width: 620px; margin: 0 auto; text-align: center; padding: 32px 22px; }
.status-card .lead { margin-inline: auto; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; }
.status-icon .icon { width: 30px; height: 30px; }
.status-success .status-icon { background: var(--success-soft); color: var(--success); }
.status-warning .status-icon { background: var(--warning-soft); color: var(--warning); }
.status-info .status-icon { background: var(--info-soft); color: var(--info); }
.status-danger .status-icon { background: var(--danger-soft); color: var(--danger); }
.status-details { text-align: left; max-width: 380px; margin: 20px auto 24px; }

@media (min-width: 1024px) {
  .funds-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 1024px) { .stat-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
