/* ============================================================
   CLEARFLOW — Responsive CSS
   Mobile: bottom nav, single column
   Desktop (≥1024px): sidebar nav, two-column content
   ============================================================ */

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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Base — clean neutral whites & greys, no colour tint ── */
  --white:    #ffffff;
  --bg:       #f5f7fa;
  --bg-2:     #eaecf0;
  --text:     #111827;
  --text-2:   #4b5563;
  --text-3:   #9ca3af;

  /* ── Primary accent — forest green (money, growth) ── */
  --accent:   #16a34a;
  --accent-2: #15803d;
  --accent-l: #f0fdf4;
  --accent-b: #86efac;

  /* ── Semantic — each colour is distinct & vivid ── */
  --green:    #16a34a;
  --green-d:  #f0fdf4;
  --green-b:  #86efac;
  --red:      #dc2626;
  --red-d:    #fef2f2;
  --red-b:    #fecaca;
  --amber:    #d97706;
  --amber-d:  #fffbeb;
  --amber-b:  #fde68a;
  --blue:     #2563eb;
  --blue-d:   #eff6ff;
  --blue-b:   #bfdbfe;
  --purple:   #7c3aed;
  --purple-d: #f5f3ff;
  --purple-b: #ddd6fe;

  /* ── Borders & shadows — pure neutral, no colour cast ── */
  --border:   rgba(17,24,39,0.08);
  --border-2: rgba(17,24,39,0.14);
  --shadow-sm: 0 1px 3px rgba(17,24,39,0.06),0 1px 2px rgba(17,24,39,0.04);
  --shadow:    0 4px 16px rgba(17,24,39,0.08),0 2px 6px rgba(17,24,39,0.04);
  --shadow-lg: 0 12px 40px rgba(17,24,39,0.1),0 4px 12px rgba(17,24,39,0.06);
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-f:  999px;
  --ff:   'Plus Jakarta Sans', system-ui, sans-serif;
  --fm:   'DM Mono', monospace;
  --app-bar-h:   56px;
  --bnav-h:      68px;
  --sidebar-w:   240px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

html { height: 100%; overscroll-behavior: none; }
body {
  font-family: var(--ff); background: var(--bg); color: var(--text);
  font-size: 15px; line-height: 1.5; height: 100%;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
input, select, textarea, button { font-family: var(--ff); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; -webkit-tap-highlight-color: transparent; }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="date"], select, textarea { font-size: 16px !important; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

/* ── SCREENS ── */
.screen { display: none; position: fixed; inset: 0; overflow: hidden; background: var(--bg); z-index: 1; }
.screen.active { display: flex; flex-direction: column; z-index: 2; }
#screen-home.active { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════
   HOME PAGE
   ═══════════════════════════════════════════════════════ */

.wordmark { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.wordmark span { color: var(--accent); }
.wordmark.small { font-size: 13px; }

.home-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center;
  padding: 0 24px; height: calc(60px + var(--safe-t)); padding-top: var(--safe-t);
  background: rgba(255,255,255,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border); gap: 32px;
}
.home-nav-links { display: none; flex: 1; gap: 28px; }
.home-nav-links a { font-size: 14px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.home-nav-links a:hover { color: var(--text); }
.home-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.btn-ghost-sm {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  padding: 8px 16px; border: 1.5px solid var(--border-2);
  border-radius: var(--r-f); transition: all .15s; background: transparent;
}
.btn-ghost-sm:hover { color: var(--text); border-color: var(--text-3); }
.btn-accent-sm {
  font-size: 13px; font-weight: 700; color: white; background: var(--accent);
  padding: 8px 18px; border-radius: var(--r-f);
  box-shadow: 0 2px 8px rgba(17,24,39,0.12); transition: opacity .15s;
}
.btn-accent-sm:hover { opacity: 0.9; }

/* HERO */
.home-hero { background: var(--white); padding: 48px 24px 40px; }
.home-hero-inner { max-width: 1200px; margin: 0 auto; }
.home-hero-left { max-width: 560px; }
.home-hero-right { display: none; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-l); border: 1px solid var(--accent-b);
  padding: 5px 12px; border-radius: var(--r-f); margin-bottom: 20px;
}
.home-h1 {
  font-size: clamp(32px,8vw,56px); font-weight: 800;
  line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 18px;
}
.home-h1 em { font-style: normal; color: var(--accent); }
.home-sub {
  font-size: 16px; color: var(--text-2); line-height: 1.7; margin-bottom: 32px;
  max-width: 480px; font-weight: 400;
}
.home-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.btn-accent-lg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; color: white; background: var(--accent);
  padding: 14px 28px; border-radius: var(--r); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(17,24,39,0.16); transition: all .15s;
}
.btn-accent-lg:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-accent-lg.white { background: white; color: var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn-ghost-lg {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--text-2);
  padding: 14px 24px; border-radius: var(--r);
  border: 1.5px solid var(--border-2); background: transparent; transition: all .15s;
}
.btn-ghost-lg:hover { color: var(--text); border-color: var(--text-3); }
.hero-trust-row { display: flex; flex-wrap: wrap; gap: 16px; }
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--text-3);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }

/* APP PREVIEW WIDGET */
.hero-app-preview {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 420px;
}
.hap-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.hap-dots { display: flex; gap: 5px; }
.hap-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); }
.hap-title { flex: 1; font-size: 12px; font-weight: 700; color: var(--text-2); text-align: center; }
.hap-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  background: var(--green-d); color: var(--green); border: 1px solid var(--green-b);
  padding: 2px 7px; border-radius: 5px;
}
.hap-savings-card {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  padding: 18px 16px; margin: 12px; border-radius: var(--r-lg);
}
.hap-sc-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.hap-sc-amount { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: white; margin-bottom: 4px; }
.hap-sc-sub { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; }
.hap-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; padding: 0 12px 10px; }
.hap-kpi { background: var(--bg); border-radius: var(--r); padding: 8px 6px; text-align: center; }
.hap-kpi-lbl { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.hap-kpi-val { display: block; font-size: 12px; font-weight: 800; color: var(--text); }
.hap-kpi-val.teal { color: var(--accent); }
.hap-kpi-val.blue { color: var(--blue); }
.hap-kpi-val.green { color: var(--green); }
.hap-bar-row { display: flex; align-items: center; gap: 8px; padding: 0 12px 12px; }
.hap-bar-track { flex: 1; height: 7px; background: var(--bg-2); border-radius: 4px; display: flex; overflow: hidden; }
.hap-bar-fixed { background: var(--accent); }
.hap-bar-var { background: var(--blue); }
.hap-bar-pct { font-size: 11px; font-weight: 700; color: var(--text-3); }
.hap-cats { padding: 0 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.hap-cat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--bg); border-radius: var(--r); }
.hap-cat.active { background: var(--accent-l); border: 1px solid var(--accent-b); }
.hap-badge { font-size: 8px; font-weight: 700; letter-spacing: 0.08em; padding: 2px 6px; border-radius: 5px; flex-shrink: 0; }
.hap-badge.fixed { background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-b); }
.hap-badge.variable { background: var(--blue-d); color: var(--blue); border: 1px solid var(--blue-b); }
.hap-cname { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-2); }
.hap-cat-right { display: flex; align-items: baseline; gap: 1px; }
.hap-spent { font-size: 12px; font-weight: 700; color: var(--text); }
.hap-spent.warn { color: var(--amber); }
.hap-of { font-size: 11px; color: var(--text-3); }

/* HOME SECTIONS */
.home-features-section { padding: 80px 24px; background: var(--white); }
.home-how-section { padding: 64px 24px; background: var(--bg); }
.home-section-wrap { max-width: 1200px; margin: 0 auto; }
.home-section-header { margin-bottom: 48px; }
.home-section-header.centered { text-align: center; }
.section-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.section-h2 { font-size: clamp(26px,4vw,38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.section-sub { font-size: 15px; color: var(--text-2); line-height: 1.7; max-width: 560px; }
.home-section-header.centered .section-sub { margin: 0 auto; }

/* ── NEW FEATURES LAYOUT: two-column alternating rows ── */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}
.feature-card:first-child { border-top: 1px solid var(--border); }
.feature-card:hover { background: none; transform: none; box-shadow: none; }
.feature-card-bank { border-bottom: none; }
.fc-icon {
  width: 48px; height: 48px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 0; margin-top: 2px;
}
.fc-icon.teal  { background: var(--accent-l); color: var(--accent); }
.fc-icon.blue  { background: var(--blue-d);   color: var(--blue); }
.fc-icon.green { background: var(--green-d);  color: var(--green); }
.fc-icon.amber { background: var(--amber-d);  color: var(--amber); }
.fc-icon.purple { background: var(--accent-l); color: var(--accent); }
.fc-content { flex: 1; }
.fc-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.fc-body  { font-size: 14px; color: var(--text-2); line-height: 1.65; max-width: 560px; }

/* On desktop: two-column feature grid */
@media (min-width: 768px) {
  .features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    column-gap: 48px;
  }
  .feature-card { padding: 28px 0; }
  .feature-card:nth-child(odd):not(:first-child) { border-top: none; }
  .feature-card:nth-child(2) { border-top: 1px solid var(--border); }
  .feature-card-bank { border-bottom: 1px solid transparent; }
  .fc-body { max-width: none; }
}

.steps-row { display: flex; flex-direction: column; gap: 20px; }
.step-arrow { display: none; }
.step-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.step-num { font-size: 36px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em; margin-bottom: 12px; font-family: var(--fm); opacity: 0.35; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-body { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.home-cta-section { padding: 72px 24px; background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); text-align: center; }
.home-cta-inner { max-width: 600px; margin: 0 auto; }
.home-cta-h2 { font-size: clamp(26px,4vw,40px); font-weight: 800; letter-spacing: -0.03em; color: white; line-height: 1.15; margin-bottom: 12px; }
.home-cta-sub { font-size: 16px; color: rgba(255,255,255,0.7); margin-bottom: 32px; }
.home-cta-signin { font-size: 14px; color: rgba(255,255,255,0.6); margin-top: 16px; }
.home-cta-signin a { color: white; font-weight: 700; text-decoration: underline; }
/* ── FOOTER ── */
.home-footer {
  background: #0f172a;
  padding: 0;
}

.home-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

/* Brand column */
.footer-brand { max-width: 280px; }
.footer-wordmark {
  font-size: 18px; font-weight: 800;
  letter-spacing: -0.02em; color: white;
  margin-bottom: 14px;
}
.footer-wordmark span { color: var(--accent); }
.footer-tagline {
  font-size: 13px; color: rgba(255,255,255,0.45);
  line-height: 1.7; margin-bottom: 20px; font-weight: 400;
}
.footer-social { display: flex; gap: 8px; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); transition: all .15s;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.12); color: white; }

/* Link columns */
.footer-col { }
.footer-col-heading {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: white; margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 14px; color: rgba(255,255,255,0.5);
  font-weight: 400; transition: color .15s;
  text-decoration: none;
}
.footer-links a:hover { color: white; }

/* Trust list */
.footer-trust-list {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
}
.footer-trust-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 400;
}
.footer-trust-list li svg { color: var(--accent); flex-shrink: 0; }

/* Bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.25); font-weight: 400;
}
.footer-bottom-links {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.footer-bottom-links a {
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color .15s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.75); }

/* Tablet: 2 columns */
@media (min-width: 640px) {
  .home-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .footer-brand { grid-column: 1 / -1; max-width: 100%; }
  .footer-brand .footer-tagline { max-width: 480px; }
}

/* Desktop: all 5 columns in one row */
@media (min-width: 1024px) {
  .home-footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr 1.4fr;
    gap: 0 48px;
    padding: 72px 48px 56px;
    align-items: start;
  }
  .footer-brand { grid-column: auto; max-width: none; }
  .footer-brand .footer-tagline { max-width: none; }
  .footer-bottom-inner { padding: 20px 48px; }
}

/* ═══════════════════════════════════════════════════════
   AUTH SCREENS
   ═══════════════════════════════════════════════════════ */
.auth-screen { display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.auth-top-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: calc(var(--app-bar-h) + var(--safe-t)); padding-top: var(--safe-t);
  background: var(--white); border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.auth-back { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--text-2); border-radius: var(--r); transition: background .15s; }
.auth-back:active { background: var(--bg); }
.auth-body-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 32px 20px 40px; }
.auth-card { background: var(--white); border-radius: var(--r-xl); padding: 32px 28px; border: 1px solid var(--border); box-shadow: var(--shadow); width: 100%; max-width: 440px; }
.auth-title { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 5px; }
.auth-sub { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.auth-submit-btn {
  width: 100%; height: 52px; background: var(--accent); color: white;
  font-size: 15px; font-weight: 700; border-radius: var(--r); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px;
  box-shadow: 0 4px 14px rgba(17,24,39,0.16); transition: all .15s;
}
.auth-submit-btn:active { transform: scale(0.98); }
.auth-switch { font-size: 14px; color: var(--text-3); text-align: center; margin-top: 16px; }
.auth-switch a { color: var(--accent); font-weight: 700; }

/* FIELDS */
.field-group { margin-bottom: 14px; }
.field-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-label { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); margin-bottom: 7px; }
.field-input {
  width: 100%; height: 48px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--r);
  padding: 0 14px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(17,24,39,0.07); background: var(--white); }
.field-input::placeholder { color: var(--text-3); }
.field-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }
.dollar-field-wrap { position: relative; }
.df-sign { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-weight: 600; }
.df-input { padding-left: 28px; }
.form-msg { border-radius: var(--r); padding: 11px 14px; font-size: 13px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 8px; border: 1.5px solid; line-height: 1.5; }
.form-msg svg { flex-shrink: 0; margin-top: 1px; }
.form-msg.error   { background: var(--red-d);   color: var(--red);   border-color: var(--red-b); }
.form-msg.success { background: var(--green-d);  color: var(--green); border-color: var(--green-b); }
.form-msg.info    { background: var(--blue-d);   color: var(--blue);  border-color: var(--blue-b); }
.btn-spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════
   APP SHELL — MOBILE FIRST
   ═══════════════════════════════════════════════════════ */
#screen-app.active { display: flex; flex-direction: column; }

/* SIDEBAR — hidden on mobile */
.sidebar { display: none; }

/* APP MAIN — full width on mobile */
.app-main { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }

/* MOBILE TOP BAR */
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: calc(var(--app-bar-h) + var(--safe-t)); padding-top: var(--safe-t);
  background: var(--white); border-bottom: 1px solid var(--border);
  flex-shrink: 0; z-index: 10; box-shadow: var(--shadow-sm);
}
.app-bar-left { display: flex; align-items: center; gap: 10px; }
.app-bar-month { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-3); background: var(--bg); border: 1px solid var(--border); padding: 4px 10px; border-radius: var(--r-f); }
.close-month-btn { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: white; background: var(--accent); padding: 8px 14px; border-radius: var(--r); box-shadow: 0 2px 8px rgba(17,24,39,0.16); transition: opacity .15s; }
.close-month-btn:active { opacity: 0.85; }

/* PANELS */
.panels-container { flex: 1; overflow: hidden; position: relative; min-height: 0; }
.panel { display: none; position: absolute; inset: 0; }
.panel.active { display: flex; flex-direction: column; }
.panel-scroll {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; background: var(--bg);
  padding: 20px 16px calc(var(--bnav-h) + var(--safe-b) + 20px);
}
.panel-header-row { margin-bottom: 20px; }
.panel-pg-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 2px; }
.panel-pg-sub { font-size: 13px; color: var(--text-3); font-weight: 500; }
.section-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }

/* CARDS */
.m-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.m-card-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }

/* PRIMARY BTN */
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 700; color: white; background: var(--accent); padding: 14px 20px; border-radius: var(--r); border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(17,24,39,0.1); transition: all .15s; }
.primary-btn:active { transform: scale(0.98); }
.primary-btn.full { width: 100%; }

/* BOTTOM NAV — mobile only */
.bottom-nav {
  display: flex; align-items: center; background: var(--white);
  border-top: 1px solid var(--border);
  height: calc(var(--bnav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  flex-shrink: 0; z-index: 10; box-shadow: 0 -4px 16px rgba(15,25,35,0.05);
}
.bnav-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--text-3); padding: 8px 0; min-height: 44px; transition: color .15s; }
.bnav-btn span { font-size: 10px; font-weight: 700; }
.bnav-btn.active { color: var(--accent); }
.bnav-center { flex-shrink: 0; }
.bnav-center-disc { width: 50px; height: 50px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(26,158,92,0.38); transition: transform .15s; }
.bnav-center:active .bnav-center-disc { transform: scale(0.92); }

/* ── OVERVIEW ── */
.savings-hero { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: var(--r-xl); padding: 22px 20px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(17,24,39,0.1); position: relative; overflow: hidden; }
.savings-hero::before { content:''; position:absolute; top:-40px; right:-40px; width:130px; height:130px; background:rgba(255,255,255,0.07); border-radius:50%; }
.sh-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.sh-amount { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; color: white; line-height: 1; margin-bottom: 6px; }
.sh-sub { font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 600; }
.no-budget-card { background: var(--white); border: 1.5px dashed var(--border-2); border-radius: var(--r-xl); padding: 36px 20px; text-align: center; margin-bottom: 14px; }
.no-budget-card svg { color: var(--text-3); margin-bottom: 14px; }
.nbc-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.nbc-sub { font-size: 13px; color: var(--text-2); margin-bottom: 20px; line-height: 1.6; }
.nbc-btn { background: var(--accent); color: white; font-size: 13px; font-weight: 700; padding: 12px 24px; border-radius: var(--r); border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(17,24,39,0.1); }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 12px; }
.kpi-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 8px; text-align: center; box-shadow: var(--shadow-sm); }
.kc-label { display: block; font-size: 8px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 5px; }
.kc-value { display: block; font-size: 14px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.kc-value.teal { color: var(--accent); }
.kc-value.blue { color: var(--blue); }
.kc-value.green { color: var(--green); }
.util-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow-sm); }
.util-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.util-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.util-pct { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.util-bar { height: 10px; background: var(--bg); border-radius: 5px; display: flex; overflow: hidden; margin-bottom: 10px; }
.util-bar-fixed { background: var(--accent); transition: width .5s; }
.util-bar-var { background: var(--blue); transition: width .5s; }
.util-legend { display: flex; gap: 14px; font-size: 11px; color: var(--text-3); font-weight: 600; flex-wrap: wrap; }
.ul-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 4px; }
.ul-dot.teal { background: var(--accent); }
.ul-dot.blue { background: var(--blue); }
.ul-free { color: var(--green); font-weight: 700; margin-left: auto; }
.util-legend b { color: var(--text); font-weight: 700; }
.ov-cats-list { display: flex; flex-direction: column; gap: 8px; }
.ov-cat-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.ov-cat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ov-cat-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 6px; flex-shrink: 0; }
.ov-cat-badge.fixed { background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-b); }
.ov-cat-badge.variable { background: var(--blue-d); color: var(--blue); border: 1px solid var(--blue-b); }
.ov-cat-name { flex: 1; font-size: 14px; font-weight: 700; }
.ov-cat-auto-tag { font-size: 10px; font-weight: 700; color: var(--accent); background: var(--accent-l); padding: 2px 8px; border-radius: var(--r-f); }
.ov-cat-amts { display: flex; }
.ov-amt { flex: 1; }
.ov-amt-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 2px; }
.ov-amt-val { font-size: 14px; font-weight: 800; display: block; letter-spacing: -0.01em; }
.ov-amt-val.red { color: var(--red); }
.ov-amt-val.green { color: var(--green); }
.ov-cat-bar-track { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.ov-cat-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.reports-shortcut-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow-sm); }
.reports-shortcut-btn:active { background: var(--bg); }
.rsb-left { display: flex; align-items: center; gap: 12px; }
.rsb-icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--accent-l); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.rsb-title { font-size: 14px; font-weight: 700; text-align: left; }
.rsb-sub { font-size: 12px; color: var(--text-3); text-align: left; }

/* ── SETUP ── */
.two-col-layout { display: flex; flex-direction: column; gap: 0; }
.two-col-left, .two-col-right { }
.full-height-card { }
.income-row { display: flex; align-items: center; margin-bottom: 16px; }
.income-dollar-sign { font-size: 28px; font-weight: 700; color: var(--text-3); margin-right: 4px; }
.income-big-input { flex: 1; background: none; border: none; outline: none; font-family: var(--ff); font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--text); padding: 0; min-width: 0; }
.income-big-input::placeholder { color: var(--bg-2); }
.alloc-bar-section { }
.alloc-bar-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.alloc-bar-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.alloc-remaining-val { font-size: 13px; font-weight: 800; }
.alloc-remaining-val.green { color: var(--green); }
.alloc-remaining-val.red { color: var(--red); }
.alloc-track { height: 10px; background: var(--bg); border-radius: 5px; display: flex; overflow: hidden; }
.alloc-fixed { background: var(--accent); transition: width .3s; }
.alloc-var { background: var(--blue); transition: width .3s; }
.alloc-sublabels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; color: var(--text-3); font-weight: 600; }
.type-segs { display: flex; gap: 8px; margin-bottom: 10px; }
.type-seg { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: var(--r); font-size: 13px; font-weight: 700; border: 1.5px solid var(--border); color: var(--text-2); background: var(--bg); cursor: pointer; transition: all .15s; }
.type-seg.active { background: var(--accent-l); color: var(--accent); border-color: var(--accent-b); }
.type-hint { font-size: 12px; color: var(--text-3); line-height: 1.55; }
.type-hint strong { color: var(--accent); font-weight: 700; }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.list-empty { font-size: 13px; color: var(--text-3); text-align: center; padding: 20px 0; font-weight: 600; }
.cat-item { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); }
.cat-item-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 6px; flex-shrink: 0; }
.cat-item-badge.fixed { background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-b); }
.cat-item-badge.variable { background: var(--blue-d); color: var(--blue); border: 1px solid var(--blue-b); }
.cat-item-name { flex: 1; font-size: 14px; font-weight: 700; }
.cat-item-amt { font-size: 13px; font-weight: 700; color: var(--text-2); }
.cat-item-del { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--text-3); flex-shrink: 0; transition: all .15s; }
.cat-item-del:active { background: var(--red-d); color: var(--red); }
.setup-totals { }
.st-divider { border-top: 1px solid var(--border); margin: 14px 0; }
.st-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--text-2); }
.st-val { font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.st-row.green-row { color: var(--green); }
.st-row.green-row .st-val { color: var(--green); }

/* ── LOG ── */
.log-amount-card { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border: none; box-shadow: 0 8px 24px rgba(17,24,39,0.1); text-align: center; }
.log-amount-card .m-card-label { color: rgba(255,255,255,0.65); }
.big-amt-row { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 8px 0; }
.big-dollar { font-size: 36px; font-weight: 700; color: rgba(255,255,255,0.5); }
.big-amt-input { background: none; border: none; outline: none; font-family: var(--ff); font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: white; text-align: center; width: 200px; min-width: 0; caret-color: white; }
.big-amt-input::placeholder { color: rgba(255,255,255,0.25); }
.remaining-strip { background: var(--bg); border-radius: var(--r); padding: 12px 14px; margin-bottom: 14px; border: 1px solid var(--border); }
.rs-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.rs-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.rs-value { font-size: 16px; font-weight: 800; color: var(--green); letter-spacing: -0.02em; }
.rs-value.warn { color: var(--amber); }
.rs-value.red  { color: var(--red); }
.rs-track { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.rs-fill  { height: 100%; border-radius: 3px; transition: width .4s; }
.txn-list { display: flex; flex-direction: column; gap: 8px; }
.txn-item { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px 14px; }
.txn-icon { width: 38px; height: 38px; border-radius: var(--r); background: var(--blue-d); color: var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.txn-info { flex: 1; min-width: 0; }
.txn-desc { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-meta { font-size: 11px; color: var(--text-3); font-weight: 500; margin-top: 1px; }
.txn-amt  { font-size: 14px; font-weight: 800; color: var(--red); flex-shrink: 0; }
.txn-empty { font-size: 13px; color: var(--text-3); text-align: center; padding: 24px 0; font-weight: 600; }

/* ── CATEGORIES ── */
.cat-detail-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.cdc-header { padding: 16px; }
.cdc-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cdc-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; padding: 3px 7px; border-radius: 6px; }
.cdc-badge.fixed { background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-b); }
.cdc-badge.variable { background: var(--blue-d); color: var(--blue); border: 1px solid var(--blue-b); }
.cdc-name { font-size: 15px; font-weight: 800; flex: 1; letter-spacing: -0.01em; }
.cdc-amts-row { display: flex; }
.cdc-amt-col { flex: 1; }
.cda-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 2px; }
.cda-val { font-size: 15px; font-weight: 800; display: block; letter-spacing: -0.01em; }
.cda-val.red { color: var(--red); }
.cda-val.green { color: var(--green); }
.cdc-bar-row { padding: 0 16px 12px; }
.cdc-bar-track { height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.cdc-bar-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.cdc-txns { border-top: 1px solid var(--border); }
.cdc-txn-row { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.cdc-txn-row:last-child { border-bottom: none; }
.cdc-txn-desc { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cdc-txn-date { font-size: 11px; color: var(--text-3); }
.cdc-txn-amt  { font-size: 13px; font-weight: 700; color: var(--red); }
.cdc-fixed-note { padding: 14px 16px; font-size: 12px; color: var(--accent); font-weight: 700; }
.cdc-no-txns    { padding: 14px 16px; font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ── REPORTS ── */
.reports-list { display: flex; flex-direction: column; gap: 10px; }
.report-row { display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; cursor: pointer; box-shadow: var(--shadow-sm); transition: all .15s; }
.report-row:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.report-row:active { background: var(--bg); }
.report-row-icon { width: 42px; height: 42px; border-radius: var(--r); background: var(--accent-l); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-row-info { flex: 1; min-width: 0; }
.report-row-title { font-size: 14px; font-weight: 700; }
.report-row-meta  { font-size: 11px; color: var(--text-3); font-weight: 500; }
.report-row-stats { display: flex; gap: 20px; text-align: right; }
.rrs-col .rrs-lbl { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); display: block; }
.rrs-col .rrs-val { font-size: 15px; font-weight: 800; display: block; letter-spacing: -0.01em; }
.rrs-val.green { color: var(--green); }
.reports-empty { text-align: center; padding: 60px 20px; color: var(--text-3); }
.reports-empty h3 { font-size: 18px; font-weight: 700; color: var(--text-2); margin: 14px 0 8px; }
.reports-empty p { font-size: 13px; }

/* ── PROFILE ── */
.profile-layout { display: flex; flex-direction: column; gap: 0; }
.profile-left-col, .profile-right-col { }
.profile-hero-card { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: var(--r-xl); padding: 28px 20px; text-align: center; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(17,24,39,0.1); position: relative; overflow: hidden; }
.profile-hero-card::before { content:''; position:absolute; top:-40px; right:-40px; width:140px; height:140px; background:rgba(255,255,255,0.07); border-radius:50%; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 3px solid rgba(255,255,255,0.35); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: white; margin: 0 auto 14px; }
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: white; margin-bottom: 4px; }
.profile-email-txt { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.profile-joined-txt { font-size: 12px; color: rgba(255,255,255,0.5); }
.profile-stats-strip { display: flex; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.pss-item { flex: 1; padding: 14px 8px; text-align: center; }
.pss-val { display: block; font-size: 18px; font-weight: 800; color: var(--accent); margin-bottom: 3px; letter-spacing: -0.02em; }
.pss-val.green { color: var(--green); }
.pss-lbl { display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.pss-div { width: 1px; background: var(--border); }
.sec-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sec-row.no-border { border-bottom: none; padding-bottom: 0; }
.sec-icon-wrap { width: 36px; height: 36px; border-radius: var(--r); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sec-icon-wrap.teal  { background: var(--accent-l); color: var(--accent); }
.sec-icon-wrap.green { background: var(--green-d); color: var(--green); }
.sec-icon-wrap.blue  { background: var(--blue-d); color: var(--blue); }
.sec-info { flex: 1; }
.sec-lbl { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.sec-sub { font-size: 11px; color: var(--text-3); }
.sec-badge { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; background: var(--green-d); color: var(--green); border: 1px solid var(--green-b); padding: 3px 8px; border-radius: 6px; }
.activity-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.activity-item { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); padding: 11px 14px; box-shadow: var(--shadow-sm); }
.act-type { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); width: 68px; flex-shrink: 0; }
.act-desc { flex: 1; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.act-date { font-size: 11px; color: var(--text-3); flex-shrink: 0; }
.signout-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 8px 0; padding: 14px; border-radius: var(--r); font-size: 14px; font-weight: 700; color: var(--red); border: 1.5px solid var(--red-b); background: var(--red-d); }
.signout-btn:active { opacity: 0.8; }

/* ── MODALS ── */
.sheet-backdrop { position: fixed; inset: 0; z-index: 200; background: rgba(15,25,35,0.45); display: flex; align-items: flex-end; justify-content: center; }
.modal-box {
  background: var(--white); border: 1px solid var(--border);
  width: 100%; max-height: 92vh;
  display: flex; flex-direction: column;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -8px 40px rgba(15,25,35,0.12);
  overflow: hidden;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 0; flex-shrink: 0; }
.modal-close-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--text-2); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.modal-close-btn:hover { background: var(--border-2); }
.modal-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 24px 28px; }
.confirm-modal-box { max-width: 440px; border-radius: var(--r-xl); padding: 28px; width: calc(100% - 32px); margin: 0 auto 16px; max-height: none; }
.confirm-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 10px; }
.confirm-body-txt { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.confirm-btn-row { display: flex; flex-direction: column; gap: 8px; }
.confirm-ok-btn { width: 100%; height: 52px; background: var(--accent); color: white; font-size: 15px; font-weight: 700; border-radius: var(--r); border: none; cursor: pointer; box-shadow: 0 4px 14px rgba(17,24,39,0.1); }
.confirm-cancel-btn { width: 100%; height: 48px; color: var(--text-2); font-size: 14px; font-weight: 700; border: 1.5px solid var(--border); border-radius: var(--r); cursor: pointer; background: var(--bg); }

/* Report modal content */
.report-title { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
.report-period-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.report-savings-banner { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); border-radius: var(--r-lg); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; box-shadow: 0 4px 14px rgba(17,24,39,0.08); }
.rsb-banner-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.rsb-banner-amt { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: white; }
.report-sec-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin: 18px 0 10px; }
.report-metric { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); }
.report-metric:last-child { border-bottom: none; }
.rm-val { font-size: 14px; font-weight: 800; color: var(--text); }
.rm-val.green { color: var(--green); }
.rm-val.red { color: var(--red); }
.report-cat-block { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; }
.rcb-name { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.rcb-type { font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); }
.rcb-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin: 8px 0; }
.rcb-bar-fill { height: 100%; border-radius: 2px; }
.rcb-nums { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--text-3); }
.report-alert { border-radius: var(--r); padding: 12px 14px; margin-bottom: 8px; border: 1.5px solid; }
.report-alert.struggle  { background: var(--red-d);   border-color: var(--red-b); }
.report-alert.recommend { background: var(--amber-d); border-color: var(--amber-b); }
.ra-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.report-alert.struggle  .ra-title { color: var(--red); }
.report-alert.recommend .ra-title { color: var(--amber); }
.ra-body { font-size: 12px; color: var(--text-2); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   DESKTOP — ≥1024px
   Sidebar nav, two-column content, full marketing page
   ═══════════════════════════════════════════════════════ */
@media (min-width: 1024px) {

  /* ─ HOME ─ */
  body { overflow: auto; }
  #screen-home.active { overflow-y: auto; }

  .home-header { padding: 0 48px; }
  .home-nav-links { display: flex; }

  .home-hero { padding: 80px 48px 80px; }
  .home-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
  .home-hero-left { max-width: none; }
  .home-hero-right { display: flex; justify-content: flex-end; }

  .home-features-section { padding: 96px 48px; }
  .home-how-section { padding: 96px 48px; }
  .features-grid { grid-template-columns: repeat(4,1fr); gap: 16px; }
  .steps-row { flex-direction: row; align-items: flex-start; gap: 0; }
  .step-card { flex: 1; }
  .step-arrow { display: flex; align-items: center; justify-content: center; padding: 0 16px; color: var(--text-3); flex-shrink: 0; margin-top: 28px; }
  .home-cta-section { padding: 96px 48px; }

  /* ─ AUTH ─ */
  .auth-body-wrap { padding: 60px 48px; align-items: center; }
  .auth-card { padding: 40px 36px; }

  /* ─ APP SHELL ─ */
  #screen-app.active { flex-direction: row; overflow: hidden; }

  /* SIDEBAR */
  .sidebar {
    display: flex; flex-direction: column;
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--white);
    border-right: 1px solid var(--border);
    height: 100%; overflow-y: auto;
    box-shadow: var(--shadow-sm);
  }
  .sidebar-top {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
  .sidebar-month {
    font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--text-3); margin-top: 6px;
  }
  .sidebar-nav { flex: 1; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
  .snav-btn {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 11px 12px; border-radius: var(--r);
    font-size: 14px; font-weight: 600; color: var(--text-2);
    text-align: left; transition: all .15s;
  }
  .snav-btn svg { flex-shrink: 0; opacity: 0.6; }
  .snav-btn:hover { background: var(--bg); color: var(--text); }
  .snav-btn:hover svg { opacity: 0.8; }
  .snav-btn.active { background: var(--accent-l); color: var(--accent); }
  .snav-btn.active svg { opacity: 1; }
  .sidebar-bottom {
    padding: 12px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 6px;
  }
  .sidebar-close-month {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 12px; border-radius: var(--r);
    font-size: 13px; font-weight: 700; color: white; background: var(--accent);
    box-shadow: 0 2px 8px rgba(17,24,39,0.1); transition: opacity .15s;
  }
  .sidebar-close-month:hover { opacity: 0.9; }
  .sidebar-signout {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 10px 12px; border-radius: var(--r);
    font-size: 13px; font-weight: 600; color: var(--text-3); transition: all .15s;
  }
  .sidebar-signout:hover { background: var(--red-d); color: var(--red); }

  /* APP MAIN */
  .app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
  .app-bar { display: none; } /* hide mobile bar on desktop */
  .bottom-nav { display: none; } /* hide mobile bottom nav on desktop */

  .panels-container { flex: 1; position: relative; overflow: hidden; }
  .panel { position: absolute; inset: 0; }
  .panel-scroll {
    padding: 32px 40px 40px;
    height: 100%; overflow-y: auto;
    background: var(--bg);
  }
  .panel-header-row { margin-bottom: 28px; }
  .panel-pg-title { font-size: 28px; }

  /* TWO-COLUMN CONTENT */
  .two-col-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .full-height-card { height: 100%; display: flex; flex-direction: column; }
  .full-height-card .cat-list { flex: 1; }

  /* OVERVIEW - two column categories */
  #panel-overview .panel-scroll { max-width: 1200px; }

  /* PROFILE two-column */
  .profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
  .profile-left-col .section-label { margin-top: 0; }
  .signout-btn { margin-top: 0; }

  /* MODALS - center on desktop, not full bottom sheet */
  .sheet-backdrop { align-items: center; }
  .modal-box {
    max-width: 680px;
    border-radius: var(--r-xl);
    max-height: 85vh;
    width: calc(100% - 64px);
  }
  .modal-header { padding: 24px 28px 0; }
  .modal-scroll { padding: 16px 28px 32px; }
  .confirm-modal-box { margin: 0; width: 100%; }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1023px) {
  .home-header { padding: 0 32px; }
  .home-hero { padding: 56px 32px 48px; }
  .home-features-section, .home-how-section { padding: 64px 32px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .home-footer-inner { padding: 0 32px; }
  .auth-body-wrap { padding: 40px 32px; }
}

/* ═══════════════════════════════════════════════════════
   PLAID / BANK SYNC STYLES
   ═══════════════════════════════════════════════════════ */

/* Connected bank item card */
.bank-item-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 16px;
  margin-bottom: 10px; box-shadow: var(--shadow-sm);
}
.bic-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bic-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--accent-l); border: 1px solid var(--accent-b);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.bic-info { flex: 1; }
.bic-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.bic-meta { font-size: 11px; color: var(--text-3); font-weight: 500; }
.bic-disconnect {
  font-size: 11px; font-weight: 700; color: var(--red);
  padding: 6px 12px; border-radius: var(--r);
  border: 1px solid var(--red-b); background: var(--red-d);
  transition: opacity .15s; cursor: pointer;
}
.bic-disconnect:active { opacity: 0.75; }
.bic-accounts { display: flex; flex-wrap: wrap; gap: 6px; }
.bic-account-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-2);
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-f);
}
.bic-account-chip svg { color: var(--text-3); }

/* Sync bar */
.sync-bar-inner {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 12px 16px;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.sync-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  padding: 7px 14px; border-radius: var(--r);
  border: 1.5px solid var(--accent-b); background: var(--accent-l);
  transition: opacity .15s; cursor: pointer;
}
.sync-btn:active { opacity: 0.75; }
.sync-btn.loading svg { animation: spin .7s linear infinite; }

/* Count pill */
.count-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent); color: white;
  font-size: 10px; font-weight: 700; border-radius: var(--r-f);
  margin-left: 6px;
}

/* Pending transaction list */
.pending-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.pending-txn-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.pending-txn-item.assigned { border-color: var(--accent-b); background: var(--accent-l); }
.pending-txn-item.dismissed { opacity: 0.45; }
.ptx-row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ptx-logo {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.ptx-logo img { width: 100%; height: 100%; object-fit: contain; }
.ptx-logo svg { color: var(--text-3); }
.ptx-info { flex: 1; min-width: 0; }
.ptx-merchant { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptx-meta { font-size: 11px; color: var(--text-3); font-weight: 500; }
.ptx-amount { font-size: 16px; font-weight: 800; color: var(--red); flex-shrink: 0; }
.ptx-row2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ptx-cat-select {
  flex: 1; min-width: 140px; height: 38px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 0 32px 0 10px;
  font-size: 13px; font-weight: 600; color: var(--text);
  outline: none; appearance: none; 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' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
.ptx-cat-select:focus { border-color: var(--accent); }
.ptx-cat-select.has-value { border-color: var(--accent-b); background-color: var(--accent-l); }
.ptx-always-wrap { display: flex; align-items: center; gap: 5px; }
.ptx-always-wrap input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.ptx-always-label { font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }

/* Confirm / dismiss bar */
.pending-confirm-bar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 8px; flex-wrap: wrap;
}
.btn-dismiss-all {
  font-size: 13px; font-weight: 700; color: var(--text-2);
  padding: 12px 20px; border-radius: var(--r);
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all .15s;
}
.btn-dismiss-all:active { background: var(--red-d); color: var(--red); border-color: var(--red-b); }

/* Rules list */
.rules-desc { font-size: 12px; color: var(--text-3); margin-bottom: 10px; }
.rules-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.rule-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
  box-shadow: var(--shadow-sm);
}
.rule-merchant { flex: 1; font-size: 13px; font-weight: 600; color: var(--text); }
.rule-arrow { color: var(--text-3); font-size: 13px; }
.rule-category { font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-l); padding: 3px 9px; border-radius: var(--r-f); }
.rule-delete { color: var(--text-3); width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; transition: all .15s; }
.rule-delete:active { background: var(--red-d); color: var(--red); }
.rules-empty { font-size: 13px; color: var(--text-3); font-weight: 500; padding: 12px 0; }

/* Sidebar nav count badge */
.snav-count {
  margin-left: auto; background: var(--accent); color: white;
  font-size: 9px; font-weight: 700; min-width: 18px; height: 18px;
  border-radius: var(--r-f); display: inline-flex; align-items: center;
  justify-content: center; padding: 0 5px;
}

/* Bottom nav dot badge */
.bnav-rel { position: relative; display: inline-flex; }
.bnav-dot {
  position: absolute; top: -2px; right: -3px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}

/* Plaid connecting overlay */
.plaid-loading {
  display: flex; align-items: center; gap: 10px;
  background: var(--accent-l); border: 1.5px solid var(--accent-b);
  border-radius: var(--r-lg); padding: 16px 18px; margin-bottom: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent);
}

/* ═══════════════════════════════════════════════════════
   HOME PAGE — BANK SYNC SECTION
   ═══════════════════════════════════════════════════════ */

/* 5th feature card — purple accent for bank */
.fc-icon.purple { background: var(--accent-l); color: var(--accent); }

/* Feature grid — allow 5 cards on wide screens */
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(4, 1fr); }
  .feature-card-bank { grid-column: span 1; }
}

/* BANK SYNC SECTION */
.bank-sync-section {
  padding: 96px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.bank-sync-inner {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 1200px;
  margin: 0 auto;
}

.bank-sync-left { max-width: 600px; }
.bank-sync-right { display: flex; justify-content: center; }

.bank-sync-body {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 20px;
  font-weight: 400;
}

/* Bullet points */
.bank-sync-bullets { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.bsb-item { display: flex; gap: 14px; align-items: flex-start; }
.bsb-icon {
  width: 36px; height: 36px; border-radius: var(--r);
  background: var(--accent-l); color: var(--accent);
  border: 1px solid var(--accent-b);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.bsb-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bsb-body { font-size: 13px; color: var(--text-2); line-height: 1.65; }

/* Bank sync preview widget */
.bank-sync-preview {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
}
.bsp-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.bsp-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border-2); flex-shrink: 0;
}
.bsp-dot.active {
  background: var(--green);
  box-shadow: 0 0 7px rgba(6,193,103,0.5);
}
.bsp-title { font-size: 13px; font-weight: 700; color: var(--text); flex: 1; }
.bsp-count {
  font-size: 11px; font-weight: 700;
  background: var(--accent); color: white;
  padding: 2px 8px; border-radius: var(--r-f);
}

.bsp-txns { padding: 8px 12px; display: flex; flex-direction: column; gap: 6px; }
.bsp-txn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--r);
  gap: 10px;
}
.bsp-txn.confirmed { background: var(--green-d); border: 1px solid var(--green-b); }
.bsp-txn.pending   { background: var(--bg); border: 1px solid var(--border); }

.bsp-txn-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.bsp-txn-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bsp-txn-icon.grocery  { background: var(--green-d);  color: var(--green); }
.bsp-txn-icon.dining   { background: var(--amber-d);  color: var(--amber); }
.bsp-txn-icon.gas      { background: var(--blue-d);   color: var(--blue); }
.bsp-txn-icon.sub      { background: var(--accent-l); color: var(--accent); }

.bsp-txn-name { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsp-txn-meta { font-size: 10px; color: var(--text-3); font-weight: 500; }

.bsp-txn-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex-shrink: 0; }
.bsp-txn-amt { font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: -0.01em; }
.bsp-txn-status {
  font-size: 9px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 4px;
}
.bsp-txn-status.confirmed { background: var(--green-d); color: var(--green); }
.bsp-txn-status.pending   { background: var(--accent-l); color: var(--accent); }

.bsp-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px; gap: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-wrap: nowrap;
}
.bsp-footer-left {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--text-3); font-weight: 500;
  min-width: 0; overflow: hidden;
}
.bsp-footer-left span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bsp-footer-left svg { color: var(--green); flex-shrink: 0; }
.bsp-confirm-btn {
  font-size: 12px; font-weight: 700;
  background: var(--accent); color: white;
  padding: 7px 16px; border-radius: var(--r);
  border: none; cursor: default; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(17,24,39,0.1);
  white-space: nowrap;
}

/* Desktop: side by side */
@media (min-width: 1024px) {
  .bank-sync-section { padding: 96px 48px; }
  .bank-sync-inner {
    flex-direction: row;
    align-items: center;
    gap: 72px;
  }
  .bank-sync-left { flex: 1; max-width: none; }
  .bank-sync-right { flex-shrink: 0; }
}

/* Mobile */
@media (max-width: 1023px) {
  .bank-sync-section { padding: 56px 24px; }
  .bank-sync-preview { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════
   REGISTRATION — MULTI-STEP FLOW
   ═══════════════════════════════════════════════════════ */

/* Step indicator bar */
.reg-steps-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; padding: 16px 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.reg-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex: 1; max-width: 120px;
}
.reg-step-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--border);
  color: var(--text-3); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.reg-step span {
  font-size: 11px; font-weight: 600; color: var(--text-3);
  text-align: center; transition: color .25s;
  white-space: nowrap;
}
.reg-step.active .reg-step-dot {
  background: var(--accent); border-color: var(--accent); color: white;
}
.reg-step.active span { color: var(--accent); }
.reg-step.done .reg-step-dot {
  background: var(--green-d); border-color: var(--green-b); color: var(--green);
}
.reg-step.done span { color: var(--green); }
.reg-step-line {
  height: 2px; flex: 1; background: var(--border);
  margin-top: -18px; max-width: 40px;
}

/* Household name suggestions */
.reg-household-examples {
  display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 16px;
}
.reg-household-examples span {
  font-size: 12px; font-weight: 600; color: var(--accent);
  background: var(--accent-l); border: 1px solid var(--accent-b);
  padding: 4px 11px; border-radius: var(--r-f);
  cursor: pointer; transition: all .15s;
}
.reg-household-examples span:active { opacity: 0.7; }

/* Skip button */
.reg-skip-btn {
  display: block; width: 100%; text-align: center;
  font-size: 13px; font-weight: 500; color: var(--text-3);
  padding: 10px; margin-top: 4px; cursor: pointer;
  border: none; background: none; transition: color .15s;
}
.reg-skip-btn:hover { color: var(--text-2); }

/* Add member row in step 3 */
.add-member-row {
  display: flex; flex-wrap: wrap; gap: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px;
  margin-bottom: 14px; flex-direction: column;
}
.add-member-btn {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: white;
  background: var(--accent); padding: 11px 18px;
  border-radius: var(--r); border: none; cursor: pointer;
  margin-top: 10px; align-self: flex-start;
  box-shadow: 0 2px 8px rgba(17,24,39,0.12); transition: opacity .15s;
}
.add-member-btn:active { opacity: 0.85; }

/* Member list in step 3 */
.reg-members-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.reg-member-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--green-d); border: 1px solid var(--green-b);
  border-radius: var(--r); padding: 10px 12px;
}
.reg-member-chip-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: white;
  font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.reg-member-chip-info { flex: 1; min-width: 0; }
.reg-member-chip-name { font-size: 13px; font-weight: 700; color: var(--text); }
.reg-member-chip-email { font-size: 11px; color: var(--text-3); font-weight: 500; }
.reg-member-chip-del {
  color: var(--text-3); cursor: pointer;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: all .15s; border: none; background: none;
}
.reg-member-chip-del:active { background: var(--red-d); color: var(--red); }

/* ═══════════════════════════════════════════════════════
   HOUSEHOLD MANAGEMENT — PROFILE PANEL
   ═══════════════════════════════════════════════════════ */

/* Household name row */
.household-name-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 4px;
}
.hh-name-lbl { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.hh-name-val { font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.01em; }
.hh-edit-btn {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: var(--accent);
  padding: 6px 12px; border-radius: var(--r);
  border: 1.5px solid var(--accent-b); background: var(--accent-l);
  cursor: pointer; white-space: nowrap; transition: opacity .15s;
}
.hh-edit-btn:active { opacity: 0.75; }

/* Members list in profile */
.hh-members-list { display: flex; flex-direction: column; gap: 8px; }
.hh-member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.hh-member-row:last-child { border-bottom: none; padding-bottom: 0; }
.hh-member-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-l); border: 1.5px solid var(--accent-b);
  color: var(--accent); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hh-member-avatar.sub {
  background: var(--blue-d); border-color: var(--blue-b); color: var(--blue);
}
.hh-member-info { flex: 1; min-width: 0; }
.hh-member-name { font-size: 13px; font-weight: 700; color: var(--text); }
.hh-member-email { font-size: 11px; color: var(--text-3); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-member-badge {
  font-size: 9px; font-weight: 700; letter-spacing: 0.07em;
  padding: 2px 8px; border-radius: var(--r-f); flex-shrink: 0;
}
.hh-member-badge.owner { background: var(--accent-l); color: var(--accent); border: 1px solid var(--accent-b); }
.hh-member-badge.member { background: var(--bg); color: var(--text-3); border: 1px solid var(--border); }
.hh-member-badge.sub { background: var(--blue-d); color: var(--blue); border: 1px solid var(--blue-b); }
.hh-member-del {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); cursor: pointer; flex-shrink: 0;
  border: none; background: none; transition: all .15s;
}
.hh-member-del:active { background: var(--red-d); color: var(--red); }

/* Add desc + ghost action button */
.hh-add-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; font-weight: 400; }
.btn-ghost-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--text-2);
  padding: 12px 16px; border-radius: var(--r);
  border: 1.5px solid var(--border); background: var(--bg);
  cursor: pointer; transition: all .15s;
}
.btn-ghost-action:active { border-color: var(--accent-b); color: var(--accent); background: var(--accent-l); }
/* ═══════════════════════════════════════════════════════
   2FA SCREEN
   ═══════════════════════════════════════════════════════ */

.twofa-icon-wrap {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  background: var(--accent-l); border: 1.5px solid var(--accent-b);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.twofa-input {
  font-family: var(--fm) !important;
  font-size: 22px !important;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   AUTH LEGAL NOTICE
   ═══════════════════════════════════════════════════════ */
.auth-legal-notice {
  font-size: 12px; color: var(--text-3); text-align: center;
  margin-top: 10px; line-height: 1.6;
}
.auth-legal-notice a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   MEMBER CHIP STATUS ICON
   ═══════════════════════════════════════════════════════ */
.reg-member-chip-status {
  color: var(--accent); display: flex; align-items: center;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   CANCEL / DELETE ACCOUNT CARD
   ═══════════════════════════════════════════════════════ */
.delete-account-card {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1.5px solid var(--red-b) !important;
  background: var(--red-d) !important;
}
.delete-account-icon {
  width: 40px; height: 40px; border-radius: var(--r);
  background: white; border: 1px solid var(--red-b);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.delete-account-info { flex: 1; min-width: 0; }
.delete-account-title {
  font-size: 14px; font-weight: 700; color: var(--red); margin-bottom: 4px;
}
.delete-account-sub {
  font-size: 12px; color: var(--text-2); line-height: 1.6;
}
.delete-account-btn {
  font-size: 12px; font-weight: 700; color: var(--red);
  background: white; border: 1.5px solid var(--red-b);
  padding: 8px 16px; border-radius: var(--r);
  flex-shrink: 0; cursor: pointer; transition: all .15s;
  align-self: center;
}
.delete-account-btn:hover { background: var(--red); color: white; }

/* ═══════════════════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--text);
  padding: 14px 20px;
  padding-bottom: calc(14px + var(--safe-b));
}
.cookie-banner-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
}
.cookie-banner-text {
  flex: 1; font-size: 13px; color: rgba(255,255,255,0.8);
  line-height: 1.5; margin: 0;
}
.cookie-accept-btn {
  font-size: 12px; font-weight: 700; color: var(--text);
  background: white; border: none;
  padding: 8px 18px; border-radius: var(--r);
  cursor: pointer; flex-shrink: 0; transition: opacity .15s;
}
.cookie-accept-btn:hover { opacity: 0.9; }

/* ═══════════════════════════════════════════════════════
   STATIC PAGES (privacy, terms, contact, security, support)
   Shared layout used across all static .html pages
   ═══════════════════════════════════════════════════════ */

.static-page {
  font-family: var(--ff, 'Plus Jakarta Sans', system-ui, sans-serif);
  background: var(--bg, #f5f7fa);
  color: var(--text, #111827);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}