/* ═══════════════════════════════════════════════════════════
   VinAmber Relationship Growth Tracker — High-End Luxury Edition
   Breathtaking Glassmorphic Canvas + Silk-Champagne & Velvet Rose
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* High-End Luxurious Silk-Champagne & Velvet Surfaces */
  --bg-base:         #fffbfa;
  --bg-gradient:     radial-gradient(at 0% 0%, rgba(255, 238, 243, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(254, 247, 228, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(246, 236, 255, 0.95) 0px, transparent 55%), #fffcfc;
  --bg-surface:      rgba(255, 255, 255, 0.78);
  --bg-surface-dim:  rgba(245, 243, 247, 0.55);
  --bg-surface-tint: rgba(254, 238, 244, 0.82);
  --bg-card:         rgba(255, 255, 255, 0.72);
  --bg-card-hover:   rgba(255, 255, 255, 0.92);
  --bg-elevated:     #ffffff;
  --bg-sidebar:      rgba(255, 255, 255, 0.68);

  /* Curated Luxurious Velvet Crimson Rose Palette */
  --primary:         #cf2a5e;
  --primary-light:   #e85282;
  --primary-lighter: #fff0f4;
  --primary-surface: rgba(255, 235, 241, 0.5);
  --primary-on:      #ffffff;

  /* Premium Warm Coral Gold Palette (Nigeria Wedding Context) */
  --secondary:       #df7215;
  --secondary-light: #f58e33;
  --secondary-lighter:#fff6eb;
  --secondary-surface:rgba(255, 246, 235, 0.5);

  /* Deep Royal Violet Tertiary Palette */
  --tertiary:        #5f3dc4;
  --tertiary-light:  #7048e8;
  --tertiary-lighter:#f3f0ff;

  /* Neutral Luxury Tones */
  --neutral-50:  #fafafb;
  --neutral-100: #f5f4f7;
  --neutral-200: #e7e5eb;
  --neutral-300: #cfcbd6;
  --neutral-400: #9b95a6;
  --neutral-500: #746d80;
  --neutral-600: #554e61;
  --neutral-700: #3c3745;
  --neutral-800: #211e26;
  --neutral-900: #121014;

  /* Status Colors (Curated HSLs) */
  --green:  #208537;  --green-bg:  #e7f6eb;  --green-light: #34a84e;
  --yellow: #cf7100;  --yellow-bg: #fff8e5;  --yellow-light:#f7b731;
  --orange: #c4400e;  --orange-bg: #fff1eb;  --orange-light:#fa8231;
  --red:    #b82121;  --red-bg:    #fdf0f0;  --red-light:  #eb3b5a;
  --blue:   #1265b5;  --blue-bg:   #eaf2fa;  --blue-light: #2d98da;
  --purple: #5f3dc4;  --purple-bg: #f5f2fd;  --purple-light:#a55eea;

  /* Elegant Diamond-Thin Borders */
  --border:        rgba(224, 218, 232, 0.5);
  --border-glass:  rgba(255, 255, 255, 0.65);
  --border-hover:  rgba(207, 42, 94, 0.25);
  --border-accent: rgba(207, 42, 94, 0.3);
  --border-focus:  rgba(207, 42, 94, 0.55);

  /* High Contrast Luxury Typography */
  --text-primary:   #211e26;
  --text-secondary: #554e61;
  --text-tertiary:  #8b8396;
  --text-accent:    #cf2a5e;
  --text-on-primary:#ffffff;

  /* Typography Stack */
  --font-body:    'Inter', 'Google Sans', -apple-system, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --s-2:2px; --s-4:4px; --s-6:6px; --s-8:8px; --s-12:12px;
  --s-16:16px; --s-20:20px; --s-24:24px; --s-32:32px; --s-40:40px; --s-48:48px; --s-64:64px;

  /* Border Radii */
  --r-xs:  8px;  --r-sm:  10px;  --r-md: 14px;
  --r-lg: 20px;  --r-xl: 24px;  --r-2xl:32px;
  --r-full: 9999px;

  /* Luxury Ambient Glow Shadows */
  --shadow-1: 0 4px 20px rgba(207, 42, 94, 0.02), 0 2px 8px rgba(33,30,38,0.01);
  --shadow-2: 0 8px 30px rgba(207, 42, 94, 0.05), 0 4px 12px rgba(33,30,38,0.02);
  --shadow-3: 0 16px 40px rgba(207, 42, 94, 0.09), 0 8px 20px rgba(33,30,38,0.03);
  --shadow-4: 0 24px 60px rgba(207, 42, 94, 0.14), 0 12px 28px rgba(33,30,38,0.04);
  --shadow-glow: 0 0 0 4px rgba(207, 42, 94, 0.15);

  /* Motion & Micro-animations */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-decelerate: cubic-bezier(0, 0, 0.2, 1);
  --ease-accelerate: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 150ms; --dur-medium: 280ms; --dur-long: 450ms; --dur-longer: 600ms;

  --sidebar-w: 276px;
}

/* ── pre-defined Luxurious Color Themes ── */
body[data-theme="amethyst"] {
  --primary:         #7c3aed;
  --primary-light:   #a78bfa;
  --primary-lighter: #f5f3ff;
  --primary-surface: rgba(245, 243, 255, 0.5);
  --text-accent:    #7c3aed;
  --border-hover:  rgba(124, 58, 237, 0.25);
  --border-accent: rgba(124, 58, 237, 0.3);
  --border-focus:  rgba(124, 58, 237, 0.55);
  --bg-gradient: radial-gradient(at 0% 0%, rgba(243, 232, 255, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(254, 247, 228, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(230, 242, 255, 0.95) 0px, transparent 55%), #fdfcff;
}
body[data-theme="emerald"] {
  --primary:         #059669;
  --primary-light:   #34d399;
  --primary-lighter: #ecfdf5;
  --primary-surface: rgba(236, 253, 245, 0.5);
  --text-accent:    #059669;
  --border-hover:  rgba(5, 150, 105, 0.25);
  --border-accent: rgba(5, 150, 105, 0.3);
  --border-focus:  rgba(5, 150, 105, 0.55);
  --bg-gradient: radial-gradient(at 0% 0%, rgba(209, 250, 229, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(254, 247, 228, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(224, 242, 254, 0.95) 0px, transparent 55%), #fcfdfc;
}
body[data-theme="sapphire"] {
  --primary:         #2563eb;
  --primary-light:   #60a5fa;
  --primary-lighter: #eff6ff;
  --primary-surface: rgba(239, 246, 255, 0.5);
  --text-accent:    #2563eb;
  --border-hover:  rgba(37, 99, 235, 0.25);
  --border-accent: rgba(37, 99, 235, 0.3);
  --border-focus:  rgba(37, 99, 235, 0.55);
  --bg-gradient: radial-gradient(at 0% 0%, rgba(219, 234, 254, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(254, 247, 228, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(245, 243, 255, 0.95) 0px, transparent 55%), #fcfdff;
}
body[data-theme="ruby"] {
  --primary:         #dc2626;
  --primary-light:   #f87171;
  --primary-lighter: #fef2f2;
  --primary-surface: rgba(254, 242, 242, 0.5);
  --text-accent:    #dc2626;
  --border-hover:  rgba(220, 38, 38, 0.25);
  --border-accent: rgba(220, 38, 38, 0.3);
  --border-focus:  rgba(220, 38, 38, 0.55);
  --bg-gradient: radial-gradient(at 0% 0%, rgba(254, 226, 226, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(254, 247, 228, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(245, 243, 255, 0.95) 0px, transparent 55%), #fffcfc;
}
body[data-theme="sunset"] {
  --primary:         #ea580c;
  --primary-light:   #f97316;
  --primary-lighter: #fff7ed;
  --primary-surface: rgba(255, 247, 237, 0.5);
  --text-accent:    #ea580c;
  --border-hover:  rgba(234, 88, 12, 0.25);
  --border-accent: rgba(234, 88, 12, 0.3);
  --border-focus:  rgba(234, 88, 12, 0.55);
  --bg-gradient: radial-gradient(at 0% 0%, rgba(255, 237, 213, 0.95) 0px, transparent 55%), radial-gradient(at 100% 0%, rgba(204, 251, 241, 0.98) 0px, transparent 55%), radial-gradient(at 100% 100%, rgba(245, 243, 255, 0.95) 0px, transparent 55%), #fffdfc;
}

/* ── Reset & Core ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: var(--text-accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, select, textarea { font-family: inherit; }

/* ── Animated Background ────────────────── */
#bgCanvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

.ambient-glow {
  position: fixed; border-radius: 50%;
  filter: blur(150px); pointer-events: none; z-index: 0;
  opacity: 0.85;
}
.glow-1 { width: 650px; height: 650px; top: -15%; left: -10%; background: radial-gradient(circle, rgba(207,42,94,0.08) 0%, transparent 70%); animation: glowFloat1 28s infinite ease-in-out; }
.glow-2 { width: 600px; height: 600px; bottom: -15%; right: -10%; background: radial-gradient(circle, rgba(223,114,21,0.07) 0%, transparent 70%); animation: glowFloat2 32s infinite ease-in-out; }
.glow-3 { width: 550px; height: 550px; top: 35%; left: 35%; background: radial-gradient(circle, rgba(95,61,196,0.06) 0%, transparent 70%); animation: glowFloat3 36s infinite ease-in-out; }

@keyframes glowFloat1 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 80px) scale(1.08); } }
@keyframes glowFloat2 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, -60px) scale(1.1); } }
@keyframes glowFloat3 { 0%,100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(calc(-50% + 40px), calc(-50% - 50px)) scale(1.05); } }

/* ── Layout ──────────────────────────────────────── */
.app-container { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ── Sidebar (Premium Glassmorphic) ──────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform var(--dur-long) var(--ease-decelerate);
  box-shadow: 4px 0 30px rgba(214,51,108,0.02);
}

.sidebar-brand {
  padding: var(--s-32) var(--s-24) var(--s-20);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand h1 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.brand-sub {
  font-size: 0.68rem; color: var(--text-tertiary);
  margin-top: var(--s-6);
  letter-spacing: 2px; text-transform: uppercase; font-weight: 700;
}

.sidebar-nav {
  flex: 1; padding: var(--s-16) var(--s-12);
  display: flex; flex-direction: column; gap: var(--s-4);
  overflow-y: auto;
}

.nav-section-label {
  font-size: 0.62rem; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 800;
  padding: var(--s-16) var(--s-16) var(--s-6);
}

.nav-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-12) var(--s-16);
  border-radius: var(--r-md);
  color: var(--text-secondary);
  font-size: 0.85rem; font-weight: 600;
  transition: all var(--dur-medium) var(--ease-spring);
  width: 100%; text-align: left;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--primary-surface);
  transform: translateX(4px);
}

.nav-item.active {
  color: var(--primary-on);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(214, 51, 108, 0.25);
  transform: scale(1.02) translateX(2px);
}

.nav-icon { font-size: 1.15rem; width: 24px; text-align: center; flex-shrink: 0; }
.nav-label { flex: 1; }

.nav-badge {
  background: var(--primary-light);
  color: var(--text-on-primary);
  font-size: 0.6rem; font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--r-full);
  min-width: 24px; text-align: center;
  box-shadow: 0 2px 8px rgba(214, 51, 108, 0.2);
}

.sidebar-footer {
  padding: var(--s-20) var(--s-24);
  border-top: 1px solid var(--border);
  background: rgba(244, 245, 249, 0.4);
}
.sidebar-footer .quote {
  font-size: 0.72rem; color: var(--text-secondary);
  font-style: italic; line-height: 1.6;
}
.sidebar-actions {
  display: flex; gap: var(--s-6); margin-top: var(--s-16); flex-wrap: wrap;
}

/* ── Main Content ────────────────────────────────── */
.main-content {
  flex: 1; margin-left: var(--sidebar-w);
  min-height: 100vh; display: flex; flex-direction: column;
  background: transparent;
  position: relative; z-index: 1;
}

.page-header {
  padding: var(--s-32) var(--s-48) var(--s-24);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--s-16);
}
.page-header h2 {
  font-family: var(--font-display);
  font-size: 1.95rem; font-weight: 800; color: var(--text-primary);
  letter-spacing: -0.75px;
}
.page-desc { font-size: 0.85rem; color: var(--text-secondary); margin-top: var(--s-4); }

.page-body { flex: 1; padding: var(--s-32) var(--s-48) var(--s-64); }

.section-content { display: none; animation: pageEnter var(--dur-longer) var(--ease-spring); }
.section-content.active { display: block; }

/* ── High-Fidelity Glass Cards ───────────────────── */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  transition: all var(--dur-medium) var(--ease-spring);
  position: relative; overflow: hidden;
}

.glass-card:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-4px) scale(1.008);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.glass-card.no-hover:hover {
  transform: none;
  box-shadow: var(--shadow-1);
  border-color: var(--border-glass);
}

/* Luxury Top Accent Line */
.card-accent-top::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--secondary-light));
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

/* ══════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════ */

.countdown-banner {
  background: linear-gradient(120deg, rgba(255, 240, 244, 0.8) 25%, rgba(254, 246, 226, 0.92) 50%, rgba(255, 240, 244, 0.8) 75%);
  background-size: 200% auto;
  animation: goldShimmer 7s linear infinite;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  outline: 2px dashed rgba(207, 42, 94, 0.15);
  outline-offset: -6px;
  border-radius: var(--r-xl);
  padding: var(--s-24) var(--s-32);
  margin-bottom: var(--s-24);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--s-16);
  box-shadow: 0 8px 30px rgba(207, 42, 94, 0.04), var(--shadow-1);
  transition: all var(--dur-medium) var(--ease-spring);
  position: relative;
}
.countdown-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(207, 42, 94, 0.08), var(--shadow-2);
  outline-color: rgba(207, 42, 94, 0.35);
}
.countdown-left { z-index: 1; }
.countdown-label { font-size: 0.65rem; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-weight: 800; }
.countdown-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); margin-top: var(--s-4); }
.countdown-right { display: flex; gap: var(--s-8); z-index: 1; align-items: center; }
.countdown-unit {
  text-align: center; padding: var(--s-8) var(--s-12);
  background: rgba(255, 255, 255, 0.9); border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.8); min-width: 54px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-medium) var(--ease-spring);
}
.countdown-unit:hover {
  transform: scale(1.08);
}
.countdown-number { font-size: 1.55rem; font-weight: 900; color: var(--primary); line-height: 1; }
.countdown-unit-label { font-size: 0.52rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ---- Settings button inside banner overlapping border ---- */
.countdown-banner .settings-btn {
  position: absolute;
  top: -14px;
  right: 24px;
  z-index: 10;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--dur-medium), background var(--dur-medium), border-color var(--dur-medium);
}
.countdown-banner .settings-btn:hover {
  background: var(--primary-lighter);
  border-color: var(--primary);
  transform: rotate(30deg) scale(1.05);
}

@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Monthly 14th celebration glow */
.countdown-banner.anniversary-glow {
  background: linear-gradient(120deg, rgba(255, 220, 230, 0.9) 20%, rgba(255, 235, 200, 0.95) 50%, rgba(255, 220, 230, 0.9) 80%);
  background-size: 200% auto;
  animation: goldShimmer 4s linear infinite, celebPulse 2s ease-in-out infinite;
  outline: 2px dashed rgba(207, 42, 94, 0.35);
  box-shadow: 0 8px 40px rgba(207, 42, 94, 0.12), 0 0 60px rgba(207, 42, 94, 0.06), var(--shadow-2);
}
.countdown-banner.anniversary-glow .countdown-title {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(207, 42, 94, 0.15);
}
.countdown-banner.anniversary-glow .countdown-number {
  color: var(--primary);
  text-shadow: 0 0 12px rgba(207, 42, 94, 0.2);
}
@keyframes celebPulse {
  0%, 100% { box-shadow: 0 8px 40px rgba(207, 42, 94, 0.12), 0 0 60px rgba(207, 42, 94, 0.06), var(--shadow-2); }
  50% { box-shadow: 0 8px 50px rgba(207, 42, 94, 0.2), 0 0 80px rgba(207, 42, 94, 0.1), var(--shadow-3); }
}

.streak-widget {
  display: flex; align-items: center; gap: var(--s-16);
  padding: var(--s-16) var(--s-28);
  background: rgba(255, 255, 255, 0.65); border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--r-lg); margin-bottom: var(--s-24);
  box-shadow: var(--shadow-1);
}
.streak-fire { font-size: 2.2rem; animation: fireWobble 2s infinite ease-in-out; }
.streak-count { font-size: 1.3rem; font-weight: 900; color: var(--orange); }
.streak-label { font-size: 0.82rem; color: var(--text-secondary); }
@keyframes fireWobble { 0%,100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(4deg) scale(1.15); } }

.dashboard-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-20); margin-bottom: var(--s-32);
}

.stat-card {
  padding: var(--s-24); position: relative; overflow: hidden;
  background: var(--bg-card);
}
.stat-card .stat-icon-bg {
  position: absolute; top: -8px; right: -8px;
  font-size: 4.5rem; opacity: 0.08; pointer-events: none;
}
.stat-header { display: flex; align-items: center; gap: var(--s-8); margin-bottom: var(--s-12); }
.stat-emoji { font-size: 1.4rem; }
.stat-title { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1.2px; font-weight: 800; }
.stat-value { font-size: 2.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.stat-desc { font-size: 0.75rem; color: var(--text-tertiary); margin-top: var(--s-8); }

.stat-card.green .stat-value { color: var(--green); }
.stat-card.yellow .stat-value { color: var(--yellow); }
.stat-card.red .stat-value { color: var(--red); }
.stat-card.purple .stat-value { color: var(--purple); }
.stat-card.blue .stat-value { color: var(--blue); }

.dash-section-title {
  display: flex; align-items: center; gap: var(--s-12);
  font-size: 0.75rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-bottom: var(--s-16); margin-top: var(--s-8);
}
.dash-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Health gauge row */
.health-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-24); margin-bottom: var(--s-32);
}
.health-gauge-wrap {
  padding: var(--s-32);
  display: flex; align-items: center; justify-content: center;
}
.health-gauge { position: relative; width: 180px; height: 180px; }
.health-gauge svg { transform: rotate(-90deg); }
.health-gauge .gauge-bg { fill: none; stroke: var(--neutral-200); stroke-width: 10; }
.health-gauge .gauge-fill { fill: none; stroke: url(#gaugeGrad); stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.5s var(--ease-decelerate); }
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-score { font-size: 2.8rem; font-weight: 900; color: var(--primary); }
.gauge-label { font-size: 0.62rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1.5px; margin-top: var(--s-4); }

.radar-wrap { padding: var(--s-24); display: flex; align-items: center; justify-content: center; }
#radarCanvas { max-width: 100%; height: auto; }

/* Activity feed */
.activity-feed { display: flex; flex-direction: column; gap: var(--s-6); max-height: 300px; overflow-y: auto; }
.activity-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-12) var(--s-16);
  background: var(--bg-surface-dim); border-radius: var(--r-md);
  font-size: 0.82rem; transition: all var(--dur-short);
  border: 1px solid transparent;
}
.activity-item:hover { background: var(--primary-lighter); border-color: var(--border-accent); }
.activity-emoji { font-size: 1.15rem; }
.activity-text { flex: 1; color: var(--text-secondary); }
.activity-text strong { color: var(--text-primary); font-weight: 600; }
.activity-time { font-size: 0.62rem; color: var(--text-tertiary); white-space: nowrap; }

/* ══════════════════════════════════════════════════
   ENTRY CARDS
   ══════════════════════════════════════════════════ */
.entries-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--s-20); }

.entry-card { padding: var(--s-24); }
.entry-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-12); }
.entry-meta { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.entry-date { font-size: 0.68rem; color: var(--text-tertiary); font-weight: 500; }

.entry-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.badge-category { background: var(--secondary-lighter); color: var(--secondary); }
.badge-person { background: var(--primary-lighter); color: var(--primary); }
.badge-about { background: var(--tertiary-lighter); color: var(--tertiary); }

.entry-title { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: var(--s-6); }
.entry-desc { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: var(--s-12); }

.entry-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: var(--s-8);
  padding-top: var(--s-12); border-top: 1px solid var(--border);
}
.entry-actions { display: flex; gap: var(--s-6); }

.btn-icon {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  background: var(--bg-surface-dim);
  color: var(--text-secondary); font-size: 0.78rem;
  transition: all var(--dur-short);
  border: 1px solid transparent;
}
.btn-icon:hover { background: var(--primary-lighter); color: var(--primary); border-color: var(--border-accent); }
.btn-icon.delete:hover { color: var(--red); background: var(--red-bg); border-color: rgba(201,42,42,0.2); }

.growth-score { display: flex; align-items: center; gap: var(--s-8); }
.score-bar-track { width: 80px; height: 5px; background: var(--neutral-200); border-radius: var(--r-full); overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--primary), var(--secondary-light)); transition: width 1s var(--ease-decelerate); }
.score-number { font-size: 0.82rem; font-weight: 700; color: var(--primary); }

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: var(--r-full);
  font-size: 0.6rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.status-resolved { background: var(--green-bg); color: var(--green); }
.status-improving { background: var(--yellow-bg); color: var(--yellow); }
.status-persistent { background: var(--orange-bg); color: var(--orange); }
.status-worsening { background: var(--red-bg); color: var(--red); }
.status-needs-discussion { background: var(--purple-bg); color: var(--purple); }
.status-in-progress { background: var(--blue-bg); color: var(--blue); }
.status-completed { background: var(--green-bg); color: var(--green); }
.status-not-started { background: var(--neutral-100); color: var(--text-tertiary); }
.status-on-hold { background: var(--yellow-bg); color: var(--yellow); }

.severity-minor { background: var(--blue-bg); color: var(--blue); }
.severity-moderate { background: var(--orange-bg); color: var(--orange); }
.severity-serious { background: var(--red-bg); color: var(--red); }

.trend-badge { font-size: 0.7rem; font-weight: 600; }
.trend-better { color: var(--green); } .trend-same { color: var(--yellow); }
.trend-worse { color: var(--red); } .trend-inconsistent { color: var(--purple); }
.present-yes { color: var(--green); } .present-fading { color: var(--orange); }
.present-no { color: var(--red); } .present-improved { color: var(--blue); }

/* ══════════════════════════════════════════════════
   GOALS
   ══════════════════════════════════════════════════ */
.goal-card { padding: var(--s-24); }
.goal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-6); gap: var(--s-8); }
.goal-why { font-size: 0.78rem; color: var(--text-secondary); font-style: italic; margin-bottom: var(--s-16); }
.progress-bar-track { width: 100%; height: 6px; background: var(--neutral-200); border-radius: var(--r-full); overflow: hidden; margin-bottom: var(--s-16); }
.progress-bar-fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--primary), var(--secondary-light)); transition: width 1s var(--ease-decelerate); position: relative; }
.progress-bar-fill::after { content: ''; position: absolute; right: 0; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 6px rgba(214,51,108,0.3); }
.goal-notes { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: var(--s-16); line-height: 1.6; }
.goal-meta { display: flex; gap: var(--s-16); flex-wrap: wrap; font-size: 0.68rem; color: var(--text-tertiary); }
.goal-meta-item { display: flex; align-items: center; gap: 4px; }

/* ══════════════════════════════════════════════════
   REFLECTIONS
   ══════════════════════════════════════════════════ */
.reflection-timeline { position: relative; padding-left: var(--s-40); }
.reflection-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--primary), var(--secondary-light), var(--tertiary-light), var(--neutral-300));
}
.reflection-card { padding: var(--s-24); margin-bottom: var(--s-24); }
.reflection-card::before {
  content: ''; position: absolute;
  left: calc(-1 * var(--s-40) + 9px); top: var(--s-24);
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary-light));
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px var(--primary-lighter);
}
.reflection-month { display: flex; align-items: center; gap: var(--s-12); margin-bottom: var(--s-16); flex-wrap: wrap; }
.reflection-month-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }

.mood-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: var(--r-full); font-size: 0.65rem; font-weight: 600; }
.mood-thriving { background: var(--green-bg); color: var(--green); }
.mood-growing { background: var(--yellow-bg); color: var(--yellow); }
.mood-needs-care { background: var(--orange-bg); color: var(--orange); }
.mood-reconnecting { background: var(--red-bg); color: var(--red); }
.mood-rebuilding { background: var(--blue-bg); color: var(--blue); }

.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.reflection-item {
  padding: var(--s-16); background: var(--bg-surface-dim);
  border-radius: var(--r-md); border: 1px solid var(--border);
  transition: all var(--dur-short);
}
.reflection-item:hover { border-color: var(--border-accent); background: var(--primary-surface); }
.reflection-item-label { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; margin-bottom: var(--s-4); }
.reflection-item-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.55; }
.reflection-message { grid-column: 1 / -1; background: var(--primary-surface); border-color: var(--border-accent); }
.reflection-message .reflection-item-text { font-style: italic; color: var(--primary); }

/* ══════════════════════════════════════════════════
   MILESTONES
   ══════════════════════════════════════════════════ */
.milestones-timeline { position: relative; padding-left: var(--s-48); }
.milestones-timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, #daa520, var(--secondary-light), var(--neutral-300));
}
.milestone-card { padding: var(--s-20) var(--s-24); margin-bottom: var(--s-16); }
.milestone-card::before {
  content: ''; position: absolute; left: calc(-1 * var(--s-48) + 11px); top: var(--s-20);
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, #daa520, var(--secondary-light));
  border: 3px solid var(--bg-base);
  box-shadow: 0 0 0 2px rgba(218,165,32,0.2);
}
.milestone-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-8); }
.milestone-date { font-size: 0.68rem; color: var(--text-tertiary); }
.milestone-title { font-size: 1rem; font-weight: 700; margin-top: var(--s-4); }
.milestone-desc { font-size: 0.82rem; color: var(--text-secondary); margin-top: var(--s-8); line-height: 1.55; }

/* ══════════════════════════════════════════════════
   MOOD CHECK-IN
   ══════════════════════════════════════════════════ */
.mood-checkin-card { padding: var(--s-32); text-align: center; margin-bottom: var(--s-32); }
.mood-question { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-bottom: var(--s-24); color: var(--text-primary); }
.mood-picker { display: flex; justify-content: center; gap: var(--s-12); flex-wrap: wrap; }

.mood-option {
  display: flex; flex-direction: column; align-items: center; gap: var(--s-6);
  padding: var(--s-16) var(--s-20); border-radius: var(--r-lg);
  background: var(--bg-surface-dim); border: 2px solid var(--border);
  cursor: pointer; transition: all var(--dur-medium) var(--ease-spring); min-width: 80px;
}
.mood-option:hover { transform: scale(1.06); border-color: var(--primary); background: var(--primary-lighter); }
.mood-option.selected { border-color: var(--primary); box-shadow: var(--shadow-glow); background: var(--primary-lighter); transform: scale(1.08); }
.mood-option-emoji { font-size: 2rem; }
.mood-option-label { font-size: 0.62rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Mood Calendar View ───────────────────────── */
.mood-calendar-container {
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  width: 100%;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(10px);
  border-radius: var(--r-md);
  padding: var(--s-12);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.mood-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}

.mood-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.mood-calendar-day {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--bg-surface-dim);
  border: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: default;
  transition: all var(--dur-short) ease;
  min-height: 64px;
}

.mood-calendar-day:hover {
  transform: translateY(-2px);
  background: var(--bg-surface);
  border-color: var(--primary-light) !important;
  box-shadow: var(--shadow-glow-sm), var(--shadow-2);
  z-index: 5;
}

.mood-calendar-day.empty {
  opacity: 0.12;
  background: transparent;
  border: 1px dashed var(--border);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.mood-calendar-day.today {
  border-width: 2px;
  border-color: var(--primary) !important;
  background: var(--primary-lighter);
  box-shadow: var(--shadow-glow-sm);
}

.mood-calendar-day .day-number {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-tertiary);
}

.mood-calendar-day.today .day-number {
  color: var(--primary);
  font-weight: 800;
}

.mood-calendar-day .mood-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  width: 100%;
}

.mood-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-full);
  font-size: 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow: var(--shadow-1);
  transition: all var(--dur-short) ease;
}

.mood-avatar-badge.logged {
  transform: scale(1.02);
}

.mood-avatar-badge.logged:hover {
  transform: scale(1.2) rotate(6deg);
}

.mood-avatar-badge.vin.empty, .mood-avatar-badge.amba.empty {
  opacity: 0.18;
  font-size: 0.72rem;
  border-style: dashed;
}

.mood-calendar-day .mood-day-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--neutral-900);
  color: #fff;
  border-radius: var(--r-sm);
  padding: var(--s-6) var(--s-12);
  font-size: 0.65rem;
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  box-shadow: var(--shadow-3);
  pointer-events: none;
}

.mood-calendar-day:hover .mood-day-tooltip {
  display: block;
}

/* ══════════════════════════════════════════════════
   DATE IDEAS
   ══════════════════════════════════════════════════ */
.date-idea-card { padding: var(--s-40) var(--s-32); text-align: center; }
.date-idea-emoji { font-size: 4rem; margin-bottom: var(--s-16); animation: floatBounce 3s infinite ease-in-out; }
.date-idea-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: var(--s-8); color: var(--text-primary); }
.date-idea-desc { font-size: 0.88rem; color: var(--text-secondary); max-width: 500px; margin: 0 auto var(--s-12); line-height: 1.6; }
.date-idea-meta { display: flex; justify-content: center; gap: var(--s-12); margin-bottom: var(--s-24); flex-wrap: wrap; }
.date-idea-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 12px; border-radius: var(--r-full);
  font-size: 0.62rem; font-weight: 600;
  background: var(--bg-surface-dim); border: 1px solid var(--border); color: var(--text-secondary);
}
@keyframes floatBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ══════════════════════════════════════════════════
   SEARCH
   ══════════════════════════════════════════════════ */
.search-bar { position: relative; max-width: 400px; }
.search-input {
  width: 100%; padding: 12px 16px 12px 44px;
  border-radius: var(--r-full);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.85rem;
  transition: all var(--dur-short); outline: none;
  box-shadow: var(--shadow-1);
}
.search-input::placeholder { color: var(--text-tertiary); }
.search-input:focus { border-color: var(--primary); box-shadow: var(--shadow-glow), var(--shadow-1); }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--text-tertiary); pointer-events: none; }
.search-results { margin-top: var(--s-16); }

.search-result-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-12) var(--s-16);
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); margin-bottom: var(--s-8);
  cursor: pointer; transition: all var(--dur-short);
  box-shadow: var(--shadow-1);
}
.search-result-item:hover { border-color: var(--border-accent); background: var(--primary-surface); box-shadow: var(--shadow-2); }
.search-result-type { font-size: 1.1rem; }
.search-result-text { flex: 1; }
.search-result-title { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.search-result-preview { font-size: 0.72rem; color: var(--text-tertiary); margin-top: 2px; }

/* ══════════════════════════════════════════════════
   TOOLBAR / FILTERS
   ══════════════════════════════════════════════════ */
.toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s-12); margin-bottom: var(--s-24); }
.toolbar-left { display: flex; align-items: center; gap: var(--s-6); flex-wrap: wrap; }
.filter-btn {
  padding: 6px 16px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 600;
  color: var(--text-secondary); background: var(--bg-surface);
  border: 1px solid var(--border); transition: all var(--dur-short);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-btn:hover { color: var(--primary); border-color: var(--border-accent); background: var(--primary-lighter); }
.filter-btn.active { color: var(--primary); background: var(--primary-lighter); border-color: var(--primary); font-weight: 700; }

/* ══════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: 10px 24px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-on-primary); background: var(--primary);
  border: none; box-shadow: var(--shadow-2);
  transition: all var(--dur-medium) var(--ease-standard);
}
.btn-primary:hover { box-shadow: var(--shadow-3); transform: translateY(-1px); background: var(--primary-light); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary); background: var(--bg-surface);
  border: 1px solid var(--border); transition: all var(--dur-medium);
}
.btn-secondary:hover { background: var(--primary-lighter); border-color: var(--border-accent); }

.btn-danger {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: 10px 24px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  color: #fff; background: var(--red); border: none;
  transition: all var(--dur-medium);
}
.btn-danger:hover { box-shadow: 0 4px 12px rgba(201,42,42,0.25); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: var(--s-8);
  padding: 8px 16px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); background: transparent;
  border: 1px solid transparent; transition: all var(--dur-short);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-surface-dim); border-color: var(--border); }

/* FAB */
.fab {
  position: fixed; bottom: var(--s-32); right: var(--s-32);
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: var(--primary); color: #fff;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(214,51,108,0.3);
  transition: all var(--dur-medium) var(--ease-spring); z-index: 90;
}
.fab:hover { transform: scale(1.1) rotate(90deg); box-shadow: 0 8px 28px rgba(214,51,108,0.4); background: var(--primary-light); }

/* ══════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.3); backdrop-filter: blur(8px);
  z-index: 200; display: none; align-items: center; justify-content: center;
  padding: var(--s-20); animation: fadeIn var(--dur-medium);
}
.modal-overlay.visible { display: flex; }

.modal {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--r-2xl); width: 100%; max-width: 600px;
  max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow-4);
  animation: modalSlideIn var(--dur-long) var(--ease-spring);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-20) var(--s-24); border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2; border-radius: var(--r-2xl) var(--r-2xl) 0 0;
}
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text-primary); }
.modal-close {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--bg-surface-dim); color: var(--text-secondary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-short); border: 1px solid transparent;
}
.modal-close:hover { background: var(--red-bg); color: var(--red); border-color: rgba(201,42,42,0.15); }
.modal-body { padding: var(--s-24); overflow-y: auto; flex: 1; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: var(--s-12);
  padding: var(--s-16) var(--s-24); border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  z-index: 2; border-radius: 0 0 var(--r-2xl) var(--r-2xl);
}

/* ══════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); }
.form-group { display: flex; flex-direction: column; gap: var(--s-4); }
.form-group.full-width { grid-column: 1 / -1; }
.form-label { font-size: 0.65rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }

.form-input, .form-select, .form-textarea {
  padding: 10px 14px; border-radius: var(--r-md);
  background: var(--bg-surface-dim); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.82rem;
  transition: all var(--dur-short); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: var(--shadow-glow);
  background: var(--bg-surface);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d6336c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px;
}
.form-select option { background: var(--bg-surface); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.form-range-group { display: flex; align-items: center; gap: var(--s-16); }
.form-range {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 5px; background: var(--neutral-200); border-radius: var(--r-full); outline: none;
}
.form-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); cursor: pointer; box-shadow: var(--shadow-2);
}
.range-value { font-size: 1.1rem; font-weight: 700; color: var(--primary); min-width: 28px; text-align: center; }

/* ══════════════════════════════════════════════════
   TOAST
   ══════════════════════════════════════════════════ */
.toast-container { position: fixed; top: var(--s-24); right: var(--s-24); z-index: 300; display: flex; flex-direction: column; gap: var(--s-8); }
.toast {
  padding: var(--s-12) var(--s-20); border-radius: var(--r-lg);
  background: var(--bg-surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-3); font-size: 0.82rem; color: var(--text-primary);
  animation: toastSlideIn var(--dur-long) var(--ease-spring);
  display: flex; align-items: center; gap: var(--s-8);
}
.toast.leaving { animation: toastSlideOut var(--dur-medium) var(--ease-standard) forwards; }

.empty-state { text-align: center; padding: var(--s-64) var(--s-24); color: var(--text-tertiary); }
.empty-state-emoji { font-size: 3.5rem; margin-bottom: var(--s-16); opacity: 0.5; }
.empty-state-text { font-size: 0.88rem; margin-bottom: var(--s-20); }

.confirm-actions { display: flex; gap: var(--s-12); margin-top: var(--s-20); justify-content: flex-end; }

/* ══════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════ */
.mobile-toggle {
  display: none; position: fixed; top: var(--s-12); left: var(--s-12);
  z-index: 150; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.2rem;
  align-items: center; justify-content: center; box-shadow: var(--shadow-2);
}
.mobile-home {
  display: none; position: fixed; top: var(--s-12); right: var(--s-12);
  z-index: 150; width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 1.25rem;
  align-items: center; justify-content: center; box-shadow: var(--shadow-2);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.mobile-home:active {
  transform: scale(0.92);
}
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 99; }
.mobile-overlay.visible { display: block; }

@media (max-width: 768px) {
  .mobile-toggle { display: flex; z-index: 10001; }
  .mobile-home { display: flex; z-index: 10001; }
  .sidebar { transform: translateX(-100%); z-index: 10000; }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-4);
    z-index: 10002;
    background: var(--bg-sidebar);
  }
  .mobile-overlay.visible { z-index: 9999; }
  .main-content { margin-left: 0; }
  .page-header { padding: var(--s-24) var(--s-20) var(--s-16); padding-top: calc(var(--s-24) + 48px); }
  .page-body { padding: var(--s-20); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .entries-grid { grid-template-columns: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .reflection-grid { grid-template-columns: 1fr; }
  .health-row { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-left { overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--s-6); }
  #gameCatFilter {
    overflow: visible !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 6px !important;
    padding-bottom: 0 !important;
    margin-bottom: var(--s-16) !important;
  }
  .filter-btn { white-space: nowrap; }
  .fab { bottom: var(--s-16); right: var(--s-16); }
  .modal { max-width: 100%; margin: var(--s-8); }

  /* ── Mobile Budget Table to Cards ── */
  .budget-table-wrap {
    border: none; box-shadow: none; background: transparent;
  }
  .budget-table { display: block; }
  .budget-table thead { display: none; }
  .budget-table tbody { display: block; width: 100%; }
  .budget-table tr {
    display: flex; flex-direction: column;
    padding: var(--s-16) var(--s-20);
    border: 1px solid var(--border) !important;
    border-radius: var(--r-md);
    background: rgba(255, 255, 255, 0.72);
    margin-bottom: var(--s-16);
    box-shadow: var(--shadow-1);
    transition: all var(--dur-medium);
  }
  .budget-table td {
    display: flex !important; justify-content: space-between; align-items: center;
    padding: var(--s-8) 0 !important;
    border-bottom: 1px solid var(--neutral-100) !important;
    width: 100% !important; text-align: right;
  }
  .budget-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-secondary);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
  }
  .budget-table td:last-child {
    border-bottom: none !important;
    border-top: 1px dashed var(--border) !important;
    margin-top: var(--s-8);
    padding-top: var(--s-12) !important;
    justify-content: flex-end !important;
  }
  .budget-table td:last-child::before { display: none; }
}

@media (max-width: 600px) {
  /* ── Mobile Wrapped Checklist ── */
  .wedding-task {
    flex-wrap: wrap; gap: var(--s-8) var(--s-12);
  }
  .wedding-checkbox { margin-top: 0; }
  .wedding-task-text { flex: 1 1 70%; }
  .wedding-task-priority { order: 3; margin-left: 34px; }
  .wedding-task-actions { order: 4; margin-left: auto; }
}

@media (max-width: 550px) {
  /* ── Responsive Mood Picker ── */
  .mood-picker {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--s-12);
  }
  .mood-option {
    padding: var(--s-12) var(--s-8); min-width: 0;
  }
}

@media (max-width: 480px) {
  .page-header h2 { font-size: 1.35rem; }
  .stat-value { font-size: 1.8rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  
  /* ── Fluid Ticket Padding ── */
  .date-idea-card, .game-card-inner {
    padding: var(--s-24) var(--s-16) !important;
  }
  .date-idea-emoji, .game-emoji {
    font-size: 3.2rem !important;
  }
  .date-idea-title, .game-title {
    font-size: 1.25rem !important;
  }
  #gameCard::before { left: -10px; width: 20px; height: 20px; }
  #gameCard::after { right: -10px; width: 20px; height: 20px; }

  /* ── Game Category Filter pills wrapping on small mobile ── */
  #gameCatFilter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 6px !important;
    padding: var(--s-4) 0 !important;
    margin: 0 0 var(--s-20) 0 !important;
    overflow: visible !important;
    scrollbar-width: none !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
  }
  #gameCatFilter::-webkit-scrollbar {
    display: none !important;
  }
  .game-filter-btn {
    padding: 7px 13px !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
  }

  /* ── Stretched Button actions ── */
  .game-actions {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--s-8) !important;
  }
  .game-actions button {
    width: 100% !important;
    justify-content: center !important;
    font-size: 0.82rem !important;
    padding: 12px 20px !important;
  }

  /* ── Compact Achievements Mosaic Grid ── */
  #playedGamesList {
    grid-template-columns: 1fr 1fr !important;
    gap: var(--s-8) !important;
  }
  .played-card {
    padding: var(--s-12) !important;
    border-radius: var(--r-md) !important;
  }
  .played-title {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }
  .played-cat {
    font-size: 0.58rem !important;
  }
}

/* ══════════════════════════════════════════════════
   KEYFRAMES
   ══════════════════════════════════════════════════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pageEnter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalSlideIn { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toastSlideIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastSlideOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }
@keyframes pulseGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(214,51,108,0.15); } 50% { box-shadow: 0 0 16px 4px rgba(214,51,108,0.1); } }
.pulse-glow { animation: pulseGlow 3s infinite; }

/* Scrollbar (subtle) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neutral-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neutral-400); }

::selection { background: rgba(214,51,108,0.15); color: var(--text-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ══════════════════════════════════════════════════
   STORAGE INDICATOR
   ══════════════════════════════════════════════════ */
.storage-indicator {
  display: flex; align-items: center; gap: var(--s-6);
  margin-top: var(--s-8); margin-bottom: var(--s-8);
  padding: var(--s-6) var(--s-12); border-radius: var(--r-full);
  background: var(--bg-surface); border: 1px solid var(--border);
  font-size: 0.6rem; color: var(--text-tertiary);
}
.storage-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neutral-400); flex-shrink: 0;
  transition: background var(--dur-medium);
}
.storage-indicator.connected .storage-dot { background: var(--green); animation: storagePulse 2s infinite; }
.storage-indicator.fallback .storage-dot { background: var(--yellow); }
.storage-indicator.error .storage-dot { background: var(--red); }
@keyframes storagePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ══════════════════════════════════════════════════
   WEDDING PLANNER
   ══════════════════════════════════════════════════ */

/* Sub-tabs */
.wedding-tabs {
  display: flex; gap: var(--s-4);
  padding: var(--s-4); background: var(--bg-surface-dim);
  border-radius: var(--r-full); margin-bottom: var(--s-24);
  border: 1px solid var(--border); width: fit-content;
}
.wedding-tab {
  padding: 8px 20px; border-radius: var(--r-full);
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--dur-medium) var(--ease-standard);
}
.wedding-tab:hover { color: var(--text-primary); background: var(--bg-surface); }
.wedding-tab.active {
  color: var(--text-on-primary); background: var(--primary);
  box-shadow: var(--shadow-2);
}
.wedding-tab-content { display: none; animation: pageEnter var(--dur-longer) var(--ease-decelerate); }
.wedding-tab-content.active { display: block; }

/* Overall progress */
.wedding-progress-bar {
  margin-bottom: var(--s-24); padding: var(--s-20);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
}
.wedding-progress-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-12);
}
.wedding-progress-title { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
.wedding-progress-pct { font-size: 1.3rem; font-weight: 900; color: var(--primary); }
.wedding-progress-track {
  width: 100%; height: 8px; background: var(--neutral-200);
  border-radius: var(--r-full); overflow: hidden;
}
.wedding-progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--primary), var(--secondary-light), var(--green-light));
  transition: width 1s var(--ease-decelerate);
}

/* Checklist categories */
.wedding-checklist { display: flex; flex-direction: column; gap: var(--s-20); }

.wedding-cat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  overflow: hidden; transition: all var(--dur-medium);
}
.wedding-cat-card:hover { box-shadow: var(--shadow-2); }

.wedding-cat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-16) var(--s-20); cursor: pointer;
  transition: background var(--dur-short);
}
.wedding-cat-header:hover { background: var(--bg-surface-dim); }

.wedding-cat-left { display: flex; align-items: center; gap: var(--s-12); }
.wedding-cat-icon { font-size: 1.3rem; }
.wedding-cat-label { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.wedding-cat-count {
  font-size: 0.6rem; font-weight: 600; color: var(--text-tertiary);
  padding: 2px 8px; border-radius: var(--r-full);
  background: var(--bg-surface-dim); border: 1px solid var(--border);
}
.wedding-cat-count.all-done { background: var(--green-bg); color: var(--green); border-color: transparent; }

.wedding-cat-right { display: flex; align-items: center; gap: var(--s-8); }
.wedding-cat-mini-progress {
  width: 60px; height: 4px; background: var(--neutral-200);
  border-radius: var(--r-full); overflow: hidden;
}
.wedding-cat-mini-fill {
  height: 100%; border-radius: var(--r-full);
  background: var(--primary);
  transition: width var(--dur-long) var(--ease-decelerate);
}
.wedding-cat-arrow {
  font-size: 0.7rem; color: var(--text-tertiary);
  transition: transform var(--dur-medium) var(--ease-standard);
}
.wedding-cat-card.open .wedding-cat-arrow { transform: rotate(180deg); }

.wedding-cat-tasks {
  display: none; padding: 0 var(--s-20) var(--s-16);
  border-top: 1px solid var(--border);
}
.wedding-cat-card.open .wedding-cat-tasks { display: block; }

/* Individual task */
.wedding-task {
  display: flex; align-items: flex-start; gap: var(--s-12);
  padding: var(--s-12) 0;
  border-bottom: 1px solid var(--neutral-100);
  transition: all var(--dur-short);
}
.wedding-task:last-child { border-bottom: none; }
.wedding-task:hover { background: var(--bg-surface-dim); margin: 0 calc(-1 * var(--s-20)); padding-left: var(--s-20); padding-right: var(--s-20); border-radius: var(--r-sm); }

.wedding-checkbox {
  width: 22px; height: 22px; border-radius: var(--r-xs);
  border: 2px solid var(--border); background: var(--bg-surface);
  cursor: pointer; flex-shrink: 0; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; color: transparent;
  transition: all var(--dur-medium) var(--ease-spring);
}
.wedding-checkbox:hover { border-color: var(--primary); }
.wedding-checkbox.checked {
  background: var(--primary); border-color: var(--primary);
  color: #fff;
}

.wedding-task-text { flex: 1; }
.wedding-task-name { font-size: 0.82rem; font-weight: 500; color: var(--text-primary); }
.wedding-task-name.done { text-decoration: line-through; color: var(--text-tertiary); }
.wedding-task-notes { font-size: 0.7rem; color: var(--text-tertiary); margin-top: 2px; font-style: italic; }

.wedding-task-priority {
  font-size: 0.55rem; font-weight: 700; padding: 2px 8px;
  border-radius: var(--r-full); text-transform: uppercase; letter-spacing: 0.5px;
  flex-shrink: 0;
}
.priority-high { background: var(--red-bg); color: var(--red); }
.priority-medium { background: var(--yellow-bg); color: var(--yellow); }
.priority-low { background: var(--blue-bg); color: var(--blue); }

.wedding-task-actions {
  display: flex; gap: var(--s-4); flex-shrink: 0;
}

/* ── Who Updated What — Meta Badges ──────────── */
.wedding-meta-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.62rem; margin-top: 3px;
  color: var(--text-tertiary); line-height: 1;
}
.meta-user {
  display: inline-flex; align-items: center; gap: 3px;
  font-weight: 600; padding: 1px 6px; border-radius: var(--r-full);
  font-size: 0.58rem; letter-spacing: 0.2px;
}
.meta-user.vin {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
}
.meta-user.amba {
  background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
  color: #db2777;
}
.meta-time { font-size: 0.56rem; opacity: 0.7; }

/* ── Editing Indicator ───────────────────────── */
.editing-indicator {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.6rem; font-weight: 600; color: #f59e0b;
  animation: editPulse 1.5s ease-in-out infinite;
  white-space: nowrap;
}
@keyframes editPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.wedding-task.being-edited,
tr.being-edited {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%) !important;
  border-left: 3px solid #f59e0b;
  position: relative;
}
.wedding-task.being-edited::after,
tr.being-edited::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.25);
  pointer-events: none;
}

/* ── Activity Log ────────────────────────────── */
.activity-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-100);
  font-size: 0.78rem;
  transition: background 0.2s ease;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--bg-surface-dim); margin: 0 -12px; padding: 8px 12px; border-radius: var(--r-sm); }

.activity-item.editing-now {
  background: linear-gradient(135deg, #fef3c7 0%, #fffbeb 100%);
  padding: 10px 12px; margin: 0 -12px;
  border-radius: var(--r-md); border-bottom: none;
  animation: editPulse 2s ease-in-out infinite;
}

.activity-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.activity-avatar.vin {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.activity-avatar.amba {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
}
.activity-info { flex: 1; line-height: 1.5; }
.activity-user {
  font-weight: 700; color: var(--text-primary);
}
.activity-action {
  font-weight: 500; color: var(--text-secondary);
}
.activity-item-name {
  font-weight: 500; color: var(--primary);
  font-style: italic;
}
.activity-section {
  font-size: 0.62rem; font-weight: 600;
  padding: 1px 6px; border-radius: var(--r-full);
  background: var(--neutral-100); color: var(--text-tertiary);
  margin-left: 4px;
}
.activity-time {
  font-size: 0.62rem; color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Budget Section ─────────────────────────────── */
.budget-summary-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-16); margin-bottom: var(--s-24);
}

.budget-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-20);
  box-shadow: var(--shadow-1); text-align: center;
}
.budget-card-label { font-size: 0.6rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.budget-card-value { font-size: 1.4rem; font-weight: 900; color: var(--primary); margin-top: var(--s-4); }
.budget-card-sub { font-size: 0.65rem; color: var(--text-tertiary); margin-top: var(--s-4); }
.budget-card.green .budget-card-value { color: var(--green); }
.budget-card.red .budget-card-value { color: var(--red); }
.budget-card.blue .budget-card-value { color: var(--blue); }
.budget-card.orange .budget-card-value { color: var(--orange); }

.budget-table-wrap {
  overflow-x: auto; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  background: var(--bg-card);
}
.budget-table {
  width: 100%; border-collapse: collapse; font-size: 0.78rem;
}
.budget-table thead { background: var(--bg-surface-dim); }
.budget-table th {
  padding: var(--s-12) var(--s-16); text-align: left;
  font-size: 0.62rem; font-weight: 700; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.8px;
  border-bottom: 2px solid var(--border);
}
.budget-table td {
  padding: var(--s-12) var(--s-16);
  border-bottom: 1px solid var(--neutral-100);
  color: var(--text-primary); vertical-align: middle;
}
.budget-table tbody tr:hover { background: var(--bg-surface-dim); }
.budget-table tbody tr:last-child td { border-bottom: none; }

.budget-status-badge {
  display: inline-flex; padding: 2px 10px; border-radius: var(--r-full);
  font-size: 0.58rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.budget-pending { background: var(--neutral-100); color: var(--text-tertiary); }
.budget-deposit { background: var(--yellow-bg); color: var(--yellow); }
.budget-paid { background: var(--green-bg); color: var(--green); }
.budget-cancelled { background: var(--red-bg); color: var(--red); }

.budget-naira { font-family: 'Inter', sans-serif; font-weight: 600; }
.budget-naira.zero { color: var(--text-tertiary); }

/* ── Wedding Summary ────────────────────────────── */
.wedding-summary {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-24);
}
.wedding-summary-section {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--s-24);
  box-shadow: var(--shadow-1);
}
.wedding-summary-section.full-width { grid-column: 1 / -1; }
.wedding-summary-title {
  font-family: var(--font-display); font-size: 1.05rem;
  font-weight: 700; color: var(--text-primary);
  margin-bottom: var(--s-16); padding-bottom: var(--s-8);
  border-bottom: 1px solid var(--border);
}
.wedding-cat-progress-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-8) 0;
}
.wedding-cat-progress-label { font-size: 0.78rem; color: var(--text-secondary); min-width: 160px; }
.wedding-cat-progress-bar {
  flex: 1; height: 6px; background: var(--neutral-200);
  border-radius: var(--r-full); overflow: hidden;
}
.wedding-cat-progress-fill {
  height: 100%; border-radius: var(--r-full);
  background: var(--primary);
  transition: width var(--dur-long) var(--ease-decelerate);
}
.wedding-cat-progress-pct { font-size: 0.7rem; font-weight: 700; color: var(--text-tertiary); min-width: 36px; text-align: right; }

/* Mobile adjustments */
@media (max-width: 768px) {
  .wedding-tabs { width: 100%; }
  .wedding-tab { flex: 1; text-align: center; font-size: 0.7rem; padding: 8px 12px; }
  .wedding-summary { grid-template-columns: 1fr; }
  .budget-summary-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .budget-summary-cards { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   CLICKABLE DASHBOARD CARDS
   ══════════════════════════════════════════════════ */
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-2px);
  border-color: var(--border-accent);
}
.stat-card.clickable::after {
  content: '→'; position: absolute;
  bottom: 12px; right: 14px;
  font-size: 0.7rem; color: var(--text-tertiary);
  opacity: 0; transition: opacity var(--dur-short);
}
.stat-card.clickable:hover::after { opacity: 1; }

/* ══════════════════════════════════════════════════
   WEDDING COUNTDOWN BANNER
   ══════════════════════════════════════════════════ */
.wedding-countdown-banner {
  background: linear-gradient(120deg, rgba(245, 242, 253, 0.8) 25%, rgba(254, 246, 226, 0.92) 50%, rgba(245, 242, 253, 0.8) 75%);
  background-size: 200% auto;
  animation: goldShimmer 7s linear infinite;
  border: 1px solid rgba(255, 255, 255, 0.8);
  outline: 2px dashed rgba(95, 61, 196, 0.15);
  outline-offset: -6px;
  border-radius: var(--r-xl);
  padding: var(--s-24) var(--s-32);
  margin-bottom: var(--s-24);
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: var(--s-16);
  cursor: pointer; transition: all var(--dur-medium) var(--ease-spring);
  box-shadow: 0 8px 30px rgba(95, 61, 196, 0.04), var(--shadow-1);
}
.wedding-countdown-banner:hover {
  box-shadow: 0 16px 40px rgba(95, 61, 196, 0.08), var(--shadow-3);
  transform: translateY(-2px);
  outline-color: rgba(95, 61, 196, 0.35);
}
.wedding-countdown-label {
  font-size: 0.65rem; color: var(--tertiary);
  text-transform: uppercase; letter-spacing: 2px; font-weight: 800;
}
.wedding-countdown-title {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; color: var(--text-primary); margin-top: var(--s-4);
}
.wedding-countdown-units { display: flex; gap: var(--s-8); }
.wedding-countdown-unit {
  text-align: center; padding: var(--s-8) var(--s-12);
  background: rgba(255,255,255,0.9); border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.8); min-width: 54px;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-medium) var(--ease-spring);
}
.wedding-countdown-unit:hover {
  transform: scale(1.08);
}
.wedding-countdown-num { font-size: 1.55rem; font-weight: 900; color: var(--tertiary); line-height: 1; }
.wedding-countdown-unit-label { font-size: 0.52rem; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 1px; margin-top: 2px; }

/* ══════════════════════════════════════════════════
   UPCOMING REMINDERS
   ══════════════════════════════════════════════════ */
.upcoming-reminders { display: flex; flex-direction: column; gap: var(--s-8); margin-bottom: var(--s-32); }
.reminder-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-12) var(--s-16);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-md); cursor: pointer;
  transition: all var(--dur-medium); box-shadow: var(--shadow-1);
}
.reminder-item:hover {
  border-color: var(--border-accent);
  background: var(--primary-surface);
  transform: translateX(4px);
  box-shadow: var(--shadow-2);
}
.reminder-icon { font-size: 1.2rem; flex-shrink: 0; }
.reminder-text { flex: 1; }
.reminder-title { font-size: 0.82rem; font-weight: 600; color: var(--text-primary); }
.reminder-sub { font-size: 0.68rem; color: var(--text-tertiary); margin-top: 1px; }
.reminder-date {
  font-size: 0.62rem; font-weight: 700; color: var(--text-accent);
  padding: 3px 10px; border-radius: var(--r-full);
  background: var(--primary-lighter); white-space: nowrap;
}
.reminder-date.overdue { background: var(--red-bg); color: var(--red); }
.reminder-date.today { background: var(--green-bg); color: var(--green); }

/* ══════════════════════════════════════════════════
   COUPLES GAMES
   ══════════════════════════════════════════════════ */
.game-card-inner {
  padding: var(--s-40) var(--s-32); text-align: center;
  display: flex; flex-direction: column; gap: var(--s-16);
}
.game-emoji { font-size: 4rem; display: inline-block; }
.game-emoji.spinning { animation: gameSpin 0.5s var(--ease-spring); }
@keyframes gameSpin {
  0% { transform: rotateY(0deg) scale(1); }
  50% { transform: rotateY(180deg) scale(0.8); }
  100% { transform: rotateY(360deg) scale(1); }
}
.game-title { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: var(--text-primary); }
.game-desc {
  font-size: 0.88rem; color: var(--text-secondary); max-width: 540px; margin: 0 auto !important; line-height: 1.65;
  border-bottom: 2px dashed rgba(207, 42, 94, 0.18);
  padding-bottom: var(--s-20);
  margin-bottom: 4px !important;
}
.game-meta { display: flex; justify-content: center; gap: var(--s-12); flex-wrap: wrap; }
.game-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 14px; border-radius: var(--r-full);
  font-size: 0.65rem; font-weight: 600;
  background: var(--bg-surface-dim); border: 1px solid var(--border); color: var(--text-secondary);
}
.game-tag.cat-truth { background: #e8f5e9; color: #2b8a3e; border-color: transparent; }
.game-tag.cat-challenge { background: #fff3e0; color: #d9480f; border-color: transparent; }
.game-tag.cat-creative { background: #ede7f6; color: #6741d9; border-color: transparent; }
.game-tag.cat-quickfire { background: #fff9db; color: #e67700; border-color: transparent; }
.game-tag.cat-memory { background: #e7f5ff; color: #1971c2; border-color: transparent; }
.game-tag.cat-intimate { background: #ffe3e3; color: #c92a2a; border-color: transparent; }

.game-daily-badge {
  display: inline-flex; align-items: center; gap: var(--s-6);
  padding: var(--s-6) var(--s-16); border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--primary-lighter), var(--secondary-lighter));
  border: 1px solid var(--border-accent);
  font-size: 0.68rem; font-weight: 700; color: var(--primary);
  margin: 0 auto;
}

.played-card {
  padding: var(--s-16); background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-glass); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); transition: all var(--dur-short) var(--ease-spring);
}
.played-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: var(--border-accent); }
.played-date { font-size: 0.62rem; color: var(--text-tertiary); margin-bottom: var(--s-6); }
.played-title { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.played-cat { font-size: 0.6rem; color: var(--text-secondary); margin-top: var(--s-4); }

/* ── Couples Games Category Filter Pills ── */
.game-filter-btn {
  padding: 8px 18px; border-radius: var(--r-full);
  font-size: 0.72rem; font-weight: 600;
  border: 1px solid var(--border); transition: all var(--dur-medium) var(--ease-spring);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  margin: 4px;
  outline: none;
  background: var(--bg-surface); color: var(--text-secondary);
}
.game-filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-1);
}

/* Category Specific Colored Pills (Inactive State) */
.game-filter-btn[data-cat="all"] {
  background: rgba(207, 42, 94, 0.05) !important;
  border-color: rgba(207, 42, 94, 0.16) !important;
  color: var(--primary) !important;
}
.game-filter-btn[data-cat="Truth & Talk"] {
  background: rgba(43, 138, 62, 0.05) !important;
  border-color: rgba(43, 138, 62, 0.16) !important;
  color: #2b8a3e !important;
}
.game-filter-btn[data-cat="Challenge"] {
  background: rgba(217, 72, 15, 0.05) !important;
  border-color: rgba(217, 72, 15, 0.16) !important;
  color: #d9480f !important;
}
.game-filter-btn[data-cat="Creative"] {
  background: rgba(103, 65, 217, 0.05) !important;
  border-color: rgba(103, 65, 217, 0.16) !important;
  color: #6741d9 !important;
}
.game-filter-btn[data-cat="Quick Fire"] {
  background: rgba(230, 119, 0, 0.05) !important;
  border-color: rgba(230, 119, 0, 0.16) !important;
  color: #e67700 !important;
}
.game-filter-btn[data-cat="Memory Lane"] {
  background: rgba(25, 113, 194, 0.05) !important;
  border-color: rgba(25, 113, 194, 0.16) !important;
  color: #1971c2 !important;
}
.game-filter-btn[data-cat="Intimate"] {
  background: rgba(201, 42, 42, 0.05) !important;
  border-color: rgba(201, 42, 42, 0.16) !important;
  color: #c92a2a !important;
}

/* Category Specific Hover State */
.game-filter-btn[data-cat="all"]:hover:not(.active) {
  background: rgba(207, 42, 94, 0.1) !important;
  border-color: var(--primary) !important;
}
.game-filter-btn[data-cat="Truth & Talk"]:hover:not(.active) {
  background: rgba(43, 138, 62, 0.1) !important;
  border-color: #2b8a3e !important;
}
.game-filter-btn[data-cat="Challenge"]:hover:not(.active) {
  background: rgba(217, 72, 15, 0.1) !important;
  border-color: #d9480f !important;
}
.game-filter-btn[data-cat="Creative"]:hover:not(.active) {
  background: rgba(103, 65, 217, 0.1) !important;
  border-color: #6741d9 !important;
}
.game-filter-btn[data-cat="Quick Fire"]:hover:not(.active) {
  background: rgba(230, 119, 0, 0.1) !important;
  border-color: #e67700 !important;
}
.game-filter-btn[data-cat="Memory Lane"]:hover:not(.active) {
  background: rgba(25, 113, 194, 0.1) !important;
  border-color: #1971c2 !important;
}
.game-filter-btn[data-cat="Intimate"]:hover:not(.active) {
  background: rgba(201, 42, 42, 0.1) !important;
  border-color: #c92a2a !important;
}

/* Category Specific Active State */
.game-filter-btn[data-cat="all"].active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(207, 42, 94, 0.3) !important;
}
.game-filter-btn[data-cat="Truth & Talk"].active {
  background: #2b8a3e !important;
  border-color: #2b8a3e !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(43, 138, 62, 0.3) !important;
}
.game-filter-btn[data-cat="Challenge"].active {
  background: #d9480f !important;
  border-color: #d9480f !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(217, 72, 15, 0.3) !important;
}
.game-filter-btn[data-cat="Creative"].active {
  background: #6741d9 !important;
  border-color: #6741d9 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(103, 65, 217, 0.3) !important;
}
.game-filter-btn[data-cat="Quick Fire"].active {
  background: #e67700 !important;
  border-color: #e67700 !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(230, 119, 0, 0.3) !important;
}
.game-filter-btn[data-cat="Memory Lane"].active {
  background: #1971c2 !important;
  border-color: #1971c2 !important;
  color: #fff !important; box-shadow: 0 4px 12px rgba(25, 113, 194, 0.3) !important;
}
.game-filter-btn[data-cat="Intimate"].active {
  background: #c92a2a !important;
  border-color: #c92a2a !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(201, 42, 42, 0.3) !important;
}

/* ── Settings Btn ────────────────────────────────── */
.settings-btn {
  width: 38px; height: 38px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface-dim); border: 1px solid var(--border);
  font-size: 1rem; color: var(--text-secondary);
  transition: all var(--dur-medium);
}
.settings-btn:hover {
  background: var(--primary-lighter); color: var(--primary);
  border-color: var(--border-accent);
  transform: rotate(30deg);
}

.settings-sidebar-btn:hover .settings-icon {
  transform: rotate(30deg);
}

/* ══════════════════════════════════════════════════
   LOGIN SCREEN
   ══════════════════════════════════════════════════ */
.login-screen {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 10% 20%, rgba(255, 238, 243, 0.95) 0%, rgba(254, 247, 228, 0.95) 45%, rgba(246, 236, 255, 0.95) 75%, #fffcfc 100%);
  transition: opacity 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.login-screen.hiding {
  opacity: 0; transform: scale(1.08);
  pointer-events: none;
}

.login-container {
  width: 100%; max-width: 400px;
  padding: var(--s-40) var(--s-32);
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 24px 60px rgba(207, 42, 94, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: var(--r-2xl);
}

.login-header { margin-bottom: var(--s-32); }
.login-logo {
  font-size: 3.8rem;
  display: inline-block;
  animation: loginPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(207, 42, 94, 0.15));
}
.login-title {
  font-family: var(--font-display);
  font-size: 2.3rem; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -1px;
  margin-top: var(--s-8);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.login-subtitle {
  font-size: 0.82rem; color: var(--text-secondary);
  margin-top: var(--s-8);
  letter-spacing: 0.5px;
}

@keyframes loginPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.06) rotate(3deg); }
}

/* ── Avatars (Velvet Portrait Frames) ─────────── */
.login-avatars {
  display: flex; gap: var(--s-24); justify-content: center;
  margin-bottom: var(--s-28);
}
.login-avatar {
  width: 130px; padding: var(--s-24) var(--s-16);
  border-radius: var(--r-xl); 
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer; transition: all var(--dur-medium) var(--ease-spring);
  box-shadow: 0 4px 15px rgba(33,30,38,0.02), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.login-avatar:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(207, 42, 94, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  border-color: var(--primary-light);
  background: rgba(255, 255, 255, 0.8);
}
.login-avatar.selected {
  border-color: var(--primary);
  background: var(--primary-lighter);
  box-shadow: 0 0 0 4px rgba(207, 42, 94, 0.12), 0 16px 36px rgba(207, 42, 94, 0.16);
  transform: translateY(-8px) scale(1.06);
}
.avatar-emoji { 
  font-size: 3.2rem; 
  margin-bottom: var(--s-10); 
  transition: transform var(--dur-medium) var(--ease-spring);
}
.login-avatar:hover .avatar-emoji {
  transform: scale(1.12);
}
.avatar-name {
  font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

/* ── Passcode Area ───────────────────────────── */
.login-passcode-area {
  animation: fadeSlideUp 0.4s var(--ease-spring);
}
.passcode-label {
  font-size: 0.82rem; font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: var(--s-16);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.passcode-dots {
  display: flex; gap: var(--s-16);
  justify-content: center;
  margin-bottom: var(--s-28);
}
.passcode-dots .dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--neutral-300);
  background: transparent;
  transition: all 0.25s var(--ease-spring);
}
.passcode-dots .dot.filled {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(207, 42, 94, 0.4);
}
.passcode-dots.success .dot.filled {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(32, 133, 55, 0.4);
}
.passcode-dots.shake {
  animation: passcodeShake 0.4s var(--ease-spring);
}
.passcode-dots.shake .dot.filled {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 10px rgba(184, 33, 33, 0.4);
}

@keyframes passcodeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(10px); }
  60% { transform: translateX(-8px); }
  80% { transform: translateX(8px); }
}

/* ── Tactile Glass Keypad ──────────────────────── */
.passcode-keypad {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s-12); max-width: 280px; margin: 0 auto var(--s-24);
}
.key-btn {
  width: 100%; aspect-ratio: 1.35;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.55);
  font-size: 1.35rem; font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-spring);
  box-shadow: 0 2px 6px rgba(0,0,0,0.015), inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.key-btn:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--primary-light);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(207, 42, 94, 0.06);
}
.key-btn:active {
  transform: translateY(1px) scale(0.95);
  background: var(--primary-lighter);
  box-shadow: none;
}
.key-btn.key-action {
  background: rgba(245, 243, 247, 0.65);
  color: var(--text-secondary);
  font-size: 1.15rem;
}
.key-btn.key-enter {
  background: rgba(255, 240, 244, 0.85);
  color: var(--primary);
  border-color: rgba(207, 42, 94, 0.25);
  font-weight: 700;
}
.key-btn.key-enter:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ── Login Actions ────────────────────────────── */
.login-actions {
  display: flex; gap: var(--s-16); justify-content: center;
  flex-wrap: wrap; margin-top: var(--s-8);
}
.login-link {
  font-size: 0.72rem; color: var(--primary);
  text-decoration: underline; cursor: pointer;
  background: none; border: none;
  font-weight: 500;
}
.login-link:hover { color: var(--primary-dark); }

.passcode-error {
  font-size: 0.75rem; color: var(--danger);
  margin-top: var(--s-12); min-height: 18px;
  font-weight: 500;
}

/* ── Login History ────────────────────────────── */
.login-history-area {
  animation: fadeSlideUp 0.3s ease;
}
.login-history-title {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  margin-bottom: var(--s-16);
  color: var(--text-primary);
}
.login-history-list {
  max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: var(--s-6);
}
.history-item {
  display: flex; align-items: center; gap: var(--s-12);
  padding: var(--s-10) var(--s-16);
  border-radius: var(--r-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-align: left;
}
.history-item.failed {
  background: #fef2f2;
  border-color: #fecaca;
}
.history-icon { font-size: 1.1rem; flex-shrink: 0; }
.history-info { flex: 1; min-width: 0; }
.history-action {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-primary);
}
.history-time {
  font-size: 0.66rem; color: var(--text-tertiary);
  margin-top: 2px;
}

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

/* ── Logout Button (in sidebar) ───────────────── */
.logout-btn {
  font-size: 0.65rem; padding: 5px 12px;
  color: var(--danger); border-color: var(--danger);
}
.logout-btn:hover {
  background: #fdf0f0;
}

/* ══════════════════════════════════════════════════
   HIGH-FIDELITY LUXURY CUSTOM OVERRIDES
   ══════════════════════════════════════════════════ */

/* ── Biometric Mood Heartbeats ──────────────────── */
.mood-status-pill {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: 8px 16px !important;
  border-radius: var(--r-full);
  transition: all var(--dur-medium) var(--ease-spring) !important;
  box-shadow: 0 4px 15px rgba(207, 42, 94, 0.03), var(--shadow-1);
}
.mood-status-pill:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 24px rgba(207, 42, 94, 0.08), var(--shadow-2);
}
.mood-status-pill::before {
  content: '❤️';
  font-size: 0.75rem;
  display: inline-block;
  animation: heartBeat 2s infinite ease-in-out;
  margin-right: 2px;
}
.mood-status-pill:nth-child(2)::before {
  content: '💖';
}

@keyframes heartBeat {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 1px rgba(207,42,94,0)); }
  14% { transform: scale(1.22); filter: drop-shadow(0 0 4px rgba(207,42,94,0.45)); }
  28% { transform: scale(1); }
  42% { transform: scale(1.22); filter: drop-shadow(0 0 4px rgba(207,42,94,0.45)); }
  70% { transform: scale(1); }
}

/* ── Interactive Couples Game Ticket ───────────── */
#gameCard {
  position: relative;
  overflow: visible !important;
  border: 1px dashed var(--border-hover) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(254, 246, 226, 0.65)) !important;
}
#gameCard::before, #gameCard::after {
  content: ''; position: absolute; top: 50%;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-base);
  z-index: 10;
  transform: translateY(-50%);
  border: 1px solid rgba(224, 218, 232, 0.4);
}
#gameCard::before { left: -13px; box-shadow: inset -6px 0 10px rgba(33,30,38,0.015); }
#gameCard::after { right: -13px; box-shadow: inset 6px 0 10px rgba(33,30,38,0.015); }

/* ── Glowing Timeline threads & Diamond Nodes ───── */
.reflection-timeline::before {
  content: ''; position: absolute; left: 15px; top: 0; bottom: 0;
  width: 0px !important;
  border-left: 2px dashed rgba(207, 42, 94, 0.35) !important;
}
.reflection-card::before {
  content: '💎' !important;
  position: absolute !important;
  left: calc(-1 * var(--s-40) + 7px) !important;
  top: var(--s-20) !important;
  font-size: 1.15rem !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: floatBounce 3s infinite ease-in-out;
}

.milestones-timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 0px !important;
  border-left: 2px dashed rgba(223, 114, 21, 0.35) !important;
}
.milestone-card::before {
  content: '⭐' !important;
  position: absolute !important;
  left: calc(-1 * var(--s-48) + 8px) !important;
  top: var(--s-16) !important;
  font-size: 1.25rem !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: floatBounce 3s infinite ease-in-out;
}

/* ── Magnetic Stat Card Lifts ─────────────────── */
.stat-card.clickable {
  transition: all var(--dur-medium) var(--ease-spring) !important;
}
.stat-card.clickable:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 16px 40px rgba(207, 42, 94, 0.08), var(--shadow-3) !important;
}
.stat-card.clickable.green:hover { box-shadow: 0 16px 40px rgba(32, 133, 55, 0.08) !important; border-color: rgba(32, 133, 55, 0.25) !important; }
.stat-card.clickable.yellow:hover { box-shadow: 0 16px 40px rgba(207, 113, 0, 0.08) !important; border-color: rgba(207, 113, 0, 0.25) !important; }
.stat-card.clickable.red:hover { box-shadow: 0 16px 40px rgba(184, 33, 33, 0.08) !important; border-color: rgba(184, 33, 33, 0.25) !important; }
.stat-card.clickable.purple:hover { box-shadow: 0 16px 40px rgba(95, 61, 196, 0.08) !important; border-color: rgba(95, 61, 196, 0.25) !important; }
.stat-card.clickable.blue:hover { box-shadow: 0 16px 40px rgba(18, 101, 181, 0.08) !important; border-color: rgba(18, 101, 181, 0.25) !important; }

/* ── Smooth Navigation Transitions ────────────── */
.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
  transform: scaleY(0); transition: transform 0.25s var(--ease-spring);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
}
.nav-item:hover::before {
  transform: scaleY(0.5);
}
.nav-item.active::before {
  transform: scaleY(1);
  background: #ffffff;
}

/* ── Aso-Ebi & Nigerian Cultural Accents ──────── */
.wedding-tab-content {
  border-radius: var(--r-xl);
  overflow: hidden;
}
.wedding-cat-card {
  border: 1px solid rgba(224, 218, 232, 0.4) !important;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(245, 243, 247, 0.5)) !important;
}
.wedding-progress-bar {
  background: linear-gradient(120deg, rgba(255, 246, 235, 0.75), rgba(255, 255, 255, 0.8)) !important;
  border: 1px solid rgba(223, 114, 21, 0.15) !important;
  outline: 2px dashed rgba(223, 114, 21, 0.1) !important;
  outline-offset: -5px;
}
.wedding-progress-pct {
  color: var(--secondary) !important;
}

/* ── Visual Theme Sanctuary Swatches ── */
.theme-swatch-picker {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.theme-swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-medium) var(--ease-spring);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  border: 3px solid #ffffff;
}
.theme-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}
.theme-swatch.active {
  transform: scale(1.2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border-color: var(--text-primary) !important;
}
.theme-swatch.active::after {
  content: '✔';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ── Prayer Points Registry Cards ── */
.prayer-card {
  position: relative;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-xl);
  padding: var(--s-20);
  box-shadow: var(--shadow-1);
  transition: all var(--dur-medium) var(--ease-spring);
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
}
.prayer-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: var(--border-accent);
}
.prayer-card.answered-glow {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(254, 247, 228, 0.72)) !important;
  border-color: rgba(223, 114, 21, 0.25) !important;
  box-shadow: 0 8px 30px rgba(223, 114, 21, 0.04), var(--shadow-1) !important;
}
.prayer-card-header {
  display: flex;
  align-items: flex-start;
  gap: var(--s-12);
}

/* circular prayer checkbox */
.prayer-checkbox-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.prayer-checkbox-input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0; height: 0;
}
.prayer-checkbox-custom {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-focus);
  background: var(--bg-surface);
  transition: all var(--dur-short) var(--ease-standard);
  position: relative;
}
.prayer-checkbox-wrap:hover .prayer-checkbox-custom {
  border-color: var(--primary);
  transform: scale(1.08);
}
.prayer-checkbox-input:checked ~ .prayer-checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.prayer-card.answered-glow .prayer-checkbox-input:checked ~ .prayer-checkbox-custom {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}
.prayer-checkbox-input:checked ~ .prayer-checkbox-custom::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.7rem;
  font-weight: bold;
}

.prayer-request-text {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.5;
  flex-grow: 1;
}
.prayer-card.answered-glow .prayer-request-text {
  color: var(--text-secondary);
  text-decoration: line-through;
  text-decoration-color: rgba(33, 30, 38, 0.25);
}

.prayer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6) var(--s-10);
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-tertiary);
  margin-top: var(--s-4);
  padding-top: var(--s-8);
  border-top: 1px dashed rgba(224, 218, 232, 0.4);
}
.prayer-badge {
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-weight: 600;
  letter-spacing: 0.3px;
}
.prayer-badge.spiritual { background: rgba(95, 61, 196, 0.08); color: #5f3dc4; }
.prayer-badge.relationship { background: rgba(207, 42, 94, 0.08); color: #cf2a5e; }
.prayer-badge.career { background: rgba(18, 101, 181, 0.08); color: #1265b5; }
.prayer-badge.health { background: rgba(32, 133, 55, 0.08); color: #208537; }
.prayer-badge.wedding { background: rgba(223, 114, 21, 0.08); color: #df7215; }
.prayer-badge.family { background: rgba(201, 42, 42, 0.08); color: #c92a2a; }
.prayer-badge.general { background: rgba(116, 109, 128, 0.08); color: #746d80; }

.prayer-actions {
  display: flex;
  gap: var(--s-4);
  margin-left: auto;
}

.prayer-testimony-box {
  background: rgba(223, 114, 21, 0.04);
  border: 1px solid rgba(223, 114, 21, 0.12);
  border-radius: var(--r-md);
  padding: var(--s-12) var(--s-16);
  margin-top: var(--s-6);
  position: relative;
}
.prayer-testimony-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.prayer-testimony-content {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════
   OUR SANCTUARY GUIDE
   ══════════════════════════════════════════════════ */
.sanctuary-welcome-card {
  padding: var(--s-32) var(--s-24);
  text-align: center;
  margin-bottom: var(--s-24);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-surface-glass) 0%, rgba(207, 42, 94, 0.03) 100%);
}

.heart-pulse-icon {
  font-size: 3.5rem;
  margin-bottom: var(--s-16);
  display: inline-block;
  animation: heartPulseAnimation 1.8s infinite ease-in-out;
}

@keyframes heartPulseAnimation {
  0% { transform: scale(1); }
  14% { transform: scale(1.12); }
  28% { transform: scale(1); }
  42% { transform: scale(1.12); }
  70% { transform: scale(1); }
}

.sanctuary-welcome-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s-12);
  letter-spacing: -0.5px;
}

.sanctuary-quote {
  font-size: 0.95rem;
  color: var(--primary);
  max-width: 600px;
  margin: 0 auto var(--s-16);
  line-height: 1.6;
}

.sanctuary-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

.sanctuary-grid-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--s-32) 0 var(--s-16);
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.sanctuary-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-16);
  margin-bottom: var(--s-32);
}

.sanctuary-card {
  padding: var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-12);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--dur-medium) cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.sanctuary-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-glow-sm), var(--shadow-2);
  background: var(--bg-surface);
}

.card-icon-bg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--bg-surface-dim);
  border: 1px solid var(--border);
  font-size: 1.5rem;
  box-shadow: var(--shadow-1);
}

.sanctuary-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.card-teasing {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.card-growth-hint {
  font-size: 0.76rem;
  color: var(--secondary);
  line-height: 1.4;
  border-top: 1px dashed var(--border);
  padding-top: var(--s-8);
  margin-top: var(--s-4);
}

.card-action-btn {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: var(--bg-surface-dim);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--dur-short) ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sanctuary-card:hover .card-action-btn {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}

.sanctuary-outro-card {
  padding: var(--s-24);
  text-align: center;
  border: 1px solid var(--border);
  background: var(--bg-surface-glass);
  max-width: 600px;
  margin: 0 auto var(--s-40);
  box-shadow: var(--shadow-1);
}

.spark-emoji {
  font-size: 2.2rem;
  margin-bottom: var(--s-12);
  display: inline-block;
  animation: sparkSpin 6s infinite linear;
}

@keyframes sparkSpin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.sanctuary-outro-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--s-12);
}

.sanctuary-signature {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

/* ═══════════════════════════════════════════════
   COUPLES DISCUSSION BOARD
   ═══════════════════════════════════════════════ */
.discussions-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-24);
  max-width: 800px;
  margin: 0 auto var(--s-40);
}

.discussion-card {
  border: 1px solid var(--border);
  background: var(--bg-surface-glass);
  padding: var(--s-20);
  box-shadow: var(--shadow-1);
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;
}

.discussion-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

.discussion-header {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  margin-bottom: var(--s-16);
}

.discussion-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(207,42,94,0.15) 0%, rgba(223,114,21,0.15) 100%);
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.discussion-meta-wrap {
  flex: 1;
}

.discussion-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  letter-spacing: -0.2px;
}

.discussion-subtitle {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin: 0;
  font-weight: 500;
}

.discussion-actions {
  flex-shrink: 0;
}

.discussion-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-bottom: var(--s-16);
  border-bottom: 1px dashed var(--border);
  margin-bottom: var(--s-16);
  white-space: pre-line;
}

.discussion-comments-section {
  padding-top: var(--s-12);
  margin-top: var(--s-8);
}

.comments-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: var(--s-16);
  padding-bottom: var(--s-8);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ---- Chat-style conversation list ---- */
.discussion-comments-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: var(--s-24);
  max-height: 420px;
  overflow-y: auto;
  padding: var(--s-12) var(--s-8) var(--s-12) var(--s-4);
}

.discussion-comments-list::-webkit-scrollbar {
  width: 5px;
}
.discussion-comments-list::-webkit-scrollbar-track {
  background: transparent;
}
.discussion-comments-list::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.1);
  border-radius: 99px;
}

.no-comments-text {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-tertiary);
  text-align: center;
  padding: var(--s-24) 0;
}

/* ---- Chat bubbles ---- */
.comment-bubble {
  padding: 16px 22px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 85%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  animation: slideInComment 0.3s ease-out;
  position: relative;
}

@keyframes slideInComment {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Amba: right-aligned, warm rose */
.comment-bubble.comment-amba {
  background: linear-gradient(135deg, rgba(207,42,94,0.06) 0%, rgba(207,42,94,0.03) 100%);
  border: 1px solid rgba(207,42,94,0.12);
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}

/* Vin: left-aligned, cool blue */
.comment-bubble.comment-vin {
  background: linear-gradient(135deg, rgba(37,99,235,0.06) 0%, rgba(37,99,235,0.03) 100%);
  border: 1px solid rgba(37,99,235,0.12);
  border-radius: 18px 18px 18px 4px;
  align-self: flex-start;
}

/* Other: centered, neutral */
.comment-bubble.comment-other {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  align-self: center;
  max-width: 90%;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 700;
  margin-bottom: 6px;
  gap: var(--s-12);
}

.comment-author {
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.comment-bubble.comment-amba .comment-author { color: var(--primary); }
.comment-bubble.comment-vin .comment-author { color: #2563eb; }

.comment-date {
  color: var(--text-tertiary);
  font-weight: 500;
  white-space: nowrap;
}

.comment-body {
  color: var(--text-secondary);
  word-break: break-word;
  line-height: 1.6;
}

/* ---- Reply input ---- */
.comment-form-group {
  display: flex;
  gap: var(--s-10);
  margin-top: var(--s-4);
  padding-top: var(--s-16);
  border-top: 1px dashed rgba(0,0,0,0.06);
}

.comment-input {
  flex: 1;
  font-size: 0.88rem;
  padding: 10px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(207,42,94,0.1);
  outline: none;
}

.comment-input::placeholder {
  color: var(--text-tertiary);
  font-size: 0.84rem;
}

/* ---- Circular send button ---- */
.comment-send-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, #e0457b 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 3px 12px rgba(207,42,94,0.25);
}
.comment-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(207,42,94,0.35);
}
.comment-send-btn:active {
  transform: scale(0.95);
}
.send-icon {
  font-size: 1.15rem;
  line-height: 1;
  display: block;
  margin-left: 1px;
}

/* ---- Comment header right group ---- */
.comment-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---- Inline edit pencil ---- */
.comment-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  padding: 2px;
  opacity: 0;
  transition: opacity 0.2s ease;
  line-height: 1;
}
.comment-bubble:hover .comment-edit-btn {
  opacity: 0.6;
}
.comment-edit-btn:hover {
  opacity: 1 !important;
}

/* ---- Inline edit form ---- */
.comment-edit-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.comment-edit-input {
  font-size: 0.88rem;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--primary);
  background: rgba(255,255,255,0.6);
  color: var(--text-primary);
  width: 100%;
  box-sizing: border-box;
}
.comment-edit-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(207,42,94,0.1);
}
.comment-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.comment-edit-save,
.comment-edit-cancel {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.comment-edit-save {
  background: var(--primary);
  color: #fff;
}
.comment-edit-save:hover {
  background: #b8294f;
}
.comment-edit-cancel {
  background: rgba(0,0,0,0.05);
  color: var(--text-secondary);
}
.comment-edit-cancel:hover {
  background: rgba(0,0,0,0.1);
}

/* ── Settings Switch Toggle ── */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(0, 0, 0, 0.08);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid var(--border);
}
.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:checked + .slider {
  background-color: var(--primary);
  border-color: var(--primary);
}
input:checked + .slider:before {
  transform: translateX(20px);
}

/* ── Amba Walkthrough Guide Tour Styles ── */
.tour-slide-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--s-16) 0;
}
.tour-slide-icon-wrap {
  font-size: 3.5rem;
  margin-bottom: var(--s-20);
  animation: tourEmojiBounce 2.2s ease-in-out infinite;
  display: inline-block;
  line-height: 1;
}
@keyframes tourEmojiBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.05); }
}
.tour-slide-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--s-12);
}
.tour-slide-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: var(--s-20);
}
.tour-slide-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-16);
}
.tour-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.tour-dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* ══════════════════════════════════════════════════
   MOBILE OVERFLOW & RESPONSIVENESS FIXES
   ══════════════════════════════════════════════════ */

/* ── Global mobile overflow prevention ── */
@media (max-width: 768px) {
  .page-body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  /* ── Countdown banners: wrap units on mobile ── */
  .countdown-banner,
  .wedding-countdown-banner {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: var(--s-16) var(--s-20) !important;
  }
  .countdown-right,
  .wedding-countdown-units {
    flex-wrap: wrap !important;
    gap: 6px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
  .countdown-unit,
  .wedding-countdown-unit {
    min-width: 44px !important;
    padding: var(--s-6) var(--s-8) !important;
    flex: 1 1 auto !important;
  }
  .countdown-number,
  .wedding-countdown-num {
    font-size: 1.2rem !important;
  }
  .countdown-unit-label,
  .wedding-countdown-unit-label {
    font-size: 0.45rem !important;
    letter-spacing: 0.5px !important;
  }
  .countdown-title,
  .wedding-countdown-title {
    font-size: 1rem !important;
  }


  /* Greeting card: MUST show both mood pills */
  .greeting-card {
    overflow: visible !important;
  }
  .greeting-layout {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  .greeting-left {
    min-width: 0 !important;
    width: 100% !important;
  }
  .greeting-right {
    width: 100% !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .mood-statuses {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .mood-status-pill {
    flex: 1 1 auto !important;
    min-width: 120px !important;
  }

  /* Toolbar container wrap limits */
  .toolbar-left {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Budget table layout fixes */
  .budget-table td {
    flex-wrap: wrap;
    gap: var(--s-4);
  }
  .budget-table td[data-label="Item"],
  .budget-table td[data-label="Vendor"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  .budget-table td[data-label="Item"]::before,
  .budget-table td[data-label="Vendor"]::before {
    margin-bottom: 2px;
  }

  /* Mood Calendar responsiveness on tablets */
  .mood-calendar-day {
    min-height: 48px !important;
  }
  .mood-avatar-badge {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.85rem !important;
  }

  /* Wedding progress label - prevent overflow */
  .wedding-cat-progress-label {
    min-width: 100px !important;
    font-size: 0.72rem !important;
  }
  .wedding-cat-progress-item {
    gap: var(--s-8) !important;
  }

  /* Entry cards word breaking */
  .entry-title, .entry-desc {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
}

@media (max-width: 480px) {
  /* Premium Glass Cards fluid padding override */
  .glass-card {
    padding: var(--s-16) !important;
  }
  /* But keep greeting card visible */
  .greeting-card {
    overflow: visible !important;
  }

  /* Greeting card mobile stacking */
  .greeting-title {
    font-size: 1.2rem !important;
  }
  .mood-statuses {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .mood-status-pill {
    width: 100% !important;
    min-width: 0 !important;
  }

  /* Wedding Planning: Responsive Tab buttons */
  .wedding-tabs {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    padding: var(--s-4) !important;
    gap: var(--s-4) !important;
    box-sizing: border-box !important;
    border-radius: var(--r-lg) !important;
  }
  .wedding-tab {
    padding: 8px var(--s-4) !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    border-radius: var(--r-md) !important;
    width: auto !important;
    white-space: nowrap !important;
  }

  /* Wedding Checklist filter button wrap */
  #weddingCatFilter {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px 4px !important;
    padding: var(--s-4) 0 !important;
    margin: 0 0 var(--s-16) 0 !important;
    overflow: visible !important;
  }
  #weddingCatFilter .filter-btn {
    padding: 6px 12px !important;
    font-size: 0.7rem !important;
    white-space: nowrap !important;
    margin: 0 !important;
    flex: 0 1 auto !important;
  }

  /* Wedding Progress - narrow screens */
  .wedding-cat-progress-label {
    min-width: 80px !important;
    font-size: 0.68rem !important;
  }
  .wedding-cat-progress-pct {
    min-width: 28px !important;
    font-size: 0.6rem !important;
  }

  /* Wedding summary cards */
  .wedding-summary {
    grid-template-columns: 1fr !important;
  }

  /* Concern Register cards: Wrap card headers */
  .entry-card-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: var(--s-12) !important;
  }
  .entry-actions {
    justify-content: flex-end !important;
    margin-top: 2px !important;
  }
  .entry-title, .entry-desc {
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }
  /* Entry card meta badges */
  .entry-meta {
    flex-wrap: wrap !important;
    gap: 4px !important;
  }

  /* Mood check-ins: Compact Mood Picker */
  .mood-picker {
    grid-template-columns: repeat(auto-fit, minmax(75px, 1fr)) !important;
    gap: 8px !important;
  }
  .mood-option {
    padding: var(--s-10) var(--s-6) !important;
  }

  /* Mood check-ins: Compact Mood Calendar */
  .mood-calendar-container {
    padding: var(--s-8) !important;
  }
  .mood-calendar-grid {
    gap: 3px !important;
  }
  .mood-calendar-day {
    min-height: 38px !important;
    aspect-ratio: auto !important;
    padding: 2px !important;
  }
  .mood-calendar-day .day-number {
    top: 1px !important;
    left: 3px !important;
    font-size: 0.5rem !important;
  }
  .mood-calendar-day .mood-avatars {
    margin-top: 10px !important;
    gap: 1px !important;
  }
  .mood-avatar-badge {
    width: 14px !important;
    height: 14px !important;
    font-size: 0.6rem !important;
  }
  .mood-avatar-badge.vin.empty, .mood-avatar-badge.amba.empty {
    font-size: 0.4rem !important;
  }
  .mood-calendar-weekdays {
    font-size: 0.5rem !important;
    letter-spacing: 0 !important;
  }

  /* Dashboard grid - single column on small phones */
  .dashboard-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Extra small screens (< 360px) ── */
@media (max-width: 360px) {
  .page-body {
    padding: var(--s-12) !important;
  }
  .greeting-card {
    padding: var(--s-12) !important;
    overflow: visible !important;
  }
  .greeting-title {
    font-size: 1.05rem !important;
  }
  .mood-calendar-day {
    min-height: 32px !important;
  }
  .mood-avatar-badge {
    width: 12px !important;
    height: 12px !important;
    font-size: 0.5rem !important;
  }
  .wedding-tab {
    font-size: 0.6rem !important;
    padding: 6px 2px !important;
  }
}

