@charset "UTF-8";

/* ════════════════════════════════════════════════════
   NEURO-WALLET: The 25-50-15-10 Protocol
   CSS Design System — Neuro-Minimalism Dark Theme
   ════════════════════════════════════════════════════ */

/* ════════════════════════════════════════════════════
   LANDING PAGE — Duolingo-style entry (askvinar SSO)
   ════════════════════════════════════════════════════ */

#landing-page {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.lp-scroll {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px 40px;
  max-width: 420px;
  margin: 0 auto;
}

/* Brand row */
.lp-brand-row {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px 0 0;
}

.lp-ecosystem {
  font-size: 11px;
  color: var(--text-ghost);
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 20px;
}

/* Brain animation */
.lp-brain-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0 8px;
}

.lp-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: lp-pulse 3s ease-in-out infinite;
}

.lp-ring-1 { width: 70px;  height: 70px;  border-color: rgba(57,255,20,0.5);  animation-delay: 0s; }
.lp-ring-2 { width: 90px;  height: 90px;  border-color: rgba(57,255,20,0.25); animation-delay: 0.6s; }
.lp-ring-3 { width: 110px; height: 110px; border-color: rgba(57,255,20,0.1);  animation-delay: 1.2s; }

@keyframes lp-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.06); opacity: 0.6; }
}

.lp-brain-icon {
  font-size: 44px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 16px rgba(57,255,20,0.5));
  animation: lp-float 4s ease-in-out infinite;
}

@keyframes lp-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

/* Title & tagline */
.lp-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-primary);
  margin: 0 0 8px;
  text-align: center;
}

.lp-tagline {
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  line-height: 1.3;
  margin: 0 0 8px;
}

.lp-sub {
  font-size: 13px;
  color: var(--text-ghost);
  text-align: center;
  margin: 0 0 16px;
}

/* Social proof bar */
.lp-proof {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(57,255,20,0.06);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: 20px;
  padding: 6px 14px;
  margin-bottom: 24px;
}

.lp-proof-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: lp-blink 1.5s ease-in-out infinite;
}

@keyframes lp-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

#lp-proof-text { font-size: 12px; color: var(--text-secondary); }

/* Primary CTA */
.lp-cta-section {
  width: 100%;
  margin-bottom: 20px;
}

.btn-lp-play {
  width: 100%;
  padding: 18px;
  background: var(--green);
  border: none;
  border-radius: 14px;
  color: #000;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 24px rgba(57,255,20,0.4);
  transition: all 0.15s;
  cursor: pointer;
}

.btn-lp-play:active {
  transform: scale(0.97);
  box-shadow: 0 0 12px rgba(57,255,20,0.3);
}

.lp-cta-note {
  text-align: center;
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 8px;
}

.btn-lp-premium {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 204, 102, 0.45);
  background: rgba(255, 204, 102, 0.1);
  color: #ffda8a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-lp-premium:active {
  transform: scale(0.98);
}

/* Divider */
.lp-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 4px 0 16px;
}

.lp-divider::before,
.lp-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.lp-divider span {
  font-size: 11px;
  color: var(--text-ghost);
  white-space: nowrap;
}

/* SSO Buttons */
.lp-sso, .auth-sso, .nudge-sso {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.btn-sso {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: 1px solid;
}

.btn-sso:active { transform: scale(0.98); }

.btn-sso-google {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.btn-sso-apple {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-primary);
}

.btn-sso-line {
  background: rgba(0,195,0,0.1);
  border-color: rgba(0,195,0,0.3);
  color: #00c300;
}

.sso-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.sso-line-icon { font-size: 14px; }

/* Login row */
.lp-login-row {
  font-size: 13px;
  color: var(--text-ghost);
  margin-bottom: 20px;
}

.lp-login-link {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0 0 0 4px;
}

/* Value props */
.lp-props {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 20px;
}

.lp-prop {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.lp-prop-icon { font-size: 16px; flex-shrink: 0; }

/* Footer */
.lp-footer {
  text-align: center;
  padding-top: 8px;
}

.lp-footer-logo {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-ghost);
  margin-bottom: 4px;
}

.lp-footer-sub {
  font-size: 11px;
  color: var(--text-ghost);
  opacity: 0.6;
}

/* ════════════════════════════════════════════════════
   AUTH MODAL
   ════════════════════════════════════════════════════ */

.modal-auth-sheet {
  max-width: 420px;
  width: calc(100% - 32px);
  margin: 40px auto;
  position: relative;
  padding: 24px 20px;
}

.modal-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(4px);
  font-size: 18px;
  line-height: 1;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-auth-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.1);
}

/* Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-synapse);
  border-radius: var(--radius-sm);
  padding: 3px;
  margin-bottom: 16px;
}

.auth-tab {
  flex: 1;
  padding: 8px;
  background: transparent;
  border: none;
  border-radius: calc(var(--radius-sm) - 2px);
  color: var(--text-ghost);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.auth-ecosystem-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-ghost);
  margin-bottom: 16px;
  padding: 8px;
  background: rgba(0,180,216,0.05);
  border: 1px solid rgba(0,180,216,0.15);
  border-radius: var(--radius-sm);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border);
}

.auth-divider span { font-size: 11px; color: var(--text-ghost); white-space: nowrap; }

/* Email form */
.auth-form { display: flex; flex-direction: column; gap: 10px; }

.auth-input {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.auth-input:focus { border-color: var(--blue); }

.btn-auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--blue);
  border: none;
  border-radius: var(--radius-sm);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-auth-submit:active { transform: scale(0.98); }

.auth-error {
  font-size: 13px;
  color: var(--red);
  text-align: center;
  padding: 8px;
  background: rgba(255,0,64,0.08);
  border-radius: var(--radius-sm);
}

.auth-terms {
  font-size: 11px;
  color: var(--text-ghost);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.auth-terms a { color: var(--blue); text-decoration: none; }

/* ════════════════════════════════════════════════════
   SAVE PROGRESS NUDGE
   ════════════════════════════════════════════════════ */

.modal-nudge-sheet {
  max-width: 380px;
  width: calc(100% - 32px);
  margin: 60px auto;
  padding: 28px 20px;
  text-align: center;
}

.nudge-icon {
  font-size: 44px;
  margin-bottom: 12px;
  animation: lp-float 3s ease-in-out infinite;
}

.nudge-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.nudge-sub {
  font-size: 13px;
  color: var(--text-ghost);
  margin: 0 0 20px;
}

.nudge-progress {
  display: flex;
  justify-content: center;
  gap: 0;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 20px;
}

.nudge-stat {
  flex: 1;
  padding: 12px 8px;
  border-right: 1px solid var(--border);
}

.nudge-stat:last-child { border-right: none; }

.nudge-stat-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

.nudge-stat-lbl {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 2px;
}

.nudge-skip {
  background: none;
  border: none;
  color: var(--text-ghost);
  font-size: 13px;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  text-decoration: underline;
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════
   USER AVATAR — Top nav
   ════════════════════════════════════════════════════ */

.nav-user {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-guest-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-ghost);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
}

/* ════════════════════════════════════════════════════
   ACCOUNT SECTION — Settings
   ════════════════════════════════════════════════════ */

.account-info { display: flex; flex-direction: column; gap: 12px; }

.account-guest-msg { font-size: 13px; color: var(--text-secondary); font-weight: 600; }

.account-guest-sub { font-size: 12px; color: var(--text-ghost); }

.account-sso-mini {
  display: flex;
  gap: 8px;
}

.btn-sso-mini {
  flex: 1;
  padding: 8px 6px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sso-mini:active { background: var(--bg-card); }

.account-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: #000;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-name { font-size: 14px; font-weight: 700; color: var(--text-primary); }

.account-email { font-size: 12px; color: var(--text-ghost); }

.btn-logout {
  padding: 10px 20px;
  background: rgba(255,0,64,0.08);
  border: 1px solid rgba(255,0,64,0.25);
  border-radius: var(--radius-sm);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.15s;
}

.btn-logout:active { background: rgba(255,0,64,0.15); }

/* ── CSS VARIABLES ── */
:root {
  --bg-void: #0A0A0F;
  --bg-neural: #141419;
  --bg-synapse: #1E1E28;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);

  --green: #39FF14;
  --green-dim: rgba(57, 255, 20, 0.15);
  --teal: #00D4AA;
  --teal-dim: rgba(0, 212, 170, 0.15);
  --gold: #FFD700;
  --gold-dim: rgba(255, 215, 0, 0.15);
  --pink: #FF6B9D;
  --pink-dim: rgba(255, 107, 157, 0.15);
  --red: #FF0040;
  --red-dim: rgba(255, 0, 64, 0.15);
  --blue: #00B4D8;
  --blue-dim: rgba(0, 180, 216, 0.15);

  --text-primary: #FAFAFA;
  --text-secondary: #A0A0B0;
  --text-ghost: #8A8A9A;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-neon-green: 0 0 20px rgba(57, 255, 20, 0.3);
  --shadow-neon-teal: 0 0 20px rgba(0, 212, 170, 0.3);
  --shadow-neon-red: 0 0 30px rgba(255, 0, 64, 0.4);

  --top-nav-h: 56px;
  --month-bar-h: 36px;
  --bottom-nav-h: 68px;
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100dvh;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
}

input, select {
  font-family: var(--font-body);
  color: var(--text-primary);
}

.hidden { display: none !important; }

/* ════════════════════════════════════════════════════
   BOOT SCREEN
   ════════════════════════════════════════════════════ */
#boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
}

.boot-container {
  text-align: center;
  width: 300px;
  animation: fadeIn 0.5s ease;
}

.boot-circuit-top,
.boot-circuit-bot {
  position: relative;
  font-size: 0;
  margin: 8px 0;
}

.boot-circuit-top::before,
.boot-circuit-bot::before {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(0,255,209,0.75), rgba(0,180,216,0.75), transparent);
  box-shadow: 0 0 10px rgba(0,255,209,0.25);
}

.boot-logo {
  margin: 20px 0;
}

.boot-logo-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: pulse-brain 2s infinite;
}

.boot-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 4px;
  text-shadow: var(--shadow-neon-teal);
}

.boot-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 2px;
  margin-top: 4px;
}

.boot-version {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 6px;
}

.boot-messages-wrap {
  min-height: 24px;
  margin: 20px 0;
}

.boot-msg {
  font-size: 13px;
  color: var(--green);
  font-family: var(--font-mono);
  animation: fadeIn 0.3s ease;
}

.boot-progress-wrap {
  position: relative;
}

.boot-progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.boot-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  border-radius: 2px;
  transition: width 0.2s ease;
  box-shadow: 0 0 10px var(--teal);
}

.boot-progress-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--teal);
  margin-top: 8px;
}

/* ════════════════════════════════════════════════════
   SETUP OVERLAY
   ════════════════════════════════════════════════════ */
#setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: var(--bg-void);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
}

.setup-container {
  width: 100%;
  max-width: 420px;
  animation: slideUp 0.5s ease;
}

.setup-header {
  text-align: center;
  margin-bottom: 28px;
}

.setup-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.setup-header h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--teal);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.setup-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.setup-income-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-synapse);
  border: 2px solid var(--teal);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-neon-teal);
}

.setup-currency {
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--teal);
  font-weight: 700;
}

.setup-income-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  width: 100%;
}

.setup-hint {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.setup-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.setup-prev-box {
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.growth-bg { background: var(--green-dim); border-color: rgba(57,255,20,0.3); }
.essential-bg { background: var(--teal-dim); border-color: rgba(0,212,170,0.3); }
.stability-bg { background: var(--gold-dim); border-color: rgba(255,215,0,0.3); }
.rewards-bg { background: var(--pink-dim); border-color: rgba(255,107,157,0.3); }

.prev-icon { font-size: 20px; }
.prev-label { font-size: 11px; color: var(--text-secondary); }
.prev-amount {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.2s;
  box-shadow: var(--shadow-neon-teal);
  width: 100%;
}

.btn-primary:active { transform: scale(0.97); }

.btn-large {
  padding: 16px 32px;
  font-size: 17px;
}

.btn-allocate {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--green-dim), var(--teal-dim));
  border: 1px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--green);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 12px;
  transition: all 0.2s;
}

.btn-allocate:active { transform: scale(0.97); }

.btn-draw {
  width: 100%;
  padding: 14px;
  background: var(--bg-synapse);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-draw:active { transform: scale(0.97); }

.btn-auto {
  flex: 1;
  padding: 12px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
  color: var(--teal);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-auto:active { transform: scale(0.97); }

.btn-confirm-alloc {
  flex: 1;
  padding: 12px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  border: none;
  border-radius: var(--radius-md);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-confirm-alloc:active { transform: scale(0.97); }

.btn-confirm-alloc:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.7);
}

.btn-setting-save {
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--teal-dim);
  border: 1px solid var(--teal);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-danger {
  width: 100%;
  padding: 12px;
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-danger:active { transform: scale(0.97); }

/* ════════════════════════════════════════════════════
   APP SHELL
   ════════════════════════════════════════════════════ */
#app {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* TOP NAV */
.top-nav {
  height: var(--top-nav-h);
  background: var(--bg-neural);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 10;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: var(--shadow-neon-teal);
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 2s infinite;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-level-badge {
  background: var(--blue-dim);
  border: 1px solid var(--blue);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.nav-btn:active { transform: scale(0.9); background: var(--border); }

/* MONTH BAR */
.month-bar {
  height: var(--month-bar-h);
  background: var(--bg-synapse);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.month-income strong {
  color: var(--green);
  font-family: var(--font-mono);
}

/* MAIN CONTENT */
#main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

/* SCREENS */
.screen {
  position: absolute;
  inset: 0;
  bottom: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.screen.active {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.screen-scroll {
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 16px;
  -webkit-overflow-scrolling: touch;
}

.screen-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* BOTTOM NAV */
.bottom-nav {
  height: calc(var(--bottom-nav-h) + var(--safe-area-bottom));
  background: var(--bg-neural);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
  flex-shrink: 0;
  z-index: 10;
}

.bnav-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: var(--bottom-nav-h);
  gap: 3px;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
  color: var(--text-ghost);
}

.bnav-btn.active { color: var(--teal); }
.bnav-btn:active { transform: scale(0.9); }

.bnav-icon { font-size: 22px; }
.bnav-lbl { font-size: 10px; font-weight: 500; }

/* ════════════════════════════════════════════════════
   SECTION HEADERS & CARDS
   ════════════════════════════════════════════════════ */
.dash-section { margin-bottom: 20px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-badge {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.section-badge.allocated {
  background: var(--green-dim);
  border-color: var(--green);
  color: var(--green);
}

.cards-left {
  font-size: 12px;
  color: var(--text-ghost);
}

/* ════════════════════════════════════════════════════
   ALLOCATION GRID (Dashboard)
   ════════════════════════════════════════════════════ */
.alloc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.alloc-box {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.alloc-box::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: inherit;
}

.growth-box { border-color: rgba(57,255,20,0.3); }
.growth-box::before { background: var(--green-dim); }
.essential-box { border-color: rgba(0,212,170,0.3); }
.essential-box::before { background: var(--teal-dim); }
.stability-box { border-color: rgba(255,215,0,0.3); }
.stability-box::before { background: var(--gold-dim); }
.rewards-box { border-color: rgba(255,107,157,0.3); }
.rewards-box::before { background: var(--pink-dim); }

.alloc-box:active::before { opacity: 1; }
.alloc-box:active { transform: scale(0.97); }

.alloc-icon { font-size: 24px; }
.alloc-name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.alloc-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-ghost);
}

.alloc-amount {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  margin-top: 4px;
}

.growth-box .alloc-amount { color: var(--green); }
.essential-box .alloc-amount { color: var(--teal); }
.stability-box .alloc-amount { color: var(--gold); }
.rewards-box .alloc-amount { color: var(--pink); }

.alloc-sub { font-size: 11px; color: var(--text-ghost); }

/* ════════════════════════════════════════════════════
   BRAIN STATUS CARD
   ════════════════════════════════════════════════════ */
.brain-card {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brain-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brain-lbl {
  font-size: 11px;
  font-weight: 600;
  min-width: 120px;
  letter-spacing: 0.5px;
}

.blue-lbl { color: var(--blue); }
.red-lbl { color: var(--red); }

.brain-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.brain-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.blue-fill {
  background: linear-gradient(90deg, var(--blue), #7DF9FF);
  box-shadow: 0 0 6px var(--blue);
  width: 80%;
}

.red-fill {
  background: linear-gradient(90deg, var(--red), #FF6B6B);
  box-shadow: 0 0 6px var(--red);
  width: 20%;
}

.brain-val {
  font-family: var(--font-mono);
  font-size: 12px;
  min-width: 35px;
  text-align: right;
  color: var(--text-secondary);
}

.brain-stats-row {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}

.brain-stat {
  flex: 1;
  text-align: center;
}

.bs-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.bs-lbl {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 2px;
}

/* ════════════════════════════════════════════════════
   XP CARD
   ════════════════════════════════════════════════════ */
.xp-card {
  background: var(--blue-dim);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
}

.xp-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.xp-level-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.xp-level-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.xp-bar-wrap {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #7DF9FF);
  border-radius: 3px;
  transition: width 0.8s ease;
  box-shadow: 0 0 6px var(--blue);
  width: 0%;
}

.xp-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-ghost);
}

/* ════════════════════════════════════════════════════
   QUICK STATS
   ════════════════════════════════════════════════════ */
.quick-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qs-card {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.qs-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.qs-lbl {
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   ALLOCATION SCREEN
   ════════════════════════════════════════════════════ */
.income-block {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.income-lbl { font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.income-num {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--shadow-neon-green);
}

.sliders-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.slider-item {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
}

.slider-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.slider-icon { font-size: 18px; }
.slider-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-secondary);
  flex: 1;
}

.slider-pct-badge {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.growth-badge { background: var(--green-dim); color: var(--green); }
.essential-badge { background: var(--teal-dim); color: var(--teal); }
.stability-badge { background: var(--gold-dim); color: var(--gold); }
.rewards-badge { background: var(--pink-dim); color: var(--pink); }

.slider-amount {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  min-width: 80px;
  text-align: right;
}

/* Custom Range Slider */
.nw-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  outline: none;
  border: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.growth-slider { background: linear-gradient(90deg, var(--green) var(--val, 25%), var(--border) var(--val, 25%)); }
.essential-slider { background: linear-gradient(90deg, var(--teal) var(--val, 50%), var(--border) var(--val, 50%)); }
.stability-slider { background: linear-gradient(90deg, var(--gold) var(--val, 15%), var(--border) var(--val, 15%)); }
.rewards-slider { background: linear-gradient(90deg, var(--pink) var(--val, 10%), var(--border) var(--val, 10%)); }

.nw-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
  border: 2px solid rgba(255,255,255,0.3);
}

.nw-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-primary);
  cursor: pointer;
  border: 2px solid rgba(255,255,255,0.3);
}

/* Total Check */
.total-check-card {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.total-check-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

#total-pct-display {
  font-family: var(--font-mono);
  font-weight: 700;
}

.protocol-status {
  font-size: 12px;
  color: var(--green);
  text-align: center;
}

.protocol-status.warning {
  color: var(--red);
}

.protocol-status.custom {
  color: var(--gold);
}

.amygdala-warning {
  background: var(--red-dim);
  border: 1px solid var(--red);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--red);
  text-align: center;
  margin-bottom: 12px;
  animation: shake 0.5s ease;
}

.alloc-action-row {
  display: flex;
  gap: 10px;
}

.alloc-confirm-hint {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

/* ════════════════════════════════════════════════════
   GROWTH SCREEN
   ════════════════════════════════════════════════════ */
.wealth-tree-section {
  background: var(--bg-synapse);
  border: 1px solid rgba(57,255,20,0.2);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.wealth-tree-wrap {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 12px;
}

.wealth-tree-svg {
  width: 100%;
  height: auto;
}

.wealth-total-display {}

.wtd-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.wtd-amount {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  text-shadow: var(--shadow-neon-green);
}

.compound-card,
.flywheel-card {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 16px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.compound-rows { display: flex; flex-direction: column; gap: 10px; }

.compound-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cr-year {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 50px;
}

.cr-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.cr-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  border-radius: 4px;
  transition: width 1s ease;
}

.cr-amount {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  min-width: 70px;
  text-align: right;
}

/* Flywheel */
.flywheel-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.fw-step {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  text-align: center;
  width: 100%;
  max-width: 240px;
}

.income-step { border-color: rgba(57,255,20,0.3); }
.growth-step { border-color: rgba(0,212,170,0.3); }
.passive-step { border-color: rgba(255,215,0,0.3); }

.fw-icon { font-size: 22px; margin-bottom: 4px; }
.fw-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-secondary); }
.fw-amt { font-family: var(--font-mono); font-size: 16px; font-weight: 700; color: var(--text-primary); margin-top: 4px; }

.fw-arrow {
  font-size: 18px;
  color: rgba(0,180,216,0.9);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0,180,216,0.35);
}

.fw-loop {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}

/* ════════════════════════════════════════════════════
   EVENTS SCREEN
   ════════════════════════════════════════════════════ */
.deck-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}

.card-deck-visual {
  position: relative;
  width: 160px;
  height: 210px;
}

.deck-card {
  position: absolute;
  width: 140px;
  height: 200px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--bg-synapse);
}

.deck-back-3 { transform: rotate(-6deg) translate(-4px, -4px); }
.deck-back-2 { transform: rotate(-3deg) translate(-2px, -2px); }
.deck-back-1 {
  transform: none;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-color: rgba(0,180,216,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.deck-main-icon { font-size: 40px; }
.deck-remaining {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.btn-draw-large {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(255,215,0,0.1));
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 20px rgba(255,215,0,0.2);
  transition: all 0.2s;
}

.btn-draw-large:active { transform: scale(0.95); }

.event-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-empty {
  text-align: center;
  color: var(--text-ghost);
  font-size: 13px;
  padding: 20px;
}

.history-item {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

.hi-icon { font-size: 20px; flex-shrink: 0; }

.hi-content { flex: 1; }
.hi-title { font-size: 13px; font-weight: 600; }
.hi-outcome { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

.hi-impact {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.hi-impact.positive { color: var(--green); }
.hi-impact.negative { color: var(--red); }

/* ════════════════════════════════════════════════════
   BRAIN SCREEN
   ════════════════════════════════════════════════════ */
.brain-level-card {
  background: linear-gradient(135deg, var(--blue-dim), var(--teal-dim));
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-xl);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}

.brain-anim {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
  animation: pulse-brain 3s infinite;
}

.bl-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--blue);
  text-shadow: var(--shadow-neon-teal);
}

.bl-name {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 4px 0 16px;
}

.bl-xp { }

.xp-nums {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.abilities-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.ability-item {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ability-item.unlocked { border-color: rgba(0,212,170,0.3); }
.ability-item.locked { opacity: 0.5; }

.ability-icon { font-size: 20px; }
.ability-text { flex: 1; }
.ability-name { font-size: 13px; font-weight: 600; }
.ability-desc { font-size: 11px; color: var(--text-secondary); margin-top: 2px; }
.ability-status { font-size: 12px; }

.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.achievement-card {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
  transition: all 0.2s;
}

.achievement-card.earned {
  border-color: rgba(255,215,0,0.4);
  background: var(--gold-dim);
}

.ach-icon { font-size: 28px; margin-bottom: 6px; }
.ach-name { font-size: 11px; font-weight: 600; color: var(--text-primary); }
.ach-desc { font-size: 10px; color: var(--text-secondary); margin-top: 2px; }
.ach-xp { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 4px; }

.achievement-card.locked {
  opacity: 0.4;
  filter: grayscale(1);
}

.stats-4-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.s4-item {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.s4-val {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
}

.s4-lbl {
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 4px;
}

/* ════════════════════════════════════════════════════
   SETTINGS SCREEN
   ════════════════════════════════════════════════════ */
.settings-group {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
}

.settings-group-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.settings-group-title.setting-subtitle {
  margin-top: 14px;
  margin-bottom: 10px;
  padding-bottom: 6px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.setting-label {
  font-size: 13px;
  color: var(--text-primary);
  flex: 1;
}

.setting-input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.setting-input {
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-mono);
  font-size: 14px;
  width: 100px;
  text-align: right;
}

.setting-select {
  background: var(--bg-void);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

.setting-hint {
  font-size: 12px;
  color: var(--text-ghost);
  margin-top: 8px;
}

.about-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.version-text {
  font-family: var(--font-mono);
  color: var(--text-ghost);
  font-size: 12px;
}

.danger-group { border-color: rgba(255,0,64,0.2); }
.danger-group .settings-group-title { color: var(--red); }

/* ════════════════════════════════════════════════════
   MODALS
   ════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

#modal-gratitude.modal-overlay {
  align-items: flex-start;
  padding: 8px 12px calc(var(--safe-area-bottom) + 8px);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  max-height: 90dvh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  animation: slideUp 0.3s ease;
}

/* AMYGDALA MODAL */
.amygdala-box {
  background: #0D0005;
  border: 2px solid var(--red);
  box-shadow: var(--shadow-neon-red), inset 0 0 40px rgba(255,0,64,0.05);
  padding: 20px;
}

.amygdala-header {
  text-align: center;
  position: relative;
  margin-bottom: 16px;
}

.amygdala-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--red);
  animation: amygdala-pulse 1s infinite;
}

.amygdala-icon-big { font-size: 36px; position: relative; z-index: 1; }

.amygdala-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 3px;
  text-shadow: var(--shadow-neon-red);
  margin-top: 6px;
}

.amygdala-event-display {
  background: rgba(255,0,64,0.08);
  border: 1px solid rgba(255,0,64,0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
  text-align: center;
}

.amy-event-icon { font-size: 36px; margin-bottom: 8px; }
.amy-event-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.amy-event-desc { font-size: 13px; color: var(--text-secondary); }
.amy-event-cost {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  margin-top: 8px;
}

.stress-section {
  margin-bottom: 16px;
}

.stress-top {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

#stress-pct-display { color: var(--red); font-weight: 700; }

.stress-bar-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 4px;
}

.stress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: 4px;
  box-shadow: 0 0 8px var(--red);
  transition: width 0.5s ease;
}

.stress-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-ghost);
}

.battle-phase { display: flex; flex-direction: column; align-items: center; gap: 12px; }

.breathe-instruction {
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

.breathe-area { display: flex; justify-content: center; }

.breathe-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0,212,170,0.08);
  border: 3px solid var(--teal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0,212,170,0.2);
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.breathe-btn:active {
  border-color: var(--blue);
  box-shadow: 0 0 30px rgba(0,180,216,0.4);
}

.breathe-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, var(--teal), var(--blue));
  transition: none;
}

.breathe-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--teal);
}

.btn-impulse {
  padding: 10px 24px;
  background: var(--red-dim);
  border: 1px solid rgba(255,0,64,0.3);
  border-radius: var(--radius-md);
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-impulse:active { transform: scale(0.95); }

.rational-banner {
  background: var(--blue-dim);
  border: 1px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
}

.rational-q {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.rational-choices {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rational-choice-btn {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
}

.rational-choice-btn:active { background: var(--blue-dim); border-color: var(--blue); }

/* LIFE EVENT MODAL */
.event-box {
  background: var(--bg-neural);
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.event-card-display {
  background: var(--bg-synapse);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.event-type-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.badge-opportunity { background: var(--green-dim); color: var(--green); }
.badge-challenge { background: var(--gold-dim); color: var(--gold); }
.badge-trap { background: var(--red-dim); color: var(--red); }
.badge-milestone { background: var(--blue-dim); color: var(--blue); }

.event-icon-large { font-size: 48px; margin-bottom: 10px; }
.event-title-text { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.event-desc-text { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.event-impact-text {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
}

.event-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.event-choice-btn {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  text-align: left;
  transition: all 0.2s;
  line-height: 1.4;
}

.event-choice-btn:active { transform: scale(0.98); background: var(--blue-dim); border-color: var(--blue); }

/* LEVEL UP MODAL */
.levelup-box {
  background: var(--bg-neural);
  border: 2px solid var(--gold);
  box-shadow: 0 0 40px rgba(255,215,0,0.3);
  padding: 28px;
  text-align: center;
}

.levelup-anim { font-size: 56px; animation: levelup-bounce 0.8s ease; margin-bottom: 8px; }

.levelup-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5);
}

.levelup-new { margin-bottom: 20px; }

.lu-num {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
}

.lu-name { font-size: 16px; color: var(--text-secondary); margin-top: 4px; }

.lu-abilities {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  text-align: left;
}

.lu-ability {
  background: var(--gold-dim);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-primary);
}

.lu-ability::before { content: '⚡ '; }

/* TOAST */
.toast {
  position: fixed;
  top: calc(var(--top-nav-h) + var(--month-bar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 800;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  white-space: nowrap;
  animation: slideDown 0.3s ease;
  pointer-events: none;
}

.toast.success { border-color: rgba(57,255,20,0.4); color: var(--green); }
.toast.warning { border-color: rgba(255,215,0,0.4); color: var(--gold); }
.toast.error { border-color: rgba(255,0,64,0.4); color: var(--red); }
.toast.info { border-color: rgba(0,180,216,0.4); color: var(--blue); }

#toast-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  background: rgba(255,255,255,0.12);
}

/* ════════════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@keyframes pulse-brain {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes amygdala-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes levelup-bounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  80% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes leaf-wave {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
}

/* ════════════════════════════════════════════════════
   RESPONSIVE — TABLET & DESKTOP
   ════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .alloc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .setup-preview {
    grid-template-columns: repeat(4, 1fr);
  }

  .quick-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .stats-4-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  #app {
    max-width: 900px;
    margin: 0 auto;
  }

  .screen-scroll { padding: 20px 24px; }

  .alloc-grid { gap: 14px; }

  .modal-box { max-width: 480px; }
}

/* Scrollbar styling */
.screen-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 170, 0.7) rgba(255, 255, 255, 0.08);
  scrollbar-gutter: stable;
}

.screen-scroll::-webkit-scrollbar { width: 8px; }
.screen-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.screen-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.85), rgba(0, 180, 216, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.scroll-progress-rail {
  position: absolute;
  right: 6px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  pointer-events: none;
  z-index: 20;
}

.scroll-progress-fill {
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 212, 170, 0.92), rgba(0, 180, 216, 0.82));
  transition: height 0.12s linear;
}

/* ════════════════════════════════════════════════════
   NEURO SCORE — Unified KPI widget
   Composite: Financial (40%) + Brain (35%) + Resilience (25%)
   ════════════════════════════════════════════════════ */

.neuro-score-card {
  background: linear-gradient(135deg, rgba(0,180,216,0.08), rgba(179,157,219,0.06));
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
}

.neuro-score-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 80px; height: 80px;
  background: radial-gradient(circle at top right, rgba(0,180,216,0.12), transparent 70%);
  pointer-events: none;
}

.ns-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}

.ns-left { flex: 1; }

.ns-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.ns-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--blue);
  font-weight: 700;
}

.ns-tier-badge {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 1px;
}

.ns-tier-badge.premium {
  background: rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.4);
  color: var(--gold);
}

.ns-label {
  font-size: 12px;
  color: var(--text-secondary);
}

.ns-total-wrap {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ns-total {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}

.ns-max {
  font-size: 13px;
  color: var(--text-ghost);
}

.ns-bar-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-synapse);
  border-radius: 3px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ns-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gratitude));
  border-radius: 3px;
  transition: width 0.8s ease;
  width: 0%;
}

.ns-subscores {
  display: flex;
  gap: 0;
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ns-sub {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid rgba(0,180,216,0.2);
}

.ns-sub:last-child { border-right: none; }

.ns-sub-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.ns-sub-lbl {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 2px;
}

.ns-lock {
  font-size: 11px;
  color: var(--text-ghost);
  text-align: center;
  padding: 8px 0 2px;
  cursor: pointer;
  transition: color 0.2s;
}

.ns-lock:active { color: var(--blue); }

/* ════════════════════════════════════════════════════
   PROTOCOL MAP — 4-phase visual journey
   ════════════════════════════════════════════════════ */

.protocol-map {
  margin-top: 16px;
  padding-bottom: 8px;
}

.pm-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.pm-subtitle {
  font-size: 11px;
  color: var(--text-ghost);
  margin-bottom: 16px;
}

.pm-steps { display: flex; flex-direction: column; }

.pm-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto auto;
  column-gap: 14px;
}

.pm-step-line-top {
  width: 2px;
  height: 10px;
  background: var(--border);
  justify-self: center;
}

.pm-step-line-bot {
  width: 2px;
  height: 10px;
  background: var(--border);
  justify-self: center;
}

.invisible { background: transparent !important; }

.pm-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  justify-self: center;
}

.pm-step-body {
  padding: 2px 0 14px;
  grid-column: 2;
  grid-row: 2;
}

.pm-phase-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.pm-step-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.pm-step-desc {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.pm-step-detail {
  font-size: 10px;
  color: var(--text-ghost);
  font-style: italic;
  margin-bottom: 4px;
}

.pm-step-stat {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
}

/* ════════════════════════════════════════════════════
   ECOSYSTEM — Freemium/Premium/Book/Workshop/Coaching
   ════════════════════════════════════════════════════ */

.ecosystem-section { padding-bottom: 20px; }

.eco-header { padding: 20px 0 14px; }

.eco-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.eco-subtitle { font-size: 12px; color: var(--text-ghost); }

.eco-tier-row { display: flex; gap: 10px; margin-bottom: 20px; }

.eco-tier-card {
  flex: 1;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 12px 14px;
  position: relative;
}

.eco-tier-card.eco-active { border-color: var(--blue); box-shadow: 0 0 12px rgba(0,180,216,0.15); }
.eco-premium-card.eco-active { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,215,0,0.15); }

.eco-tier-badge {
  position: absolute;
  top: -8px; right: 10px;
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 8px;
  background: var(--gold); color: #000;
  border-radius: 10px;
}

.eco-tier-name { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; padding-top: 4px; }

.eco-tier-features {
  list-style: none; padding: 0; margin: 0 0 12px;
  display: flex; flex-direction: column; gap: 4px;
}

.eco-tier-features li { font-size: 11px; color: var(--text-secondary); line-height: 1.3; }

.eco-tier-price { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.eco-tier-price span { font-size: 12px; color: var(--text-ghost); }
.eco-tier-active-badge { font-size: 12px; color: var(--green); font-weight: 600; }

.btn-upgrade {
  width: 100%; padding: 8px;
  background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,215,0,0.1));
  border: 1px solid var(--gold);
  border-radius: var(--radius-sm);
  color: var(--gold); font-size: 13px; font-weight: 700;
  transition: all 0.2s;
}

.btn-upgrade:active { transform: scale(0.97); }

.eco-products-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 10px; letter-spacing: 0.5px; }

.eco-products { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }

.eco-product-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.eco-book     { border-left: 3px solid #4CAF50; }
.eco-workshop { border-left: 3px solid #FF9F43; }
.eco-coaching { border-left: 3px solid var(--gratitude); }

.eco-prod-icon { font-size: 28px; flex-shrink: 0; }
.eco-prod-body { flex: 1; }
.eco-prod-name { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.eco-prod-type { font-size: 10px; color: var(--text-ghost); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.eco-prod-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.35; margin-bottom: 4px; }
.eco-prod-price { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--text-primary); }
.eco-prod-price span { font-size: 10px; color: var(--text-ghost); }

.eco-prod-btn {
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px; font-weight: 600;
  flex-shrink: 0; white-space: nowrap;
  transition: all 0.15s;
}

.eco-prod-btn:active { background: var(--bg-synapse); }
.eco-prod-btn-locked { color: var(--text-ghost); }

.eco-flywheel {
  background: rgba(0,180,216,0.05);
  border: 1px solid rgba(0,180,216,0.2);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.eco-fw-label { font-size: 11px; font-weight: 600; color: var(--text-ghost); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; }

.eco-fw-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); }



/* ════════════════════════════════════════════════════
   GRATITUDE JOURNAL
   Color: --gratitude #B39DDB (soft lavender-purple)
   Neuroscience: activates mPFC, reduces Amygdala
   ════════════════════════════════════════════════════ */
:root {
  --gratitude: #B39DDB;
  --gratitude-dim: rgba(179, 157, 219, 0.15);
  --gratitude-border: rgba(179, 157, 219, 0.35);
}

/* ── Dashboard Card ─────────────────── */
.gr-streak-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--gratitude-dim);
  border: 1px solid var(--gratitude-border);
  color: var(--gratitude);
  font-weight: 600;
}

.gr-dash-card {
  background: var(--gratitude-dim);
  border: 1px solid var(--gratitude-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.gr-dash-card:active { transform: scale(0.98); }

.gr-dash-card.done-this-month {
  border-color: rgba(57,255,20,0.3);
  background: rgba(57,255,20,0.05);
}

.gr-dash-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gr-dash-icon { font-size: 28px; }

.gr-dash-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.gr-dash-sub {
  font-size: 11px;
  color: var(--gratitude);
  margin-top: 2px;
}

.gr-cta-text {
  font-size: 13px;
  color: var(--gratitude);
  font-weight: 600;
}

.gr-done-text {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

/* ── Gratitude Modal ─────────────────── */
.gratitude-modal-box {
  background: #0E0A14;
  border: 1px solid var(--gratitude-border);
  box-shadow: 0 0 40px rgba(179,157,219,0.2);
  padding: 0;
  max-height: calc(100dvh - var(--safe-area-bottom) - 16px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(179, 157, 219, 0.7) rgba(255, 255, 255, 0.08);
  margin: 0 auto;
  position: relative;
}

.modal-scroll-progress {
  position: absolute;
  right: 6px;
  top: 84px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  pointer-events: none;
  z-index: 5;
}

.modal-scroll-fill {
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(179, 157, 219, 0.9), rgba(0, 180, 216, 0.78));
  transition: height 0.12s linear;
}

.gr-modal-top {
  background: linear-gradient(160deg, #140e1f, #0e0a14);
  padding: 20px 20px 16px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--gratitude-border);
}

.gr-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  font-size: 16px;
  line-height: 1;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.gr-close-btn:active { background: var(--border); }

.gr-close-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
}

.gr-modal-icon { font-size: 40px; margin-bottom: 6px; }

.gr-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--gratitude);
  letter-spacing: 2px;
  margin-bottom: 4px;
}

.gr-modal-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* Streak stats row */
.gr-streak-row {
  display: flex;
  justify-content: center;
  gap: 0;
  background: rgba(179,157,219,0.08);
  border: 1px solid var(--gratitude-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gr-streak-block {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--gratitude-border);
}

.gr-streak-block:last-child { border-right: none; }

.gr-streak-val {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--gratitude);
}

.gr-streak-lbl {
  font-size: 10px;
  color: var(--text-ghost);
  margin-top: 2px;
}

/* Shield banner */
.gr-shield-banner {
  background: rgba(255,215,0,0.1);
  border-bottom: 1px solid rgba(255,215,0,0.3);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  animation: slideDown 0.3s ease;
}

/* Brain preview row */
.gr-brain-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(179,157,219,0.05);
  border-bottom: 1px solid var(--border);
}

.gr-bp-item {
  font-size: 12px;
  font-weight: 500;
}

.gr-bp-pos { color: var(--blue); }
.gr-bp-neg { color: var(--red); }
.gr-bp-sep { color: var(--border); }

/* Done notice */
.gr-done-notice {
  background: rgba(57,255,20,0.08);
  border-bottom: 1px solid rgba(57,255,20,0.2);
  padding: 10px 20px;
  font-size: 12px;
  color: var(--green);
  text-align: center;
}

.gr-done-sub {
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 3px;
}

/* Prompts section */
.gr-prompts-section {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gr-prompts-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.gr-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gr-progress-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(179, 157, 219, 0.35);
  background: rgba(179, 157, 219, 0.12);
  color: var(--gratitude);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.gr-progress-toggle {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  border-radius: 999px;
  min-height: 24px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 600;
}

.gr-prompt-wrap {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(179, 157, 219, 0.2);
}

.gr-prompt-wrap:last-child { border-bottom: none; }

.gr-prompt-collapsed {
  display: none;
}

.gr-prompt-wrap.is-active {
  border-color: rgba(179, 157, 219, 0.42);
  background: rgba(179, 157, 219, 0.04);
  border-radius: 10px;
  padding: 8px;
}

.gr-prompt-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gratitude-dim);
  border: 1px solid var(--gratitude-border);
  color: var(--gratitude);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gr-prompt-body { flex: 1; }

.gr-prompt-q {
  font-size: 12px;
  color: var(--gratitude);
  margin-bottom: 4px;
  line-height: 1.4;
  font-style: italic;
}

.gr-textarea {
  width: 100%;
  background: rgba(179,157,219,0.06);
  border: 1px solid var(--gratitude-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.4;
  resize: vertical;
  min-height: 48px;
  max-height: 120px;
  outline: none;
  transition: border-color 0.2s;
}

.gr-textarea:focus {
  border-color: var(--gratitude);
  box-shadow: 0 0 0 2px rgba(179,157,219,0.15);
}

.gr-textarea::placeholder { color: var(--text-ghost); }

/* Suggestion chips */
.gr-chips-section {
  padding: 0 14px 12px;
}

.gr-chips-label {
  font-size: 11px;
  color: var(--text-ghost);
  margin-bottom: 8px;
}

.gr-chips-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.gr-chip {
  padding: 5px 10px;
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.gr-chip:active {
  background: var(--gratitude-dim);
  border-color: var(--gratitude);
  color: var(--gratitude);
  transform: scale(0.96);
}

/* Submit button */
.btn-gr-submit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px;
  background: linear-gradient(135deg, rgba(179,157,219,0.3), rgba(179,157,219,0.1));
  border: 1px solid var(--gratitude);
  border-radius: var(--radius-md);
  color: var(--gratitude);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 20px rgba(179,157,219,0.15);
  transition: all 0.2s;
}

.btn-gr-submit:active { transform: scale(0.98); }

/* History toggle */
.btn-gr-history {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-ghost);
  font-size: 12px;
  text-align: center;
  transition: all 0.2s;
}

.btn-gr-history:active { color: var(--text-secondary); background: var(--bg-synapse); }

.gr-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  padding: 10px 14px calc(10px + var(--safe-area-bottom));
  background: linear-gradient(180deg, rgba(14, 10, 20, 0), rgba(14, 10, 20, 0.98) 32%);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* History list */
.gr-history-list {
  margin: 0 14px 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 220px;
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}

.gr-history-item {
  background: var(--bg-synapse);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.gr-hi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gr-hi-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gratitude);
}

.gr-hi-streak {
  font-size: 11px;
  color: var(--text-ghost);
}

.gr-hi-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gr-hi-item {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding-left: 12px;
  position: relative;
}

.gr-hi-item::before {
  content: '🙏';
  position: absolute;
  left: -4px;
  font-size: 10px;
}

/* ════════════════════════════════════════════════════
   AFFIRMATION STEP (Phase 0 — before BREATHE)
   Color: --blue / #00B4D8 (Prefrontal / vmPFC)
   Research: Critcher & Dunning (2015) — self-affirmation
   lowers cortisol spike and primes mPFC regulation
   ════════════════════════════════════════════════════ */

.aff-header {
  text-align: center;
  padding: 10px 0 14px;
}

.aff-header-icon { font-size: 28px; margin-bottom: 4px; }

.aff-header-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.5px;
}

.aff-header-sub {
  font-size: 11px;
  color: var(--text-ghost);
  margin-top: 3px;
}

.aff-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.aff-card {
  width: 100%;
  background: rgba(0, 180, 216, 0.06);
  border: 1px solid rgba(0, 180, 216, 0.25);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.18s;
  text-align: left;
}

.aff-card:active { transform: scale(0.98); }

.aff-card.selected {
  background: rgba(0, 180, 216, 0.18);
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0, 180, 216, 0.2);
}

.aff-card-icon {
  font-size: 20px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.aff-card-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  transition: color 0.18s;
  flex: 1;
}

.aff-card.selected .aff-card-text { color: var(--text-primary); }

.aff-check {
  font-size: 16px;
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}

.aff-card.selected .aff-check { opacity: 1; }

/* Confirm button */
.btn-aff-confirm {
  display: block;
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0,180,216,0.25), rgba(0,180,216,0.1));
  border: 1px solid var(--blue);
  border-radius: var(--radius-md);
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 0 18px rgba(0,180,216,0.15);
  transition: all 0.2s;
  animation: pulse-blue 2s ease infinite;
}

.btn-aff-confirm:active { transform: scale(0.98); }

@keyframes pulse-blue {
  0%, 100% { box-shadow: 0 0 10px rgba(0,180,216,0.15); }
  50% { box-shadow: 0 0 22px rgba(0,180,216,0.35); }
}

/* Streak milestone animation */
@keyframes streak-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(179,157,219,0.3); }
  50% { box-shadow: 0 0 25px rgba(179,157,219,0.6); }
}

.gr-streak-milestone {
  animation: streak-glow 1.5s ease infinite;
}

/* =========================================================
   UX OVERHAUL v1.1 - Today-first, CTA hierarchy, story hero
   ========================================================= */

.month-mission {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.today-hero-card {
  background: linear-gradient(145deg, rgba(0,180,216,0.14), rgba(57,255,20,0.08));
  border: 1px solid rgba(0,180,216,0.35);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.18);
}

.today-chapter {
  font-size: 11px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.today-title {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.today-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.btn-today-primary {
  width: 100%;
  border: 1px solid rgba(57,255,20,0.5);
  background: linear-gradient(135deg, rgba(57,255,20,0.38), rgba(57,255,20,0.14));
  color: #051106;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 0 18px rgba(57,255,20,0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-today-primary:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(57,255,20,0.2);
}

.today-secondary {
  opacity: 0.82;
}

.today-secondary .btn-allocate,
.today-secondary .btn-draw {
  filter: saturate(0.7);
}

.today-secondary .section-title {
  color: var(--text-secondary);
}

.today-offer-card {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.26);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}

.today-view-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.today-view-badge {
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.today-view-toggle {
  border: 1px solid rgba(57,255,20,0.35);
  background: rgba(57,255,20,0.08);
  color: #d9ffe8;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

.today-stage-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.today-stage-chip,
.today-mode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.today-stage-chip {
  border: 1px solid rgba(57,255,20,0.45);
  background: rgba(57,255,20,0.14);
  color: #d7ffe1;
}

.today-mode-chip {
  border: 1px solid rgba(0,180,216,0.45);
  background: rgba(0,180,216,0.14);
  color: #d8f7ff;
}

.today-learning-mode-card {
  border: 1px solid rgba(0,180,216,0.35);
  background: rgba(0, 180, 216, 0.08);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
}

.today-learning-kicker {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.today-learning-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.today-learning-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.today-learning-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mode-primary,
.btn-mode-chip {
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn-mode-primary {
  border: 1px solid rgba(57,255,20,0.45);
  background: rgba(57,255,20,0.16);
  color: #deffea;
}

.btn-mode-ghost {
  border: 1px solid rgba(0,180,216,0.35);
  background: rgba(0,180,216,0.08);
  color: #d6f6ff;
  border-radius: 999px;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.btn-mode-chip {
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
}

.btn-mode-chip.active {
  border-color: rgba(0,180,216,0.45);
  background: rgba(0,180,216,0.14);
  color: #d8f7ff;
}

.today-learning-manual {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(255,255,255,0.14);
}

.today-learning-manual-label {
  display: block;
  font-size: 11px;
  color: var(--text-ghost);
  margin-bottom: 7px;
}

.today-learning-manual-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.learning-path-box {
  width: min(560px, 94vw);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 16px 16px 18px;
  border: 1px solid rgba(0,180,216,0.35);
  background: linear-gradient(165deg, rgba(5, 22, 30, 0.95), rgba(12, 14, 22, 0.98));
  position: relative;
}

.learning-path-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1;
}

.learning-path-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #9fd7e8;
  margin-bottom: 4px;
}

.learning-path-title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.learning-path-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 12px;
}

.learning-q-card {
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  margin-bottom: 10px;
}

.learning-q-title {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.learning-q-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.learning-q-option {
  text-align: left;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.35;
}

.learning-q-option.active {
  border-color: rgba(0,180,216,0.52);
  background: rgba(0,180,216,0.14);
  color: #e0f8ff;
}

.learning-reco-card {
  border: 1px solid rgba(57,255,20,0.34);
  border-radius: 12px;
  background: rgba(57,255,20,0.1);
  padding: 10px 11px;
  margin: 12px 0 10px;
}

.learning-reco-title {
  font-size: 14px;
  font-weight: 700;
  color: #dfffe9;
  margin-bottom: 3px;
}

.learning-reco-sub {
  font-size: 12px;
  color: #bfe3c7;
  line-height: 1.45;
}

.learning-path-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.learning-path-primary {
  width: 100%;
  justify-content: center;
}

.learning-path-alt {
  font-size: 11px;
  color: var(--text-ghost);
}

.learning-path-manual {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.today-contract-grid {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.today-contract-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.today-contract-label {
  font-size: 11px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.today-contract-value {
  font-size: 12px;
  color: var(--text-primary);
  text-align: right;
}

.today-insight-panel {
  border: 1px solid rgba(0,180,216,0.3);
  background: rgba(0,180,216,0.08);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 14px;
}

.today-insight-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #bfefff;
  margin-bottom: 4px;
}

.today-insight-copy {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

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

.today-outcome-card {
  text-align: left;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 12px;
  min-height: 108px;
}

.today-outcome-kicker {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-ghost);
  margin-bottom: 6px;
}

.today-outcome-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.today-outcome-sub {
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.today-mission-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mission-board-item {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 10px;
}

.mission-board-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-ghost);
  letter-spacing: 0.7px;
  margin-bottom: 4px;
}

.mission-board-value {
  font-size: 12px;
  color: var(--text-primary);
  line-height: 1.4;
}

.today-ach-card {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 10px 12px;
}

.today-ach-latest {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.today-ach-progress {
  font-size: 11px;
  color: var(--text-secondary);
}

.today-access-card {
  border: 1px solid rgba(0, 212, 170, 0.35);
  background: linear-gradient(145deg, rgba(0, 212, 170, 0.08), rgba(0, 180, 216, 0.05));
  border-radius: 14px;
  padding: 12px;
}

.today-access-kicker {
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #a8fbe9;
  margin-bottom: 5px;
}

.today-access-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.today-access-sub {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-bottom: 7px;
}

.today-access-meta {
  font-size: 11px;
  color: var(--text-ghost);
  margin-bottom: 10px;
}

.today-access-cta {
  width: 100%;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 170, 0.45);
  background: rgba(0, 212, 170, 0.14);
  color: #dbfff6;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.today-access-cta.tier-upgrade {
  border-color: rgba(255, 215, 0, 0.45);
  background: rgba(255, 215, 0, 0.12);
  color: #ffeeb2;
}

.today-access-cta.tier-premium {
  border-color: rgba(0, 180, 216, 0.45);
  background: rgba(0, 180, 216, 0.14);
  color: #d7f5ff;
}

.today-ach-link {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 12px;
  text-decoration: underline;
}

@media (max-width: 680px) {
  .today-outcome-grid {
    grid-template-columns: 1fr;
  }

  .today-mission-board {
    grid-template-columns: 1fr;
  }

  .today-outcome-card {
    min-height: auto;
    padding: 10px;
  }

  .mission-board-item {
    padding: 9px 10px;
  }
}

.today-secondary.journey-hidden {
  display: none;
}

.today-offer-why {
  font-size: 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.today-offer-title {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

.today-offer-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 4px 0 10px;
  line-height: 1.4;
}

.btn-today-offer {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold);
  background: rgba(255, 215, 0, 0.08);
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   PHASE 2 - Play and Reflect storytelling layers
   ========================================================= */

.play-story-card,
.reflect-story-card,
.play-outcome-card {
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 14px;
}

.play-story-card {
  background: linear-gradient(145deg, rgba(255,107,107,0.12), rgba(0,180,216,0.08));
  border: 1px solid rgba(255,107,107,0.28);
}

.play-story-kicker,
.play-outcome-kicker,
.reflect-kicker {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-ghost);
  margin-bottom: 6px;
}

.play-story-title,
.reflect-title,
.play-outcome-title {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.play-story-sub,
.reflect-sub,
.play-outcome-sub {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.play-outcome-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.reflect-story-card {
  background: linear-gradient(150deg, rgba(179,157,219,0.14), rgba(0,180,216,0.08));
  border: 1px solid var(--gratitude-border);
}

.btn-reflect-primary {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--gratitude-border);
  background: linear-gradient(135deg, rgba(179,157,219,0.28), rgba(179,157,219,0.10));
  color: var(--gratitude);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.reflect-insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.reflect-insight-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.reflect-insight-label {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.reflect-insight-value {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-primary);
}

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

/* =========================================================
   PHASE 3 - Cinematic modal storytelling
   ========================================================= */

.modal-story-kicker {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
  text-align: center;
}

.modal-story-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  text-align: center;
  margin: 2px 0 14px;
}

.choice-recommend {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.choice-label {
  display: block;
}

.outcome-box {
  background: linear-gradient(155deg, rgba(0,180,216,0.12), rgba(57,255,20,0.08));
  border: 1px solid rgba(0,180,216,0.3);
  padding: 24px 20px;
  text-align: center;
}

.outcome-icon {
  font-size: 42px;
  margin-bottom: 10px;
}

.outcome-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.outcome-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.outcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.outcome-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.outcome-stat-label {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.outcome-stat-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.outcome-identity {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

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

/* =========================================================
   PHASE 4 - Reviews, premium triggers, and product actions
   ========================================================= */

.review-box,
.premium-trigger-box,
.product-action-box {
  padding: 24px 20px;
  text-align: center;
}

.review-box {
  background: linear-gradient(155deg, rgba(57,255,20,0.08), rgba(0,180,216,0.12));
  border: 1px solid rgba(57,255,20,0.24);
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 920px);
  overflow: hidden;
}

.review-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
  overscroll-behavior: contain;
}

.review-scroll-body::-webkit-scrollbar {
  width: 8px;
}

.review-scroll-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.review-title,
.premium-title,
.product-title {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.review-sub,
.premium-sub,
.product-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}

.review-persona {
  display: inline-block;
  margin: 0 auto 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.3;
}

.review-trend {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.review-confidence {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.review-meter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.review-meter-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.review-meter-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.review-meter-label {
  font-size: 11px;
  color: var(--text-secondary);
}

.review-meter-chip {
  min-width: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.review-meter-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.review-meter-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  transition: width 220ms ease;
}

.meter-memory {
  background: linear-gradient(90deg, rgba(179,157,219,0.95), rgba(179,157,219,0.55));
}

.meter-signal {
  background: linear-gradient(90deg, rgba(0,180,216,0.95), rgba(0,180,216,0.55));
}

.meter-quality {
  background: linear-gradient(90deg, rgba(57,255,20,0.95), rgba(57,255,20,0.55));
}

.meter-shock {
  background: linear-gradient(90deg, rgba(255,107,107,0.95), rgba(255,107,107,0.55));
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.review-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.review-stat-label {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.review-stat-value {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 700;
}

.review-story,
.product-price {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.review-detail-list {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.review-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
}

.review-detail-label {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
}

.review-detail-value {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

.review-coach-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.review-coach-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
}

.review-coach-kicker {
  font-size: 10px;
  color: var(--text-ghost);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.review-coach-copy {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.premium-trigger-box {
  background: linear-gradient(150deg, rgba(255,215,0,0.12), rgba(0,180,216,0.10));
  border: 1px solid rgba(255,215,0,0.28);
}

.premium-points {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  text-align: left;
  color: var(--text-secondary);
}

.premium-points div {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.product-action-box {
  background: linear-gradient(145deg, rgba(179,157,219,0.16), rgba(0,180,216,0.08));
  border: 1px solid rgba(179,157,219,0.30);
}

.review-actions,
.premium-actions,
.product-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.review-actions {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0), rgba(10, 10, 15, 0.92) 30%, rgba(10, 10, 15, 1));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

@media (max-width: 480px) {
  .review-meter-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .review-actions,
  .premium-actions,
  .product-actions {
    flex-direction: column;
  }
}

/* =========================================================
   UI POLISH PASS - Hierarchy, readability, and demo finish
   ========================================================= */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(0, 180, 216, 0.14), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(57, 255, 20, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%);
  pointer-events: none;
  z-index: 0;
}

#app {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#landing-page,
#boot-screen,
#setup-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
}

.top-nav {
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.96), rgba(10, 10, 15, 0.88)),
    var(--bg-neural);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.nav-brand {
  letter-spacing: 2.4px;
}

.nav-level-badge,
.nav-btn,
.nav-guest-badge,
.nav-avatar {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.month-bar {
  height: auto;
  min-height: var(--month-bar-h);
  padding: 10px 16px;
  gap: 10px;
  flex-wrap: wrap;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    var(--bg-synapse);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.month-info,
.month-income,
.month-mission {
  display: flex;
  align-items: center;
}

.month-mission {
  margin-top: 0;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-size: 10px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.screen-scroll {
  padding: 18px 16px 18px;
}

.screen-title {
  font-size: 22px;
  margin-bottom: 18px;
  letter-spacing: 0.2px;
}

.dash-section {
  margin-bottom: 22px;
}

.section-header {
  margin-bottom: 12px;
}

.section-title {
  font-size: 12px;
  color: var(--text-ghost);
}

.section-badge,
.cards-left {
  font-family: var(--font-mono);
  font-size: 11px;
}

.today-hero-card,
.today-offer-card,
.play-story-card,
.reflect-story-card,
.play-outcome-card,
.review-box,
.premium-trigger-box,
.product-action-box {
  position: relative;
  overflow: hidden;
}

.today-hero-card::before,
.play-story-card::before,
.reflect-story-card::before,
.review-box::before,
.premium-trigger-box::before,
.product-action-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 40%);
  pointer-events: none;
}

.today-hero-card {
  padding: 20px 18px 18px;
  margin-bottom: 18px;
  border-radius: 24px;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.03);
}

.today-chapter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.today-title {
  font-size: 24px;
  line-height: 1.08;
  margin-bottom: 8px;
  max-width: 12ch;
}

.today-sub {
  font-size: 14px;
  line-height: 1.6;
  max-width: 42ch;
  margin-bottom: 16px;
}

.btn-today-primary,
.btn-primary,
.btn-reflect-primary {
  position: relative;
  overflow: hidden;
}

.btn-today-primary::after,
.btn-primary::after,
.btn-reflect-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.22), transparent 68%);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.btn-today-primary:hover::after,
.btn-primary:hover::after,
.btn-reflect-primary:hover::after {
  transform: translateX(100%);
}

.btn-today-primary {
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 16px;
  letter-spacing: 0.4px;
}

.today-secondary {
  opacity: 1;
}

.today-secondary .alloc-box,
.today-secondary .xp-card,
.today-secondary .qs-card,
.today-secondary .gr-dash-card,
.today-secondary .brain-card,
.today-secondary .wealth-tree-section,
.today-secondary .compound-card,
.today-secondary .flywheel-card,
.today-secondary .protocol-map-card,
.today-secondary .ns-card,
.today-secondary .history-empty,
.today-secondary .event-history-list,
.today-secondary .deck-area,
.today-secondary .slider-item,
.today-secondary .income-block,
.today-secondary .total-check-card {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.today-offer-card {
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 18px;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.today-offer-why {
  font-size: 10px;
  margin-bottom: 6px;
}

.today-offer-title {
  font-size: 15px;
  line-height: 1.35;
}

.today-offer-sub {
  font-size: 12px;
  line-height: 1.55;
}

.btn-today-offer {
  min-height: 42px;
  border-radius: 12px;
}

.play-story-card,
.reflect-story-card,
.play-outcome-card {
  padding: 16px;
  margin-bottom: 16px;
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
}

.play-story-kicker,
.reflect-kicker,
.play-outcome-kicker,
.modal-story-kicker {
  color: var(--text-secondary);
  letter-spacing: 1.4px;
}

.play-story-title,
.reflect-title,
.play-outcome-title {
  font-size: 20px;
  line-height: 1.16;
  margin-bottom: 8px;
}

.play-story-sub,
.reflect-sub,
.play-outcome-sub {
  font-size: 13px;
  line-height: 1.6;
}

.reflect-insight-card,
.review-stat-card,
.review-meter-card,
.review-coach-card,
.premium-points div,
.review-detail-row,
.product-price {
  backdrop-filter: blur(6px);
}

.deck-area {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18);
}

.btn-draw-large,
.btn-draw,
.btn-allocate,
.btn-confirm-alloc,
.btn-auto,
.btn-secondary {
  min-height: 44px;
}

.modal-overlay {
  backdrop-filter: blur(12px);
}

.modal-box {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 34px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.review-box,
.premium-trigger-box,
.product-action-box {
  padding: 28px 22px;
  border-radius: 28px;
}

.review-title,
.premium-title,
.product-title {
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.review-sub,
.premium-sub,
.product-sub {
  font-size: 13px;
  line-height: 1.65;
  max-width: 46ch;
  margin: 0 auto 16px;
}

.review-persona {
  max-width: 100%;
  font-size: 12px;
  line-height: 1.45;
}

.review-trend,
.review-confidence {
  font-size: 12px;
  line-height: 1.6;
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}

.review-meter-grid,
.review-grid,
.review-coach-grid {
  gap: 12px;
}

.review-meter-card {
  padding: 12px;
}

.review-stat-card {
  padding: 14px;
}

.review-stat-value {
  font-size: 14px;
}

.review-story,
.product-price {
  padding: 14px;
  border-radius: 16px;
  line-height: 1.6;
}

.review-detail-list {
  gap: 10px;
  margin-bottom: 18px;
}

.review-detail-row {
  align-items: center;
  padding: 12px 14px;
}

.review-detail-value {
  max-width: 45%;
}

.review-coach-card {
  padding: 14px;
  border-radius: 16px;
}

.review-coach-copy {
  line-height: 1.65;
}

.premium-points {
  gap: 10px;
}

.premium-points div {
  position: relative;
  padding-left: 36px;
}

.premium-points div::before {
  content: '→';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-weight: 700;
}

.review-actions,
.premium-actions,
.product-actions {
  gap: 12px;
}

.btn-primary,
.btn-secondary,
.btn-today-offer,
.btn-auto,
.btn-confirm-alloc,
.btn-draw,
.btn-allocate {
  border-radius: 14px;
}

.bottom-nav {
  background:
    linear-gradient(180deg, rgba(10, 10, 15, 0.88), rgba(10, 10, 15, 0.98)),
    var(--bg-neural);
  backdrop-filter: blur(14px);
  border-top-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.16);
}

.bnav-btn {
  border-radius: 14px;
}

.bnav-btn.active {
  background: rgba(0, 212, 170, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.history-empty {
  border-radius: 18px;
}

html.vinar-embed {
  --top-nav-h: 0px;
  --month-bar-h: 0px;
}
html.vinar-embed .top-nav,
html.vinar-embed .month-bar {
  display: none !important;
}

@media (max-width: 480px) {
  .top-nav {
    padding: 0 12px;
  }

  .month-bar {
    padding: 8px 12px 10px;
    align-items: flex-start;
  }

  .today-title,
  .review-title,
  .premium-title,
  .product-title {
    font-size: 22px;
  }

  .today-hero-card,
  .play-story-card,
  .reflect-story-card,
  .play-outcome-card,
  .review-box,
  .premium-trigger-box,
  .product-action-box {
    border-radius: 22px;
  }

  .review-detail-row {
    gap: 6px;
    padding: 10px 12px;
  }

  .review-detail-value {
    max-width: 100%;
    text-align: left;
  }

  .review-box {
    max-height: min(92vh, 760px);
  }

  .review-actions {
    margin-top: 12px;
    padding-top: 12px;
  }

  .today-outcome-grid,
  .today-mission-board {
    grid-template-columns: 1fr;
  }

  .today-contract-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .today-contract-value {
    text-align: left;
  }

  .today-learning-actions {
    flex-direction: column;
  }

  .btn-mode-primary,
  .btn-mode-chip {
    width: 100%;
    justify-content: center;
  }

  .gr-progress-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .gr-progress-toggle {
    width: 100%;
    text-align: center;
  }
}

/* ── Wallet HD Context Strip ─────────────────────────── */
.wallet-hd-strip {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: rgba(167,139,250,.08);
  border: 1px solid rgba(167,139,250,.2); border-radius: 12px;
}
.wallet-hd-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.wallet-hd-text { display: flex; flex-direction: column; gap: 3px; }
.wallet-hd-type { font-size: 11px; font-weight: 700; color: var(--accent-purple, #a78bfa); text-transform: uppercase; letter-spacing: .5px; }
.wallet-hd-tip { font-size: 12px; color: var(--text-primary, #e2e8f0); line-height: 1.55; }

/* =========================================================
   UX SIMPLIFY - Guided start, help bubble, story steps
   ========================================================= */
.today-stage-strip {
  position: relative;
}

.today-help-wrap {
  margin-left: auto;
  position: relative;
}

.today-help-trigger {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.today-help-bubble {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(320px, 84vw);
  border-radius: 12px;
  border: 1px solid rgba(0,180,216,0.35);
  background: rgba(5, 16, 22, 0.96);
  box-shadow: 0 16px 30px rgba(0,0,0,0.35);
  padding: 10px 11px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  z-index: 9;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.today-help-wrap:hover .today-help-bubble,
.today-help-wrap.is-open .today-help-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.today-help-title {
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #bdefff;
  margin-bottom: 6px;
}

.today-help-line {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.today-storyline {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  margin-bottom: 12px;
  scrollbar-width: thin;
}

.today-story-step {
  flex: 1 0 150px;
  min-height: 68px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  padding: 8px 10px;
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
}

.today-story-step-order {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0,180,216,0.35);
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  color: #bfefff;
}

.today-story-step-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.today-story-step-status {
  font-size: 11px;
  color: var(--text-ghost);
  line-height: 1.2;
}

.today-story-step.active {
  border-color: rgba(57,255,20,0.55);
  background: rgba(57,255,20,0.1);
  box-shadow: 0 0 0 1px rgba(57,255,20,0.2);
}

.today-story-step.active .today-story-step-order {
  border-color: rgba(57,255,20,0.5);
  color: #dfffe8;
}

.today-story-step.done {
  border-color: rgba(0,212,170,0.35);
}

.today-story-step.done .today-story-step-status {
  color: #b7f8e7;
}

.today-story-step.locked {
  opacity: 0.5;
}

.today-start-cue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px dashed rgba(57,255,20,0.45);
  background: rgba(57,255,20,0.08);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.today-start-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #39ff14;
  margin-top: 5px;
  box-shadow: 0 0 10px rgba(57,255,20,0.75);
}

.today-start-copy {
  flex: 1;
}

.today-start-title {
  font-size: 12px;
  color: #deffea;
  font-weight: 700;
  line-height: 1.3;
}

.today-start-sub {
  font-size: 11px;
  color: #b7eac8;
  line-height: 1.4;
}

.today-start-dismiss {
  border: 0;
  background: transparent;
  color: #b7eac8;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
}

.btn-today-primary.pulse-cta {
  animation: today-cta-pulse 1.4s ease-in-out infinite;
}

@keyframes today-cta-pulse {
  0%, 100% { box-shadow: 0 0 14px rgba(57,255,20,0.24); }
  50% { box-shadow: 0 0 24px rgba(57,255,20,0.5); }
}

@media (max-width: 680px) {
  .today-help-bubble {
    right: -8px;
    width: min(300px, 90vw);
  }

  .today-story-step {
    flex-basis: 138px;
  }
}
