/* =====================================================================
   ZIVIDAX DESIGN SYSTEM v4 — "Aurora"
   Next-gen dark UI · glass surfaces · gradient accents · mobile-first
   Variable names from v3 are preserved so every page keeps working.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Surfaces */
  --ink:        #06070C;
  --surface:    #0D0F18;
  --surface-2:  #141726;
  --surface-3:  #1B1F33;
  --glass:      rgba(255,255,255,0.035);
  --glass-2:    rgba(255,255,255,0.06);
  --border:     rgba(255,255,255,0.07);
  --border-2:   rgba(255,255,255,0.13);

  /* Text */
  --text:       #F5F6FB;
  --text-muted: #A1A8BE;
  --text-faint: #646C86;

  /* Brand */
  --brand:      #8B5CF6;
  --brand-2:    #3B82F6;
  --brand-3:    #22D3EE;
  --brand-dim:  rgba(139,92,246,0.16);
  --brand-glow: rgba(139,92,246,0.35);
  --grad:       linear-gradient(135deg,#8B5CF6 0%,#6366F1 50%,#3B82F6 100%);
  --grad-text:  linear-gradient(120deg,#C4B5FD 0%,#93C5FD 50%,#67E8F9 100%);

  /* Semantic (names kept from v3) */
  --green:        #34D399;
  --green-bright: #6EE7B7;
  --green-dim:    rgba(52,211,153,0.14);
  --green-glow:   rgba(52,211,153,0.3);
  --amber:        #FBBF24;
  --amber-dim:    rgba(251,191,36,0.13);
  --amber-glow:   rgba(251,191,36,0.25);
  --yellow:       #FBBF24;
  --teal:         #2DD4BF;
  --teal-dim:     rgba(45,212,191,0.13);
  --danger:       #F87171;
  --danger-dim:   rgba(248,113,113,0.13);
  --success:      #34D399;

  /* Legacy border knobs (v3 was neo-brutalist; now hairline) */
  --bw: 1px;
  --black-border: rgba(255,255,255,0.09);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-display: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg:  0 24px 60px -20px rgba(0,0,0,0.7);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(99,102,241,0.18), transparent 60%),
    radial-gradient(700px 480px at -5% 8%, rgba(34,211,238,0.09), transparent 60%);
  background-attachment: fixed;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
p { margin: 0; color: var(--text-muted); }
code, pre { font-family: var(--font-mono); }
button, input, select, textarea { font: inherit; color: inherit; }

/* ── Utilities ─────────────────────────────────────────────────────── */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.amber { color: var(--amber); }
.teal  { color: var(--teal); }
.small { font-size: 12.5px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
}

::selection { background: var(--brand-glow); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-3); outline-offset: 3px; border-radius: var(--radius-xs); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ── Brand mark ────────────────────────────────────────────────────── */
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px -8px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

/* ── Buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 20px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--transition), background var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition), opacity var(--transition);
  letter-spacing: -0.01em; line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 28px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--brand-glow), inset 0 1px 0 rgba(255,255,255,0.28); filter: brightness(1.06); }

.btn-green {
  background: var(--green); color: #052e1c;
  box-shadow: 0 10px 28px -12px var(--green-glow);
}
.btn-green:hover { background: var(--green-bright); transform: translateY(-1px); }

.btn-ghost, .btn-secondary {
  background: var(--glass); color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover, .btn-secondary:hover { background: var(--glass-2); border-color: rgba(255,255,255,0.22); }

.btn-danger { background: var(--danger-dim); color: var(--danger); border-color: rgba(248,113,113,0.3); }
.btn-danger:hover { background: rgba(248,113,113,0.22); }

.btn-sm  { padding: 7px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-lg  { padding: 15px 28px; font-size: 15.5px; border-radius: 14px; }
.btn-pill{ border-radius: 999px; }
.btn-block { width: 100%; }

/* ── Stamp / status badges ─────────────────────────────────────────── */
.stamp {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--glass); border: 1px solid currentColor;
  color: var(--text-muted);
  white-space: nowrap;
}
.stamp::before { content:''; width:6px; height:6px; border-radius:50%; background: currentColor; flex-shrink:0; }
.stamp-active, .stamp-approved, .stamp-success { color: var(--success); background: var(--green-dim); border-color: rgba(52,211,153,0.3); }
.stamp-pending { color: var(--amber); background: var(--amber-dim); border-color: rgba(251,191,36,0.3); }
.stamp-banned, .stamp-rejected, .stamp-error { color: var(--danger); background: var(--danger-dim); border-color: rgba(248,113,113,0.3); }
.stamp-blocked { color: var(--text-faint); }

/* ── Flash ─────────────────────────────────────────────────────────── */
.flash {
  padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13.5px; margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid var(--border-2); background: var(--glass);
  animation: slideDown .3s ease; transition: opacity .4s;
}
@keyframes slideDown { from { opacity:0; transform: translateY(-6px);} to { opacity:1; transform:none; } }
.flash-error   { background: var(--danger-dim); color: #FECACA; border-color: rgba(248,113,113,0.28); }
.flash-success { background: var(--green-dim);  color: #A7F3D0; border-color: rgba(52,211,153,0.28); }

/* ── Forms ─────────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; min-width: 0; }
.field label, .field .label {
  display: flex; align-items: center; justify-content: flex-start; gap: 4px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0;
  color: var(--text); margin-bottom: 8px; text-transform: none;
}
.field label .req { color: var(--danger); }
.field label .opt { color: var(--text-faint); font-weight: 500; font-size: 11.5px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 15px; /* >=16px-ish prevents iOS zoom on focus */
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(255,255,255,0.22); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand);
  background: rgba(139,92,246,0.06);
  box-shadow: 0 0 0 4px var(--brand-dim);
}
.field .hint { font-size: 12px; color: var(--text-faint); margin-top: 7px; line-height: 1.5; }
.field .counter { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); font-weight: 500; }
.field .counter.warn { color: var(--amber); }
.field-row { display: flex; align-items: center; gap: 10px; }
.field-row input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--brand); }
.field-row label { font-size: 13px; font-weight: 500; color: var(--text-muted); margin: 0; cursor: pointer; display: block; }

.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 18px; pointer-events: none; }
.input-icon > input { padding-left: 44px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 160px; }

hr.divider, .divider { border: 0; height: 1px; background: var(--border); margin: 20px 0; }
.divider-text { display:flex; align-items:center; gap:14px; color: var(--text-faint); font-size: 12px; margin: 18px 0; }
.divider-text::before, .divider-text::after { content:''; flex:1; height:1px; background: var(--border); }

/* ━━━ APP SHELL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  flex: 0 0 268px; width: 268px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 18px 14px;
  background: linear-gradient(180deg, rgba(13,15,24,0.92), rgba(8,9,15,0.96));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.sidebar-brand span { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.sidebar-brand small { display:block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; font-weight: 500; margin-top: 1px; }

.sidebar-wallet {
  margin: 0 4px 16px; padding: 14px 16px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139,92,246,0.18), rgba(59,130,246,0.1));
  border: 1px solid rgba(139,92,246,0.3);
}
.sidebar-wallet-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.sidebar-wallet-amount { font-family: var(--font-mono); font-size: 22px; font-weight: 700; margin: 4px 0 10px; }
.sidebar-wallet-amount span { color: var(--text-faint); font-weight: 400; margin-right: 2px; }

.nav-group, .sidebar-section { padding: 6px 0 10px; }
.sidebar-section-label, .nav-group > .eyebrow { padding: 6px 12px 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); }
.nav-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  margin-bottom: 2px;
  transition: background var(--transition), color var(--transition);
}
.nav-link:hover { background: var(--glass-2); color: var(--text); }
.nav-link.active { background: var(--brand-dim); color: #fff; box-shadow: inset 0 0 0 1px rgba(139,92,246,0.35); }
.nav-link.active::before { content:''; position:absolute; left:-14px; top:50%; transform:translateY(-50%); width:3px; height:20px; border-radius:0 3px 3px 0; background: var(--grad); }
.nav-icon { width: 20px; text-align: center; flex-shrink: 0; font-size: 18px; display: inline-flex; align-items:center; justify-content:center; }
.nav-link.active .nav-icon { color: #C4B5FD; }
.nav-badge { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; padding: 1px 8px; border-radius: 999px; background: var(--glass-2); color: var(--text-muted); }

.sidebar-foot { margin-top: auto; padding: 14px 6px 4px; border-top: 1px solid var(--border); }
.sidebar-user { display: flex; align-items: center; gap: 11px; }
.sidebar-avatar, .avatar {
  width: 38px; height: 38px; border-radius: 12px; flex-shrink: 0;
  background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-user-name { font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role, .sidebar-user-sub { font-size: 11.5px; color: var(--text-faint); }
.sidebar-user-text { min-width: 0; flex: 1; }
.sidebar-user-action { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display:flex; align-items:center; justify-content:center; color: var(--text-muted); font-size: 18px; transition: var(--transition); }
.sidebar-user-action:hover { background: var(--danger-dim); color: var(--danger); }

/* Main */
.main { flex: 1 1 auto; min-width: 0; padding: 34px clamp(18px, 3.4vw, 48px) 80px; }
.page { max-width: 1180px; margin: 0 auto; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: clamp(24px, 3.2vw, 32px); }
.page-head .eyebrow { margin-bottom: 8px; }
.page-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 2.4vw, 26px);
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card-head { display:flex; align-items:flex-start; gap: 14px; margin-bottom: 20px; }
.card-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--brand-dim); color: #C4B5FD; display:flex; align-items:center; justify-content:center; font-size: 22px; flex-shrink:0; border: 1px solid rgba(139,92,246,0.3); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* Ledger strip (wallet hero on dashboard) */
.ledger-strip {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(22px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 22px;
  margin-bottom: 22px;
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(59,130,246,0.28), transparent 60%),
    radial-gradient(500px 240px at 0% 100%, rgba(139,92,246,0.26), transparent 60%),
    var(--surface);
  border: 1px solid rgba(139,92,246,0.28);
}
.ledger-balance .eyebrow { margin-bottom: 8px; color: var(--text-muted); }
.ledger-amount { font-family: var(--font-mono); font-size: clamp(32px, 6vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.ledger-amount-prefix { font-size: .55em; color: var(--text-faint); font-weight: 400; margin-right: 3px; }
.ledger-meta { margin-top: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.ledger-meta-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,153,0.18); }
.ledger-right { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; min-width: 0;
  transition: border-color var(--transition), transform var(--transition);
  animation: rise .5s ease both;
}
.stat-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
.stat-card::after { content:''; position:absolute; right:-30px; top:-30px; width:110px; height:110px; border-radius:50%; background: var(--accent-color, transparent); opacity:.12; filter: blur(18px); }
.stat-card-ava  { --accent-color: var(--teal); }
.stat-card-nyzo { --accent-color: var(--amber); }
.stat-card-key  { --accent-color: var(--brand); }
.stat-card-icon { width: 40px; height: 40px; border-radius: 12px; display:flex; align-items:center; justify-content:center; font-size: 20px; margin-bottom: 14px; background: var(--glass-2); color: var(--accent-color, var(--text)); }
.stat-label { font-size: 11.5px; color: var(--text-faint); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.stat-value { font-family: var(--font-mono); font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.1; margin-bottom: 6px; word-break: break-all; }
.stat-sub { font-size: 12.5px; color: var(--text-faint); }
@keyframes rise { from { opacity:0; transform: translateY(10px);} to { opacity:1; transform:none; } }

/* Tables */
.table-card, .table-wrap {
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto; overflow-y: hidden;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}
.table-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; }
.table-card-header h3 { font-size: 15px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead th {
  padding: 12px 18px; text-align: left; white-space: nowrap;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 600;
  background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border);
}
tbody td { padding: 14px 18px; font-size: 13.5px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.025); }
td.num { font-family: var(--font-mono); font-size: 13px; }
td.muted-cell { color: var(--text-faint); font-family: var(--font-mono); font-size: 12px; }

.service-chip { display:inline-flex; align-items:center; gap:6px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.service-chip-ava  { background: var(--teal-dim); color: var(--teal); }
.service-chip-nyzo { background: var(--amber-dim); color: var(--amber); }
.service-chip-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tag-ava  { color: var(--teal); } .tag-nyzo { color: var(--amber); }

/* Keys / code */
.key-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,0.35); border: 1px solid var(--border-2);
  border-radius: 12px; padding: 10px 10px 10px 14px; margin-bottom: 10px;
  font-family: var(--font-mono); font-size: 13px; min-width: 0;
}
.key-row code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #C4B5FD; }

.code-block {
  position: relative; background: #05060B;
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px 20px; margin: 14px 0 20px; overflow-x: auto;
}
.code-block pre { margin: 0; font-size: 12.5px; color: #C9D3EA; line-height: 1.75; }
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  background: var(--glass-2); border: 1px solid var(--border-2);
  color: var(--text-muted); font-size: 11px; font-family: var(--font-mono);
  padding: 5px 10px; border-radius: 8px; cursor: pointer; transition: var(--transition);
}
.copy-btn:hover { color: var(--text); background: var(--surface-3); }

.empty-state { text-align: center; padding: 52px 24px; color: var(--text-faint); }
.empty-state > i { font-size: 36px; display: block; margin-bottom: 10px; opacity: .6; }

/* ━━━ MOBILE CHROME ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mobile-topbar { display: none; }
.mobile-bottom-nav { display: none; }
.sheet-backdrop, .more-sheet { display: none; }

/* ━━━ AUTH PAGES ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.auth-scene { min-height: 100vh; display: flex; }
.auth-visual {
  flex: 1 1 auto; min-width: 0; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(139,92,246,0.45), transparent 60%),
    radial-gradient(700px 500px at 90% 90%, rgba(34,211,238,0.28), transparent 60%),
    #0A0B14;
  border-right: 1px solid var(--border);
}
.auth-visual-grid { position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.auth-visual-content { position: relative; z-index: 1; max-width: 420px; }
.auth-visual h2 { font-size: clamp(34px, 4vw, 48px); margin-bottom: 16px; line-height: 1.05; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-visual p { font-size: 15.5px; line-height: 1.7; color: var(--text-muted); }
.auth-visual .brand-mark { background: var(--grad); }
.auth-visual-brand-name { color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.auth-mini-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }
.auth-mini-card { background: var(--glass-2); border: 1px solid var(--border-2); backdrop-filter: blur(14px); border-radius: var(--radius-md); padding: 14px 16px; display: flex; align-items: center; gap: 14px; animation: rise .5s ease both; }
.auth-mini-card:nth-child(2) { animation-delay: .1s; } .auth-mini-card:nth-child(3) { animation-delay: .2s; }
.auth-mini-icon { width: 38px; height: 38px; border-radius: 11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size: 19px; background: var(--brand-dim); color: #C4B5FD; }
.auth-mini-card-text { font-weight: 600; color: var(--text); font-size: 14px; }
.auth-mini-card-sub { color: var(--text-faint); font-size: 12px; }

.auth-panel { background: var(--ink); flex: 0 0 min(480px, 100%); width: 480px; display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 56px); animation: rise .5s ease both; }
.auth-panel-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 38px; }
.auth-panel-brand span { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.auth-panel h1 { font-size: 30px; margin-bottom: 8px; }
.auth-panel .auth-sub { font-size: 14.5px; color: var(--text-muted); margin-bottom: 30px; }
.consent-identity { display:flex; align-items:center; gap:12px; background: var(--glass-2); border:1px solid var(--border); border-radius: var(--radius-md); padding: 14px 16px; margin: 20px 0; }
.avatar-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-dim); color: #C4B5FD; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight: 700; flex-shrink:0; }
.consent-actions { display:flex; gap:10px; margin-top:24px; } .consent-actions .btn { flex:1; }
.scope-list { padding-left: 18px; color: var(--text-muted); font-size: 13.5px; margin: 8px 0; } .scope-list li { margin-bottom: 5px; }

/* ━━━ SIGN-IN APP REGISTRATION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.reg-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.reg-steps { list-style: none; display: grid; gap: 16px; margin-top: 6px; }
.reg-steps li { display: flex; gap: 14px; }
.reg-steps .n { width: 28px; height: 28px; border-radius: 9px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; background: var(--brand-dim); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.3); }
.reg-steps b { display:block; color: var(--text); font-size: 14px; margin-bottom: 2px; font-weight: 600; }
.reg-steps span { font-size: 13px; color: var(--text-muted); line-height: 1.55; }
.form-actions { display:flex; gap: 12px; align-items:center; flex-wrap: wrap; margin-top: 8px; }

.secret-card { border-color: rgba(251,191,36,0.4); background: linear-gradient(180deg, rgba(251,191,36,0.08), var(--glass)); }

.app-list { display: grid; gap: 14px; }
.app-card { background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; transition: border-color var(--transition); }
.app-card:hover { border-color: var(--border-2); }
.app-card-head { display:flex; align-items:flex-start; gap: 14px; }
.app-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); color:#fff; display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight: 800; font-size: 19px; flex-shrink:0; }
.app-meta { min-width: 0; flex: 1; }
.app-meta h4 { font-size: 16px; margin-bottom: 3px; overflow-wrap: anywhere; }
.app-meta a { color: var(--brand-3); font-size: 13px; overflow-wrap: anywhere; }
.app-meta a:hover { text-decoration: underline; }
.app-desc { margin-top: 12px; font-size: 13.5px; line-height: 1.65; color: var(--text-muted); overflow-wrap: anywhere; }
.app-fields { display:grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.app-fields .k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.app-fields .v { font-family: var(--font-mono); font-size: 12.5px; overflow-wrap: anywhere; color: var(--text); }
.app-fields .full { grid-column: 1 / -1; }
.app-card form.inline-form { margin-top: 4px; }

/* ━━━ LANDING (public/index.php) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.lp { position: relative; overflow: hidden; }
.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.lp-nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: rgba(6,7,12,0.72); border-bottom: 1px solid var(--border); }
.lp-nav .lp-wrap { height: 68px; display: flex; align-items: center; gap: 28px; }
.lp-brand { display:flex; align-items:center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -.02em; }
.lp-links { display: flex; gap: 4px; margin-left: 8px; }
.lp-links a { padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-muted); transition: var(--transition); }
.lp-links a:hover { color: var(--text); background: var(--glass-2); }
.lp-cta { margin-left: auto; display:flex; align-items:center; gap: 10px; }
.lp-login { padding: 9px 14px; font-size: 14px; font-weight: 500; color: var(--text-muted); border-radius: 10px; } .lp-login:hover { color: var(--text); }

.lp-hero { position: relative; padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.lp-hero::before { content:''; position:absolute; inset: -20% 0 auto 0; height: 700px; background: radial-gradient(600px 360px at 50% 20%, rgba(139,92,246,0.35), transparent 70%), radial-gradient(500px 300px at 80% 30%, rgba(34,211,238,0.2), transparent 70%); pointer-events:none; }
.lp-hero::after { content:''; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent); pointer-events:none; }
.lp-hero > .lp-wrap { position: relative; z-index: 1; }
.lp-pill { display:inline-flex; align-items:center; gap: 9px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--glass-2); font-size: 13px; color: var(--text-muted); margin-bottom: 26px; }
.lp-pill b { background: var(--grad); color:#fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; }
.lp-hero h1 { font-size: clamp(38px, 7.2vw, 78px); line-height: 1.02; letter-spacing: -0.045em; max-width: 14ch; margin: 0 auto 22px; font-weight: 800; }
.lp-hero p.lead { font-size: clamp(16px, 2vw, 19px); max-width: 640px; margin: 0 auto 34px; color: var(--text-muted); line-height: 1.7; }
.lp-hero-ctas { display:flex; gap: 12px; justify-content:center; flex-wrap: wrap; }
.lp-trust { display:flex; justify-content:center; flex-wrap:wrap; gap: 10px 28px; margin-top: 30px; font-size: 13px; color: var(--text-faint); }
.lp-trust span { display:inline-flex; align-items:center; gap: 7px; } .lp-trust i { color: var(--green); font-size: 16px; }

.lp-showcase { margin-top: clamp(40px, 6vw, 64px); display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; text-align: left; }
.lp-term { background: #05060B; border: 1px solid var(--border-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 80px -30px var(--brand-glow); }
.lp-term-bar { display:flex; align-items:center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.lp-term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2A2F45; } .lp-term-bar i:nth-child(1){background:#F87171} .lp-term-bar i:nth-child(2){background:#FBBF24} .lp-term-bar i:nth-child(3){background:#34D399}
.lp-term-bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-faint); }
.lp-term pre { padding: 20px; font-size: 12.5px; line-height: 1.85; color: #C9D3EA; overflow-x: auto; }
.lp-term .k { color: #C4B5FD; } .lp-term .s { color: #6EE7B7; } .lp-term .c { color: #5B6483; } .lp-term .n { color: #FBBF24; }
.lp-side { display: grid; gap: 16px; }
.lp-mini { background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 20px; }
.lp-mini .eyebrow { margin-bottom: 10px; }
.lp-mini .big { font-family: var(--font-mono); font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.lp-bars { display:flex; align-items:flex-end; gap: 6px; height: 54px; margin-top: 14px; }
.lp-bars i { flex:1; border-radius: 4px 4px 2px 2px; background: var(--grad); opacity: .85; animation: grow 1.1s ease both; transform-origin: bottom; }
@keyframes grow { from { transform: scaleY(0.05); } to { transform: scaleY(1); } }
.lp-row { display:flex; justify-content: space-between; align-items:center; gap: 10px; font-size: 13px; padding: 9px 0; border-bottom: 1px dashed var(--border); } .lp-row:last-child { border-bottom: 0; }
.lp-row .mono { color: var(--text-muted); font-size: 12px; }

.lp-stats { display:grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); margin: clamp(36px, 5vw, 56px) 0; }
.lp-stats > div { padding: 24px 20px; text-align: center; border-right: 1px solid var(--border); } .lp-stats > div:last-child { border-right: 0; }
.lp-stats b { display:block; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); letter-spacing: -.03em; } .lp-stats span { font-size: 12.5px; color: var(--text-faint); }

.lp-section { padding: clamp(48px, 7vw, 88px) 0; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto clamp(30px, 4vw, 52px); }
.lp-head .eyebrow { margin-bottom: 14px; color: #A78BFA; }
.lp-head h2 { font-size: clamp(28px, 4.4vw, 46px); letter-spacing: -.04em; margin-bottom: 14px; }
.lp-head p { font-size: 16.5px; line-height: 1.7; }

.lp-grid3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.lp-grid2 { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.lp-card { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: transform var(--transition), border-color var(--transition); }
.lp-card:hover { transform: translateY(-3px); border-color: rgba(139,92,246,0.4); }
.lp-card .ic { width: 48px; height: 48px; border-radius: 14px; display:flex; align-items:center; justify-content:center; font-size: 24px; margin-bottom: 18px; background: var(--brand-dim); color: #C4B5FD; border: 1px solid rgba(139,92,246,0.3); }
.lp-card h3 { font-size: 19px; margin-bottom: 8px; } .lp-card p { font-size: 14.5px; line-height: 1.7; }
.lp-card.ava .ic { background: var(--teal-dim); color: var(--teal); border-color: rgba(45,212,191,0.3); }
.lp-card.nyzo .ic { background: var(--amber-dim); color: var(--amber); border-color: rgba(251,191,36,0.3); }
.lp-price { display:flex; align-items:baseline; gap: 6px; margin: 18px 0 6px; } .lp-price b { font-family: var(--font-mono); font-size: 30px; letter-spacing: -.03em; } .lp-price span { color: var(--text-faint); font-size: 13px; }
.lp-list { list-style:none; display:grid; gap: 9px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.lp-list li { display:flex; gap: 10px; align-items:flex-start; font-size: 13.5px; color: var(--text-muted); } .lp-list i { color: var(--green); font-size: 17px; margin-top: 1px; }

.lp-steps { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; counter-reset: s; }
.lp-step { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--glass); counter-increment: s; }
.lp-step::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: #A78BFA; display:block; margin-bottom: 14px; }
.lp-step h4 { font-size: 16px; margin-bottom: 6px; } .lp-step p { font-size: 13.5px; line-height: 1.65; }

.lp-faq { max-width: 780px; margin: 0 auto; display:grid; gap: 10px; }
.lp-faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--glass); padding: 0 20px; transition: border-color var(--transition); }
.lp-faq details[open] { border-color: rgba(139,92,246,0.4); }
.lp-faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; display:flex; justify-content:space-between; align-items:center; gap: 14px; }
.lp-faq summary::-webkit-details-marker { display:none; }
.lp-faq summary::after { content: '+'; font-size: 22px; color: var(--text-faint); transition: transform var(--transition); }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 18px; font-size: 14.5px; line-height: 1.75; }

.lp-banner { position: relative; overflow: hidden; text-align:center; border-radius: var(--radius-xl); padding: clamp(36px, 6vw, 72px) clamp(20px, 4vw, 40px); border: 1px solid rgba(139,92,246,0.35); background: radial-gradient(600px 260px at 50% 0%, rgba(139,92,246,0.4), transparent 70%), radial-gradient(500px 240px at 100% 100%, rgba(34,211,238,0.22), transparent 70%), var(--surface); }
.lp-banner h2 { font-size: clamp(26px, 4.4vw, 44px); letter-spacing: -.04em; margin-bottom: 12px; } .lp-banner p { max-width: 520px; margin: 0 auto 26px; font-size: 16px; }

.lp-footer { border-top: 1px solid var(--border); margin-top: clamp(48px, 7vw, 88px); padding: 40px 0 28px; }
.lp-foot-grid { display:grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.lp-foot-grid h5 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; font-weight: 500; }
.lp-foot-grid a { display:block; padding: 5px 0; font-size: 14px; color: var(--text-muted); } .lp-foot-grid a:hover { color: var(--text); }
.lp-foot-grid p { font-size: 13.5px; line-height: 1.7; max-width: 300px; margin-top: 14px; }
.lp-copy { display:flex; justify-content:space-between; flex-wrap:wrap; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-faint); }

.lp-menu-btn { display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--glass); align-items:center; justify-content:center; font-size: 22px; cursor: pointer; }
.lp-drawer { display: none; }

/* ━━━ RESPONSIVE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1100px) {
  .lp-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  /* Console chrome → mobile */
  .sidebar { display: none; }
  .main { padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 28px); }
  .mobile-topbar {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
    margin: -18px -16px 18px; padding: 12px 16px;
    background: rgba(6,7,12,0.8); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
  }
  .mobile-topbar .brand-mark { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; }
  .mobile-topbar .t { font-family: var(--font-display); font-weight: 700; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-topbar .t small { display:block; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .14em; color: var(--text-faint); text-transform: uppercase; font-weight: 500; }
  .mobile-topbar .avatar { margin-left: auto; width: 34px; height: 34px; font-size: 14px; border-radius: 10px; }

  .mobile-bottom-nav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 60;
    height: var(--nav-h); padding: 6px;
    background: rgba(16,18,30,0.82); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid var(--border-2); border-radius: 22px;
    box-shadow: 0 18px 50px -12px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .mobile-nav-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border: 0; background: none; cursor: pointer; border-radius: 16px;
    color: var(--text-faint); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
    transition: color var(--transition), background var(--transition), transform var(--transition);
    -webkit-tap-highlight-color: transparent; min-width: 0;
  }
  .mobile-nav-item i { font-size: 22px; line-height: 1; transition: transform var(--transition); }
  .mobile-nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-item:active { transform: scale(.94); }
  .mobile-nav-item.active { color: #fff; background: var(--brand-dim); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.4); }
  .mobile-nav-item.active i { color: #C4B5FD; transform: translateY(-1px); }

  .sheet-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s; }
  .more-sheet {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    background: var(--surface); border: 1px solid var(--border-2); border-bottom: 0;
    border-radius: 26px 26px 0 0; padding: 10px 16px calc(20px + var(--safe-b));
    transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
    max-height: 82vh; overflow-y: auto;
  }
  .more-sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--border-2); margin: 4px auto 16px; }
  .more-sheet .who { display:flex; align-items:center; gap: 12px; padding: 4px 4px 16px; }
  .more-sheet .who b { display:block; font-size: 15px; } .more-sheet .who span { font-size: 12.5px; color: var(--text-faint); }
  .more-sheet .grid-links { display:grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .more-sheet .grid-links a { display:flex; flex-direction:column; align-items:center; gap: 8px; padding: 16px 6px; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-muted); text-align:center; }
  .more-sheet .grid-links a i { font-size: 24px; color: #C4B5FD; }
  .more-sheet .grid-links a.danger i { color: var(--danger); }
  .more-sheet .grid-links a:active { background: var(--surface-3); }
  body.sheet-open .sheet-backdrop { opacity: 1; pointer-events: auto; }
  body.sheet-open .more-sheet { transform: none; }
  body.sheet-open { overflow: hidden; }

  .ledger-right { align-items: stretch; width: 100%; } .ledger-right .btn { width: 100%; }
  .page-head-actions { width: 100%; } .page-head-actions .btn { flex: 1; }
  .reg-layout { grid-template-columns: 1fr; }
  .reg-layout .reg-aside { order: 2; }

  /* Auth */
  .auth-visual { display: none; }
  .auth-panel { flex: 1 1 auto; width: auto; max-width: 560px; margin: 0 auto; }
  .auth-scene { background: radial-gradient(600px 400px at 50% -5%, rgba(139,92,246,0.3), transparent 70%); }

  /* Landing */
  .lp-links, .lp-cta .lp-login { display: none; }
  .lp-menu-btn { display: inline-flex; }
  .lp-cta { margin-left: auto; } .lp-menu-btn { margin-left: 0; }
  .lp-drawer { display: block; position: fixed; top: 68px; left: 0; right: 0; z-index: 49; background: rgba(6,7,12,0.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 14px 18px 20px; transform: translateY(-120%); transition: transform .25s ease; }
  .lp-drawer.open { transform: none; }
  .lp-drawer a { display:block; padding: 13px 8px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); color: var(--text-muted); } .lp-drawer a:last-child { border: 0; }
  .lp-showcase { grid-template-columns: 1fr; }
  .lp-grid3 { grid-template-columns: 1fr; }
  .lp-grid2 { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .app-fields { grid-template-columns: 1fr; }
  .lp-stats { grid-template-columns: 1fr 1fr; } .lp-stats > div:nth-child(2) { border-right: 0; } .lp-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .lp-steps { grid-template-columns: 1fr; }
  .lp-foot-grid { grid-template-columns: 1fr 1fr; } .lp-foot-grid > div:first-child { grid-column: 1 / -1; }
  .lp-hero-ctas .btn { width: 100%; }
  .consent-actions { flex-direction: column; }
  .key-row { flex-wrap: wrap; } .key-row .btn { width: 100%; }
  .lp-cta .btn { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .more-sheet .grid-links { grid-template-columns: repeat(2, 1fr); }
  .mobile-nav-item { font-size: 10px; } .mobile-nav-item i { font-size: 21px; }
}

@media (hover: none) { .lp-card:hover, .stat-card:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
