/* ── Neo Brutalism — Refined Palette ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #1a1a2e;
  --white:   #f8f7f4;
  --bg:      #f0ede6;
  --surface: #faf9f6;

  /* Subtle accent palette */
  --accent-1: #c8b8a2;   /* warm sand */
  --accent-2: #8b9dc3;   /* muted slate blue */
  --accent-3: #a8c5a0;   /* sage green */
  --accent-4: #c9a96e;   /* muted gold */
  --accent-5: #c4a0b0;   /* dusty rose */
  --accent-6: #9b8ea8;   /* muted lavender */

  /* Semantic */
  --danger:  #c0392b;
  --ink:     #1a1a2e;

  --border:    2px solid var(--ink);
  --border-sm: 1px solid rgba(26,26,46,0.15);
  --shadow:    4px 4px 0px var(--ink);
  --shadow-lg: 6px 6px 0px var(--ink);
  --shadow-sm: 2px 2px 0px var(--ink);

  --font: 'Space Grotesk', sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 60px;
  border-bottom: var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--accent-4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar .logo svg { width: 20px; height: 20px; stroke: var(--accent-4); }

/* Logo mark — shared across navbar, auth, onboarding */
.logo-mark {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

.auth-left .brand .logo-mark {
  width: 30px;
  height: 30px;
  border-color: rgba(248,247,244,0.4);
  box-shadow: 2px 2px 0 rgba(248,247,244,0.3);
}

.onboarding-logo .logo-mark {
  width: 22px;
  height: 22px;
}

.navbar nav a {
  color: rgba(248,247,244,0.7);
  text-decoration: none;
  font-weight: 600;
  margin-left: 0.25rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border: 1px solid transparent;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 2px;
}

.navbar nav a svg { width: 14px; height: 14px; }

.navbar nav a:hover {
  color: var(--white);
  background: rgba(248,247,244,0.08);
  border-color: rgba(248,247,244,0.15);
}

.navbar nav a.active {
  color: var(--ink);
  background: var(--accent-4);
  border-color: var(--accent-4);
}

.navbar nav a.active svg { stroke: var(--ink); }

/* ── Layout ─────────────────────────────────────────────────── */
.page {
  max-width: 100%;
  padding: 2.5rem 3rem;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.3rem;
  letter-spacing: -0.5px;
}

.page-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(26,26,46,0.5);
  margin-bottom: 2rem;
}

/* ── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-1px, -1px);
  transition: all 0.12s;
}

/* Subtle tinted cards */
.card-1 { background: #e8e0f0; }   /* lavender */
.card-2 { background: #dce8f0; }   /* sky */
.card-3 { background: #dff0e4; }   /* mint */
.card-4 { background: #f0ead8; }   /* cream */
.card-5 { background: #f0dde8; }   /* blush */

/* Legacy color cards — kept for story cards, now muted */
.card-pink   { background: #e8c4d4; color: var(--ink); }
.card-blue   { background: #c4d4e8; color: var(--ink); }
.card-green  { background: #c4e0cc; color: var(--ink); }
.card-orange { background: #e8d4b8; color: var(--ink); }
.card-yellow { background: #f0e8c0; color: var(--ink); }

/* ── Grid ───────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .page { padding: 1.5rem; }
  .navbar { padding: 0 1.5rem; }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Stat Box ───────────────────────────────────────────────── */
.stat-box {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  transition: all 0.12s;
}

.stat-box:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-lg);
}

.stat-box .stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 5px;
}

.stat-box .stat-label svg { width: 12px; height: 12px; }

.stat-box .stat-value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 6px;
  letter-spacing: -1px;
}

.stat-box .stat-note {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 4px;
  opacity: 0.5;
}

/* ── Story Card ─────────────────────────────────────────────── */
.story-card {
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.12s;
}

.story-card:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-lg);
}

.story-card .story-icon { margin-bottom: 0.75rem; }

.story-card .story-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 2px;
  opacity: 0.7;
}

.story-card .story-headline {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.story-card .story-detail {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.6;
}

.story-card .story-amount {
  font-size: 1.8rem;
  font-weight: 800;
  margin-top: 0.75rem;
  letter-spacing: -1px;
}

/* ── Bar Chart ──────────────────────────────────────────────── */
.bar-chart { display: flex; flex-direction: column; gap: 0.8rem; }

.bar-row { display: flex; align-items: center; gap: 1rem; }

.bar-label {
  width: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  opacity: 0.7;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: rgba(26,26,46,0.06);
  border: var(--border);
  position: relative;
}

.bar-fill {
  height: 100%;
  transition: width 0.7s cubic-bezier(.23,1,.32,1);
  display: flex;
  align-items: center;
  padding-left: 8px;
}

.bar-fill span {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0.8;
}

.bar-amount {
  width: 60px;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: all 0.12s;
}

.btn svg { width: 15px; height: 15px; }

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: none;
}

.btn-dark   { background: var(--ink);     color: var(--white); }
.btn-sand   { background: var(--accent-1); color: var(--ink); }
.btn-slate  { background: var(--accent-2); color: var(--ink); }
.btn-sage   { background: var(--accent-3); color: var(--ink); }
.btn-gold   { background: var(--accent-4); color: var(--ink); }

/* legacy aliases */
.btn-black { background: var(--ink);      color: var(--white); }
.btn-pink  { background: var(--accent-5); color: var(--ink); }
.btn-blue  { background: var(--accent-2); color: var(--ink); }
.btn-green { background: var(--accent-3); color: var(--ink); }

/* ── Form ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px;
  opacity: 0.6;
}

.form-group input {
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  outline: none;
  color: var(--ink);
  transition: all 0.12s;
}

.form-group input:focus {
  box-shadow: var(--shadow);
  transform: translate(-1px, -1px);
}

/* ── Auth Page ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
}

.auth-left {
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  border-right: var(--border);
}

.auth-left .brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-4);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3rem;
}

.auth-left .brand svg { width: 24px; height: 24px; stroke: var(--accent-4); }

.auth-left h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.auth-left p {
  font-size: 0.95rem;
  color: rgba(248,247,244,0.45);
  font-weight: 500;
  line-height: 1.6;
  max-width: 340px;
}

.auth-left .auth-features {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-left .auth-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(248,247,244,0.6);
}

.auth-left .auth-feature svg { width: 16px; height: 16px; stroke: var(--accent-4); flex-shrink: 0; }

.auth-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

.auth-box {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.auth-box h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.5px;
}

.auth-box h1 svg { width: 22px; height: 22px; }

.auth-box .auth-sub {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.5;
  margin-bottom: 2rem;
}

.auth-toggle {
  margin-top: 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  opacity: 0.6;
}

.auth-toggle a {
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  text-decoration: underline;
  opacity: 1;
}

.error-msg {
  background: #fde8e8;
  color: var(--danger);
  border: 2px solid var(--danger);
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 2rem 1.5rem; }
}

/* ── Tag / Badge ────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--border);
  margin-right: 4px;
  margin-bottom: 4px;
  background: rgba(26,26,46,0.06);
}

/* ── Insight Banner ─────────────────────────────────────────── */
.insight-banner {
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1rem 1.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface);
}

.insight-banner .insight-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.insight-banner .insight-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2px;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: var(--border-sm);
  margin: 1.5rem 0;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(26,26,46,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,26,46,0.4); }

/* ── Navbar Add Button ──────────────────────────────────────── */
.navbar-add-btn {
  margin-left: 1rem;
  padding: 6px 14px;
  font-size: 0.8rem;
  border-color: var(--accent-4);
  background: var(--accent-4);
  color: var(--ink);
  box-shadow: none;
}

.navbar-add-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sm);
}

/* ── Drawer Overlay ─────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0);
  z-index: 200;
  transition: background 0.25s ease;
}

.drawer-overlay.open {
  background: rgba(26,26,46,0.4);
}

/* ── Drawer Panel ───────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 420px;
  max-width: 100vw;
  background: var(--surface);
  border-left: var(--border);
  box-shadow: -6px 0 0 var(--ink);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(.23,1,.32,1);
  display: flex;
  flex-direction: column;
  z-index: 201;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.6rem;
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
}

.drawer-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-title svg { width: 18px; height: 18px; stroke: var(--accent-4); }

.drawer-close {
  background: none;
  border: 1px solid rgba(248,247,244,0.2);
  color: var(--white);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
}

.drawer-close:hover { background: rgba(248,247,244,0.1); }
.drawer-close svg { width: 18px; height: 18px; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.8rem 1.6rem;
}

/* ── Amount Input ───────────────────────────────────────────── */
.amount-input-wrap {
  display: flex;
  align-items: center;
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--white);
  margin-bottom: 1.6rem;
  transition: all 0.12s;
}

.amount-input-wrap:focus-within {
  box-shadow: var(--shadow-lg);
  transform: translate(-1px, -1px);
}

.amount-prefix {
  padding: 0 1rem;
  font-size: 1.8rem;
  font-weight: 800;
  color: rgba(26,26,46,0.3);
  border-right: var(--border);
  line-height: 1;
  user-select: none;
}

.amount-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 1rem;
  font-family: var(--font);
  font-size: 2rem;
  font-weight: 800;
  background: transparent;
  color: var(--ink);
  letter-spacing: -1px;
  width: 100%;
}

.amount-input::placeholder { color: rgba(26,26,46,0.2); }

/* hide number spinners */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.amount-input[type=number] { -moz-appearance: textfield; }

/* ── Category Pills ─────────────────────────────────────────── */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cat-pill {
  padding: 6px 14px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--border);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.1s;
}

.cat-pill:hover {
  background: var(--bg);
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-sm);
}

.cat-pill.active {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* ── Drawer Submit ──────────────────────────────────────────── */
.drawer-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 12px;
  font-size: 0.9rem;
}

/* ── Floating Add Button (mobile) ──────────────────────────── */
.fab {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 52px;
  height: 52px;
  background: var(--ink);
  color: var(--white);
  border: var(--border);
  box-shadow: var(--shadow);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 150;
  transition: all 0.12s;
}

.fab svg { width: 22px; height: 22px; }
.fab:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-lg); }

/* ── Mobile — full responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .fab { display: flex; }
  .navbar-add-btn { display: none; }

  /* Hide FAB on auth page */
  body.page-auth .fab { display: none !important; }

  /* Navbar — horizontal scroll on mobile */
  .navbar {
    padding: 0 1rem;
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    gap: 0;
  }

  .navbar .logo {
    font-size: 1rem;
    padding: 12px 0;
  }

  .navbar nav {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    border-top: 1px solid rgba(248,247,244,0.1);
    padding: 6px 0;
    gap: 2px;
  }

  .navbar nav::-webkit-scrollbar { display: none; }

  .navbar nav a {
    margin-left: 0;
    padding: 6px 10px;
    font-size: 0.72rem;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* Page padding */
  .page { padding: 1.2rem 1rem; }
  .page-title { font-size: 1.5rem; }

  /* Grids */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  /* Stat boxes */
  .stat-box .stat-value { font-size: 1.5rem; }

  /* Income panel */
  .income-panel-top { flex-direction: column; gap: 0.75rem; }
  .income-panel-left, .income-panel-right { flex-direction: row; align-items: center; justify-content: space-between; }
  .income-value { font-size: 1.1rem; }
  .survive-badge { width: 100%; }

  /* Bar chart */
  .bar-label { width: 70px; font-size: 0.68rem; }
  .bar-amount { width: 50px; font-size: 0.72rem; }

  /* Drawer full width on mobile */
  .drawer { width: 100vw; border-left: none; border-top: var(--border); box-shadow: 0 -4px 0 var(--ink); top: auto; bottom: 0; height: 90vh; border-radius: 0; }

  /* Community modal */
  .community-modal { width: calc(100vw - 1rem); max-height: 85vh; }

  /* Auth */
  .auth-right { padding: 1.5rem 1rem; }
  .auth-box { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
  .page-title { font-size: 1.3rem; }
}

/* ── Micro Interactions ─────────────────────────────────────── */

/* Page enter */
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-enter { animation: pageEnter 0.3s ease forwards; }

/* Stat boxes stagger in */
@keyframes statIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.stat-animate {
  opacity: 0;
  animation: statIn 0.35s ease forwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

/* Insight banners stagger */
@keyframes insightIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.insight-animate {
  opacity: 0;
  animation: insightIn 0.3s ease forwards;
  animation-delay: var(--delay, 0ms);
}

/* Bar rows */
.animate-bar {
  opacity: 0;
  animation: statIn 0.3s ease forwards;
  animation-delay: var(--delay, 0ms);
}

/* Bar fill transition (driven by JS) */
.bar-fill {
  transition: width 0.7s cubic-bezier(.23,1,.32,1);
}

/* Skeleton loader */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, rgba(26,26,46,0.06) 25%, rgba(26,26,46,0.12) 50%, rgba(26,26,46,0.06) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border: var(--border);
  border-radius: 0;
}

/* Card heading */
.card-heading {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}
.card-heading svg { width: 15px; height: 15px; }

.card-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.55;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.card-label svg { width: 13px; height: 13px; }

/* Transaction rows */
.tx-list { display: flex; flex-direction: column; }

.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,26,46,0.08);
  animation: statIn 0.3s ease forwards;
  opacity: 0;
  animation-delay: var(--delay, 0ms);
  transition: background 0.1s;
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: rgba(26,26,46,0.03); margin: 0 -0.5rem; padding-left: 0.5rem; padding-right: 0.5rem; }

.tx-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  flex-shrink: 0;
}

.tx-info { flex: 1; min-width: 0; }
.tx-note { font-weight: 700; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 0.72rem; font-weight: 500; opacity: 0.5; margin-top: 2px; }
.tx-amount { font-weight: 800; font-size: 0.95rem; white-space: nowrap; flex-shrink: 0; }

/* Timeline */
.timeline-row { align-items: flex-start; }
.timeline-date {
  background: var(--ink);
  color: #c8b8a2;
  padding: 3px 8px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Story card wrap animation */
.story-card-wrap {
  opacity: 0;
  animation: statIn 0.35s ease forwards;
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
  opacity: 0.5;
}
.empty-state svg { width: 40px; height: 40px; stroke-width: 1.5px; }
.empty-state p { font-size: 0.9rem; font-weight: 600; }
.empty-state small { font-size: 0.75rem; }
.empty-state .btn { opacity: 1; }

/* ── Admin Table ────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 0 -1.5rem -1.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 1.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  border-top: var(--border-sm);
  border-bottom: var(--border-sm);
  background: rgba(26,26,46,0.03);
  white-space: nowrap;
}

.admin-table td {
  padding: 10px 1.5rem;
  border-bottom: 1px solid rgba(26,26,46,0.07);
  font-weight: 500;
}

.table-row { transition: background 0.1s; }
.table-row:hover { background: rgba(26,26,46,0.04); }

/* ── Admin Analytics ────────────────────────────────────────── */

/* Sparkline */
.sparkline-wrap {
  padding: 0.5rem 0;
}

.sparkline {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 60px;
}

.spark-bar {
  min-height: 2px;
  border-radius: 0;
  cursor: default;
  transition: opacity 0.1s;
}

.spark-bar:hover { opacity: 0.7; }

.sparkline-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  overflow: hidden;
}

.sparkline-labels span {
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.35;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* Show only every 3rd label to avoid crowding */
.sparkline-labels span:not(:nth-child(3n)) { visibility: hidden; }

/* User spend mix mini bar */
.user-mini-bar {
  display: flex;
  height: 10px;
  width: 100px;
  border: 1px solid rgba(26,26,46,0.2);
  overflow: hidden;
  gap: 1px;
}

.mini-bar-seg {
  height: 100%;
  min-width: 4px;
  transition: opacity 0.1s;
}

.mini-bar-seg:hover { opacity: 0.7; }

/* ── Auth Extended ──────────────────────────────────────────── */

.auth-box-wide { max-width: 480px; }

/* Two-column form row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Optional label */
.form-optional {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.4;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

/* Password toggle button */
.pwd-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  color: var(--ink);
  opacity: 0.35;
  transition: opacity 0.1s;
}
.pwd-toggle:hover { opacity: 0.7; }
.pwd-toggle svg { width: 16px; height: 16px; }

/* Password strength segments */
.strength-seg {
  flex: 1;
  height: 4px;
  background: rgba(26,26,46,0.1);
  border: 1px solid rgba(26,26,46,0.15);
  transition: background 0.2s;
}

/* Budget input */
.budget-input-wrap {
  display: flex;
  align-items: center;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: all 0.12s;
}

.budget-input-wrap:focus-within {
  box-shadow: var(--shadow);
  transform: translate(-1px, -1px);
}

.budget-prefix {
  padding: 0 10px;
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.3;
  border-right: var(--border);
  line-height: 1;
  user-select: none;
}

.budget-input-wrap input {
  border: none;
  box-shadow: none;
  transform: none !important;
  flex: 1;
}

.budget-input-wrap input:focus {
  box-shadow: none;
  transform: none;
}

/* Checkbox label */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--ink);
  cursor: pointer;
}

/* Submit button full width */
.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px;
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 0.8rem;
  color: rgba(26,26,46,0.3);
  font-size: 0.75rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(26,26,46,0.12);
}

/* Demo notice */
.demo-notice {
  margin-top: 1.2rem;
  padding: 10px 14px;
  background: rgba(200,184,162,0.15);
  border: 1px solid rgba(26,26,46,0.12);
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.65;
  display: flex;
  align-items: center;
  gap: 8px;
}

.demo-notice svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Success message */
.success-msg {
  background: #dff0e4;
  color: #1a6b3a;
  border: 2px solid #a8c5a0;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Step indicator */
.auth-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 1.5rem;
}

.auth-step {
  width: 28px;
  height: 28px;
  border: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: var(--white);
  color: rgba(26,26,46,0.3);
  flex-shrink: 0;
}

.auth-step.active {
  background: var(--ink);
  color: var(--accent-4);
}

.auth-step-line {
  flex: 1;
  height: 2px;
  background: rgba(26,26,46,0.15);
  max-width: 40px;
}

/* ── Admin Page Overrides ───────────────────────────────────── */
/* Applied when served from /admin */
body.admin-body {
  background: #f0ede6;
  color: #1a1a2e;
}

body.admin-body .page-title,
body.admin-body .page-subtitle,
body.admin-body .stat-value,
body.admin-body .stat-label,
body.admin-body .stat-note,
body.admin-body .card-heading,
body.admin-body .card-label,
body.admin-body .tx-note,
body.admin-body .tx-meta,
body.admin-body .tx-amount,
body.admin-body .bar-label,
body.admin-body .bar-amount,
body.admin-body .admin-table th,
body.admin-body .admin-table td,
body.admin-body .insight-banner,
body.admin-body .tag {
  color: #1a1a2e;
}

body.admin-body .stat-box {
  color: #1a1a2e;
}

body.admin-body .card {
  background: #faf9f6;
  color: #1a1a2e;
}

body.admin-body .insight-banner {
  color: #1a1a2e;
}

/* ── Interactive Charts ─────────────────────────────────────── */

/* Floating tooltip */
.chart-tooltip {
  position: fixed;
  background: var(--ink);
  color: var(--white);
  padding: 6px 10px;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s, transform 0.12s;
  white-space: nowrap;
  border: 1px solid rgba(248,247,244,0.15);
  max-width: 200px;
}
.chart-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}
.chart-tooltip .tt-label {
  opacity: 0.55;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.chart-tooltip .tt-value {
  font-size: 0.88rem;
  font-weight: 800;
}

/* Sparkline bars — interactive */
.spark-bar {
  cursor: crosshair;
  position: relative;
  transition: opacity 0.1s, transform 0.1s;
}
.spark-bar:hover {
  opacity: 1 !important;
  transform: scaleY(1.06);
  transform-origin: bottom;
  filter: brightness(0.88);
}

/* Bar rows — interactive */
.bar-row {
  cursor: pointer;
  border-radius: 0;
  transition: background 0.1s;
  padding: 4px 6px;
  margin: 0 -6px;
}
.bar-row:hover {
  background: rgba(26,26,46,0.04);
}
.bar-row.selected {
  background: rgba(26,26,46,0.08);
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}
.bar-row.dimmed {
  opacity: 0.35;
}

/* Bar fill hover */
.bar-fill {
  cursor: pointer;
}
.bar-row:hover .bar-fill {
  filter: brightness(0.9);
}

/* Category filter badge */
.filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: var(--border);
  cursor: pointer;
  transition: all 0.1s;
  animation: statIn 0.2s ease forwards;
}
.filter-badge:hover { background: #333; }
.filter-badge svg { width: 12px; height: 12px; }

/* Donut chart */
.donut-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.donut-svg { flex-shrink: 0; }
.donut-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 120px;
}
.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 3px 6px;
  transition: background 0.1s;
  border-radius: 0;
}
.donut-legend-item:hover { background: rgba(26,26,46,0.05); }
.donut-legend-item.dimmed { opacity: 0.3; }
.donut-legend-dot {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.donut-legend-pct {
  margin-left: auto;
  opacity: 0.5;
  font-size: 0.7rem;
}

/* Donut segment hover */
.donut-seg {
  cursor: pointer;
  transition: opacity 0.15s;
}
.donut-seg:hover { opacity: 0.8; }
.donut-seg.dimmed { opacity: 0.2; }

/* Line chart (trends over time) */
.line-chart-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.line-chart-wrap svg {
  width: 100%;
  display: block;
}
.line-point {
  cursor: crosshair;
  transition: r 0.1s;
}
.line-point:hover { r: 6; }

/* Weekly bar chart interactive */
.week-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  cursor: pointer;
}
.week-bar-col:hover .week-bar-rect { filter: brightness(0.88); }

/* Fixed-height zone where bar grows from bottom */
.week-bar-zone {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: flex-end;
}

.week-bar-rect {
  width: 100%;
  min-height: 2px;
  transition: height 0.6s cubic-bezier(.23,1,.32,1), filter 0.1s;
  border: var(--border);
}
.week-bar-label {
  font-size: 0.65rem;
  font-weight: 700;
  opacity: 0.5;
  text-transform: uppercase;
}
.week-bar-val {
  font-size: 0.7rem;
  font-weight: 800;
  opacity: 0.7;
  min-height: 1em;
}
.week-chart-cols {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

/* ── Income / Survival Panel ────────────────────────────────── */
.income-panel {
  border: var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  padding: 1.4rem 1.6rem;
}

.income-panel-top {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.income-panel-left,
.income-panel-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 100px;
}

.income-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.5;
  display: flex;
  align-items: center;
  gap: 5px;
}
.income-label svg { width: 11px; height: 11px; }

.income-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

/* Survive badge */
.survive-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  border: var(--border);
  box-shadow: var(--shadow-sm);
  padding: 10px 16px;
  flex-shrink: 0;
  min-width: 160px;
}
.survive-badge svg { width: 22px; height: 22px; flex-shrink: 0; }

.survive-days {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.survive-note {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.55;
  margin-top: 2px;
}

/* Progress bar */
.income-bar-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.income-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(26,26,46,0.07);
  border: 1px solid rgba(26,26,46,0.15);
  overflow: hidden;
}

.income-bar-fill {
  height: 100%;
  transition: width 0.8s cubic-bezier(.23,1,.32,1);
}

.income-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.5;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .income-panel-top { gap: 1rem; }
  .survive-badge { width: 100%; }
}

/* ── Profile Page ───────────────────────────────────────────── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.4rem 1.6rem;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 64px;
  height: 64px;
  background: var(--ink);
  color: var(--accent-4);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -1px;
  border: var(--border);
}

.profile-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.profile-email {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.45;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.profile-email svg { width: 12px; height: 12px; }

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 1000px) {
  .profile-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-hero { flex-direction: column; text-align: center; }
}

/* ── Payment badge (inline in tx rows) ──────────────────────── */
.pay-badge {
  display: inline-block;
  padding: 1px 6px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(26,26,46,0.2);
  background: rgba(26,26,46,0.05);
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Daily Bar Chart ────────────────────────────────────────── */
.daily-bar {
  cursor: crosshair;
  transition: filter 0.1s, opacity 0.1s;
}
.daily-bar:hover {
  filter: brightness(0.82);
  opacity: 0.9;
}

/* ── Weekly Line Chart dots ─────────────────────────────────── */
.wl-point {
  cursor: crosshair;
  transition: r 0.1s;
}
.wl-point:hover { r: 6; }

/* ── Line Chart Legend ──────────────────────────────────────── */
.line-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(26,26,46,0.08);
}

.line-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  transition: background 0.1s;
}
.line-legend-item:hover { background: rgba(26,26,46,0.05); }
.line-legend-item span { opacity: 0.7; }

/* ── Line Legend Selected ───────────────────────────────────── */
.line-legend-item.selected {
  background: rgba(26,26,46,0.08);
  outline: 1px solid rgba(26,26,46,0.2);
}

/* ── Community ───────────────────────────────────────────────── */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.community-card {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.12s;
}
.community-card:hover {
  transform: translate(-1px,-1px);
  box-shadow: var(--shadow-lg);
}

.community-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.community-name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.community-meta {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.5;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.community-meta svg { width: 11px; height: 11px; }

.community-budget-badge {
  text-align: right;
  flex-shrink: 0;
}
.community-budget-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.45;
}
.community-budget-val {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.community-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.community-progress-track {
  height: 8px;
  background: rgba(26,26,46,0.07);
  border: 1px solid rgba(26,26,46,0.12);
  overflow: hidden;
}
.community-progress-fill {
  height: 100%;
  transition: width 0.7s cubic-bezier(.23,1,.32,1);
}
.community-progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.45;
}

.community-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Community Modal ─────────────────────────────────────────── */
.community-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  width: 480px;
  max-width: calc(100vw - 2rem);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 201;
  transition: transform 0.2s cubic-bezier(.23,1,.32,1), opacity 0.2s;
  opacity: 0;
}

#community-modal-overlay.open .community-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.cm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: var(--border);
  background: var(--ink);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1;
}

.cm-title {
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cm-title svg { width: 16px; height: 16px; stroke: var(--accent-4); }

.cm-body {
  padding: 1.6rem;
}

@media (max-width: 600px) {
  .community-grid { grid-template-columns: 1fr; }
}

/* ── Admin compact button ───────────────────────────────────── */
.btn-xs {
  padding: 4px 10px;
  font-size: 0.72rem;
  gap: 5px;
}
.btn-xs svg { width: 12px; height: 12px; }

/* ── Hide FAB on admin page ─────────────────────────────────── */
body.admin-body .fab { display: none !important; }

/* ── Admin table mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
  .admin-table thead { display: none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display: block; width: 100%; }
  .admin-table tr {
    border-bottom: var(--border);
    padding: 0.75rem 0;
    margin-bottom: 0.5rem;
  }
  .admin-table td {
    padding: 3px 1rem;
    border: none;
    font-size: 0.82rem;
  }
  .admin-table td[style*="display:flex"] {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 1rem;
  }
}

/* ── Onboarding ─────────────────────────────────────────────── */
#onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,46,0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

#onboarding-overlay.onboarding-in  { opacity: 1; }
#onboarding-overlay.onboarding-out { opacity: 0; }

.onboarding-modal {
  background: var(--surface);
  border: var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

#onboarding-overlay.onboarding-in .onboarding-modal { transform: translateY(0); }

.onboarding-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  background: var(--ink);
  color: var(--white);
  border-bottom: var(--border);
}

.onboarding-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent-4);
  display: flex;
  align-items: center;
  gap: 8px;
}
.onboarding-logo svg { width: 18px; height: 18px; stroke: var(--accent-4); }

.onboarding-skip {
  background: none;
  border: 1px solid rgba(248,247,244,0.2);
  color: rgba(248,247,244,0.5);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.1s;
}
.onboarding-skip:hover { color: var(--white); border-color: rgba(248,247,244,0.4); }

.onboarding-body { padding: 2rem 1.6rem; min-height: 200px; }

.onboarding-step { text-align: center; }

.onboarding-icon {
  width: 64px;
  height: 64px;
  background: var(--ink);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.onboarding-icon svg { width: 28px; height: 28px; stroke: var(--accent-4); }

.onboarding-step-num {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.onboarding-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 0.75rem;
}

.onboarding-desc {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
  opacity: 0.65;
  max-width: 320px;
  margin: 0 auto;
}

.onboarding-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.4rem;
  border-top: var(--border);
  background: rgba(26,26,46,0.03);
}

.onboarding-dots { display: flex; gap: 6px; align-items: center; }

.onboarding-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--ink);
  background: transparent;
  transition: background 0.2s;
}
.onboarding-dot.active { background: var(--ink); }
