/* ============================================================================
   ScrollCash · "Your financial horizon."
   Aurora palette + layout
   ============================================================================ */

:root {
  --paper:    #14161e;
  --card:     #1e212d;
  --track:    #303446;
  --well:     #191b26;
  --edge:     #3c4058;
  --ink:      #f3f5fa;
  --ink-mid:  #a5afc8;
  --ink-soft: #7c859b;

  --aurora:      #ab45f5;
  --aurora-lite: #c87cfd;
  --bloom:       #fe51b2;
  --burn:        #fe8400;
  --gold:        #ffd700;
  --lavender:    #8d6cf5;
  --sun:         #ffb600;
  --on-bright:   #14161e;

  --font: ui-rounded, -apple-system, "SF Pro Rounded", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #0b0c11;
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── App frame (phone column) ─────────────────────────────────────────────── */
.app {
  position: relative;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  margin: 0 auto;
  background: var(--paper);
  overflow: hidden;
  isolation: isolate;
}
@media (min-width: 480px) {
  .app { box-shadow: 0 0 0 1px var(--edge), 0 30px 80px rgba(0,0,0,.6); }
}

.backdrop { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow {
  position: absolute; border-radius: 50%; filter: blur(95px);
  transition: background-color .5s ease;
}
.glow-top    { width: 360px; height: 360px; top: -140px; right: -80px; background: rgba(171,69,245,.18); }
.glow-bottom { width: 300px; height: 300px; bottom: 90px; left: -130px; background: rgba(200,124,253,.10); filter: blur(100px); }

/* ── Screen ───────────────────────────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  z-index: 1;
  overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: var(--sat);
  display: flex; flex-direction: column;
}
.screen::-webkit-scrollbar { display: none; }
.screen.enter { animation: screenIn .34s cubic-bezier(.2,.8,.2,1); }
@keyframes screenIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stack { display: flex; flex-direction: column; gap: 20px; padding-top: 10px; }
.stack-18 { gap: 18px; padding-top: 8px; }
.pad { padding-left: 20px; padding-right: 20px; }
.tail { height: 118px; flex: none; }

/* ── Typography helpers ───────────────────────────────────────────────────── */
.eyebrow { font-size: 9.5px; font-weight: 900; letter-spacing: 2.2px; text-transform: uppercase; }
.caps    { text-transform: uppercase; letter-spacing: 1.3px; font-weight: 700; }
.h15 { font-size: 15px; font-weight: 800; color: var(--ink); }
.h14 { font-size: 14px; font-weight: 800; color: var(--ink); }
.sub11 { font-size: 11px; font-weight: 500; color: var(--ink-soft); line-height: 1.35; }
.sub12 { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }
.trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── Icon ─────────────────────────────────────────────────────────────────── */
.ic { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }
.ic svg { width: 100%; height: 100%; display: block; }

/* ── Brand block ──────────────────────────────────────────────────────────── */
.brand { display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.brand-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.brand-name { font-size: 23px; font-weight: 900; letter-spacing: 1.4px; color: var(--ink); }
.brand-tag  { font-size: 12.5px; font-weight: 600; color: var(--aurora); }
.brand-link {
  display: inline-flex; align-items: center; gap: 5px; align-self: flex-start;
  border: 0; background: var(--track); color: var(--ink-mid);
  font-size: 11.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px;
}
.brand-link .ic { font-size: 8px; }

.mark { display: block; flex: none; filter: drop-shadow(0 6px 14px rgba(171,69,245,.35)); }

/* ── Notice strip ─────────────────────────────────────────────────────────── */
.notice {
  margin: 0 20px; display: flex; align-items: flex-start; gap: 10px; padding: 12px;
  border-radius: 14px; background: rgba(255,182,0,.10); border: 1px solid rgba(255,182,0,.30);
  color: var(--ink-mid); font-size: 12px; font-weight: 600; line-height: 1.35;
}
.notice .ic { color: var(--sun); font-size: 13px; margin-top: 1px; }
.notice span { flex: 1; }
.notice button { border: 0; background: transparent; color: var(--ink-soft); font-size: 11px; padding: 0 2px; }

/* ── Purse ────────────────────────────────────────────────────────────────── */
.purse { padding: 0 20px; }
.purse-row { display: flex; align-items: flex-start; gap: 4px; }
.purse-dollar { font-size: 22px; font-weight: 900; color: var(--aurora); padding-top: 8px; }
.purse-digits { font-size: 52px; font-weight: 900; line-height: 1.05; color: var(--ink); white-space: nowrap; min-width: 0; }
.purse-meta { display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.purse-meta .eyebrow { font-size: 9.5px; letter-spacing: 2.4px; color: var(--ink-soft); }
.purse-meta .rule { width: 22px; height: 1px; background: var(--edge); }
.purse-meta .month { font-size: 10.5px; font-weight: 700; color: var(--ink-mid); }
.pills { display: flex; gap: 8px; padding-top: 14px; }
.pill {
  flex: 1; display: flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 13px; min-width: 0;
  background: color-mix(in srgb, var(--t) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--t) 28%, transparent);
  color: var(--t);
}
.pill .ic { font-size: 9px; }
.pill-l { font-size: 7.5px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
.pill-v { font-size: 13px; font-weight: 800; white-space: nowrap; }

/* ── Panel ────────────────────────────────────────────────────────────────── */
.panel-wrap { padding: 0 20px; }
.panel { display: flex; flex-direction: column; }
.panel-tag {
  align-self: flex-start; margin-left: 16px; padding: 5px 11px 5px 11px;
  font-size: 9px; font-weight: 900; letter-spacing: 1.8px; text-transform: uppercase; color: var(--on-bright);
  background: var(--t); border-radius: 7px 0 0 0; position: relative;
  clip-path: polygon(0 100%, 0 0, calc(100% - 14px) 0, 100% 100%);
  padding-right: 20px;
}
.panel-body {
  padding: 16px; background: var(--card); border: 1px solid var(--edge); border-radius: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,.30);
  display: flex; flex-direction: column;
}
.col { display: flex; flex-direction: column; }
.g6 { gap: 6px; } .g9 { gap: 9px; } .g10 { gap: 10px; } .g11 { gap: 11px; } .g12 { gap: 12px; } .g13 { gap: 13px; } .g14 { gap: 14px; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.center { align-items: center; justify-content: center; }
.spacer { flex: 1; }

/* ── Rank ─────────────────────────────────────────────────────────────────── */
.rank-head { display: flex; align-items: center; gap: 12px; }
.rank-orb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--t) 16%, transparent); color: var(--t); font-size: 19px; }
.rank-label { font-size: 18px; font-weight: 900; color: var(--ink); }
.rank-motto { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.rank-pct { font-size: 17px; font-weight: 900; color: var(--t); margin-left: auto; }
.bar { height: 9px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(135deg, var(--t), color-mix(in srgb, var(--t) 50%, transparent)); transition: width .6s ease; }
.rank-next { font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.rank-next.done { color: var(--aurora); }

/* ── Horizontal strip ─────────────────────────────────────────────────────── */
.hstrip { display: flex; gap: 11px; overflow-x: auto; padding: 0 20px 6px; scrollbar-width: none; }
.hstrip::-webkit-scrollbar { display: none; }
.stat {
  flex: none; width: 148px; padding: 13px; border-radius: 16px; background: var(--card); border: 1px solid var(--edge);
  box-shadow: 0 4px 10px rgba(0,0,0,.30); display: flex; flex-direction: column; gap: 7px;
}
.stat-cap { display: flex; align-items: center; gap: 5px; color: var(--ink-soft); font-size: 8.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; white-space: nowrap; }
.stat-cap .ic { color: var(--t); font-size: 10px; }
.stat-val { font-size: 19px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.stat svg.spark { width: 100%; height: 26px; display: block; }

/* ── Section rule ─────────────────────────────────────────────────────────── */
.section-rule { display: flex; align-items: center; gap: 9px; padding: 0 20px; }
.section-rule span { font-size: 10px; font-weight: 900; letter-spacing: 2.4px; text-transform: uppercase; color: var(--t); white-space: nowrap; }
.section-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, color-mix(in srgb, var(--t) 40%, transparent), transparent); }

/* ── Frame rows ───────────────────────────────────────────────────────────── */
.frames { display: flex; flex-direction: column; gap: 9px; padding: 0 20px; }
.frame {
  display: flex; align-items: center; gap: 12px; padding: 9px 13px; border-radius: 15px;
  background: var(--card); border: 1px solid var(--edge); box-shadow: 0 3px 8px rgba(0,0,0,.25);
}
.frame-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--t) 15%, transparent); color: var(--t); font-size: 15px; }
.frame-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.frame-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.frame-sub { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); }
.frame-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.frame-amt { font-size: 15px; font-weight: 800; color: var(--t); white-space: nowrap; }
.frame-date { font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.frame-del { border: 0; background: transparent; color: var(--ink-soft); font-size: 12px; padding: 6px 2px 6px 6px; display: grid; place-items: center; }
.frame-del:hover { color: var(--burn); }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 26px 20px; text-align: center; }
.empty-orb { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--t) 12%, transparent); border: 1.5px dashed color-mix(in srgb, var(--t) 35%, transparent); color: var(--t); font-size: 27px; }
.empty-title { font-size: 16px; font-weight: 800; color: var(--ink); }
.empty-body { font-size: 13px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badges { display: flex; gap: 10px; overflow-x: auto; padding: 0 20px 6px; scrollbar-width: none; }
.badges::-webkit-scrollbar { display: none; }
.badge {
  flex: none; width: 96px; padding: 12px 6px; border-radius: 16px; background: var(--card);
  border: 1.5px solid var(--edge); box-shadow: 0 4px 10px rgba(0,0,0,.30);
  display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center;
}
.badge.on { border-color: rgba(141,108,245,.55); }
.badge-orb { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--track); color: rgba(124,133,155,.5); font-size: 18px; }
.badge.on .badge-orb { background: rgba(141,108,245,.18); color: var(--lavender); }
.badge-name { font-size: 10.5px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.badge.on .badge-name { color: var(--ink); }
.badge-detail { font-size: 8.5px; font-weight: 500; color: rgba(124,133,155,.8); height: 22px; line-height: 1.3; overflow: hidden; }

/* ── Mast ─────────────────────────────────────────────────────────────────── */
.mast { display: flex; align-items: flex-start; gap: 13px; padding: 12px 20px 4px; padding-top: calc(12px + var(--sat)); }
.mast-bar { width: 4px; height: 58px; border-radius: 2px; background: linear-gradient(180deg, var(--t), color-mix(in srgb, var(--t) 15%, transparent)); flex: none; }
.mast-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mast-eyebrow { display: flex; align-items: center; gap: 6px; color: var(--t); }
.mast-eyebrow .ic { font-size: 10px; }
.mast-title { font-size: 30px; font-weight: 900; color: var(--ink); line-height: 1.1; }
.mast-fig { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; padding-top: 4px; }
.mast-fig b { font-size: 19px; font-weight: 800; color: var(--t); white-space: nowrap; }
.mast-fig span { font-size: 8.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-soft); }

/* ── Meters ───────────────────────────────────────────────────────────────── */
.led { display: flex; flex-direction: column; gap: 7px; width: 100%; }
.led-head { display: flex; align-items: center; justify-content: space-between; }
.led-head span { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ink-soft); }
.led-head b { font-size: 12.5px; font-weight: 800; color: var(--t); }
.led-cells { display: flex; align-items: center; gap: 3px; height: 16px; }
.led-cells i { flex: 1; height: 9px; border-radius: 1.5px; background: var(--track); transition: height .3s, background .3s; }
.led-cells i.lit { height: 15px; background: var(--t); box-shadow: 0 0 6px color-mix(in srgb, var(--t) 50%, transparent); }

.meter-text { position: absolute; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 1px; pointer-events: none; }
.meter-text b { font-size: 22px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.meter-text span { font-size: 8.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--ink-mid); }
.gauge { position: relative; display: grid; place-items: center; margin: 0 auto; }
.gauge svg { display: block; overflow: visible; }

.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--ink-soft); }
.legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.heat { display: flex; flex-direction: column; gap: 5px; }
.heat-row { display: flex; gap: 5px; }
.heat-row i { flex: 1; height: 24px; border-radius: 5px; }

.goal-chip { border: 0; display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: rgba(171,69,245,.14); color: var(--aurora); font-size: 11px; font-weight: 800; }
.goal-chip .ic { font-size: 9px; }

/* ── Offer card ───────────────────────────────────────────────────────────── */
.offers { display: flex; flex-direction: column; gap: 12px; padding: 0 20px; }
.offer { padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge); box-shadow: 0 8px 16px rgba(0,0,0,.30); display: flex; flex-direction: column; gap: 11px; }
.offer.closed { opacity: .72; border-color: rgba(254,132,0,.35); }
.offer-head { display: flex; align-items: flex-start; gap: 12px; }
.offer-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(141,108,245,.15); color: var(--lavender); font-size: 17px; }
.offer-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.offer-title { font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.offer-prov { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); }
.offer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.offer-reward { font-size: 17px; font-weight: 900; color: var(--lavender); }
.offer-left { font-size: 8.5px; font-weight: 900; letter-spacing: 1px; color: var(--ink-soft); }
.offer.closed .offer-left { color: var(--burn); }
.offer-terms { font-size: 11.5px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.offer-foot { display: flex; align-items: center; gap: 10px; }
.offer-date { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--ink-soft); }
.offer-remove { margin-left: auto; border: 0; display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: rgba(254,132,0,.12); color: var(--burn); font-size: 11px; font-weight: 700; }
.offer-remove .ic { font-size: 10px; }

/* ── Wave navigator ───────────────────────────────────────────────────────── */
.wave {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--card); border: 1px solid var(--edge); border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -6px 18px rgba(0,0,0,.40);
  padding-bottom: calc(24px + var(--sab));
}
.wave-ticks { display: flex; justify-content: space-between; padding: 6px 12px 0; }
.wave-ticks i { width: 6px; height: 3px; border-radius: 1.5px; background: var(--track); }
.wave-stops { display: flex; padding: 4px 6px 0; }
.stop {
  flex: 1; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; color: var(--ink-soft); min-width: 0;
}
.stop-orb { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; transition: transform .34s cubic-bezier(.2,.9,.3,1.3), background .3s, color .3s, box-shadow .3s; }
.stop-name { font-size: 8px; font-weight: 900; letter-spacing: .9px; text-transform: uppercase; transition: transform .34s cubic-bezier(.2,.9,.3,1.3), color .3s; white-space: nowrap; }
.stop-line { height: 2.5px; width: 0; border-radius: 2px; background: transparent; transition: all .34s; }
.stop.on { color: var(--t); }
.stop.on .stop-orb { background: linear-gradient(135deg, var(--t), color-mix(in srgb, var(--t) 65%, transparent)); color: var(--on-bright); font-size: 17px; transform: translateY(-9px); box-shadow: 0 3px 9px color-mix(in srgb, var(--t) 50%, transparent); }
.stop.on .stop-name { transform: translateY(-7px); }
.stop.on .stop-line { width: 22px; background: var(--t); transform: translateY(-5px); }

/* ── Aurora button ────────────────────────────────────────────────────────── */
.aurora {
  position: absolute; right: 18px; bottom: calc(96px + var(--sab)); z-index: 6;
  width: 58px; height: 58px; border-radius: 50%; border: 0; padding: 0;
  background: linear-gradient(135deg, var(--aurora-lite), var(--aurora));
  box-shadow: 0 6px 14px rgba(171,69,245,.45);
  display: grid; place-items: center;
  transition: transform .2s;
}
.aurora:active { transform: scale(.94); }
.aurora-ring { position: absolute; width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(20,22,30,.35); }
.aurora-plus { position: relative; width: 20px; height: 20px; }
.aurora-plus::before, .aurora-plus::after { content: ""; position: absolute; background: var(--on-bright); border-radius: 2px; }
.aurora-plus::before { left: 8.5px; top: 0; width: 3px; height: 20px; }
.aurora-plus::after  { top: 8.5px; left: 0; width: 20px; height: 3px; }

/* ── Aurora menu ──────────────────────────────────────────────────────────── */
.menu { position: absolute; inset: 0; z-index: 20; }
.menu[hidden] { display: none; }
.menu-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fadeIn .18s ease; }
.menu-list { position: absolute; right: 18px; bottom: calc(104px + var(--sab)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; animation: menuIn .3s cubic-bezier(.2,.9,.3,1.1); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.menu-item {
  border: 1px solid var(--edge); background: var(--card); border-radius: 999px; padding: 8px 10px 8px 16px;
  display: flex; align-items: center; gap: 12px; color: var(--ink); font-size: 14px; font-weight: 900;
  box-shadow: 0 5px 12px rgba(0,0,0,.40);
}
.menu-orb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--t); color: var(--on-bright); font-size: 17px; box-shadow: 0 3px 8px color-mix(in srgb, var(--t) 50%, transparent); }
.menu-close { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--edge); background: var(--card); color: var(--ink); font-size: 19px; display: grid; place-items: center; box-shadow: 0 5px 12px rgba(0,0,0,.40); }

/* ── Sheets ───────────────────────────────────────────────────────────────── */
.sheet-host { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; justify-content: flex-end; }
.sheet-host[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.5); animation: fadeIn .2s ease; }
.sheet {
  position: relative; background: #101218; border-radius: 22px 22px 0 0; max-height: 94%;
  display: flex; flex-direction: column; animation: sheetIn .32s cubic-bezier(.2,.8,.2,1);
  border-top: 1px solid var(--edge);
}
@keyframes sheetIn { from { transform: translateY(100%); } to { transform: none; } }
.sheet.closing { animation: sheetOut .22s ease forwards; }
@keyframes sheetOut { to { transform: translateY(100%); } }
.sheet-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 16px 8px; }
.sheet-bar h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink); text-align: center; }
.sheet-bar button { border: 0; background: transparent; color: var(--aurora-lite); font-size: 16px; font-weight: 500; padding: 4px 0; justify-self: start; }
.sheet-bar button.done { justify-self: end; font-weight: 700; }
.sheet-body { overflow-y: auto; padding: 8px 16px calc(28px + var(--sab)); display: flex; flex-direction: column; gap: 22px; }

.fsec { display: flex; flex-direction: column; gap: 6px; }
.fsec > label.sec { font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-soft); padding: 0 16px; }
.fgroup { background: var(--card); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px; }
.frow + .frow { border-top: 1px solid rgba(60,64,88,.6); }
.frow label { font-size: 15px; color: var(--ink); flex: none; }
.frow input, .frow select {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 15px; text-align: right;
  outline: none; padding: 12px 0; -webkit-appearance: none; appearance: none;
}
.frow input.big { font-size: 26px; font-weight: 600; text-align: left; }
.frow input::placeholder { color: rgba(124,133,155,.6); }
.frow select { text-align: right; text-align-last: right; color: var(--ink-mid); padding-right: 18px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237c859b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 2px center; }
.frow select option { background: var(--card); color: var(--ink); }
.frow input[type="date"] { color: var(--ink-mid); }
.frow input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.frow .hint { color: var(--ink-soft); font-size: 15px; }
.frow .val { color: var(--t); font-size: 15px; font-weight: 600; }
.fsubmit { width: 100%; border: 0; background: var(--card); border: 1px solid var(--edge); border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 700; color: var(--t); }
.fsubmit:active { background: var(--track); }
.fsubmit.danger { color: var(--burn); }

.about-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px 0 8px; }
.about-hero h3 { margin: 0; font-size: 28px; font-weight: 700; color: var(--ink); }
.about-hero p { margin: 0; color: var(--aurora); font-size: 16px; }
.frow.text { padding: 12px 16px; color: var(--ink-soft); font-size: 15px; line-height: 1.4; display: block; }

/* ── Alert ────────────────────────────────────────────────────────────────── */
.alert-host { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(0,0,0,.4); animation: fadeIn .15s ease; }
.alert-host[hidden] { display: none; }
.alert { width: 270px; background: #1c1e28; border: 1px solid var(--edge); border-radius: 16px; overflow: hidden; text-align: center; animation: alertIn .2s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
@keyframes alertIn { from { transform: scale(1.08); opacity: 0; } to { transform: none; opacity: 1; } }
.alert-body { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.alert-body h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.alert-body p { margin: 0; font-size: 13px; color: var(--ink-mid); line-height: 1.4; }
.alert-actions { display: flex; border-top: 1px solid var(--edge); }
.alert-actions button { flex: 1; border: 0; background: transparent; padding: 12px; font-size: 16px; color: var(--aurora-lite); font-weight: 500; }
.alert-actions button + button { border-left: 1px solid var(--edge); }
.alert-actions button.destructive { color: var(--burn); font-weight: 700; }
.alert-actions button.bold { font-weight: 700; }

/* ── Reduce motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
