@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Jost:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Cinzel:wght@400;600;700&family=Josefin+Sans:wght@300;400;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&display=swap');

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

:root {
  --accent: #9333ea;
  --accent-light: #c084fc;
  --accent-dim: rgba(147,51,234,0.12);
  --text: #1e1040;
  --text-muted: #7c5cbf;
  --text-light: #a78bca;
  --glass: rgba(255,255,255,0.58);
  --glass-hover: rgba(255,255,255,0.72);
  --glass-border: rgba(255,255,255,0.82);
  --shadow: 0 4px 20px rgba(147,51,234,0.1);
  --shadow-lg: 0 8px 40px rgba(147,51,234,0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 220px;
  --tab-grad: linear-gradient(135deg, #a78bfa, #f472b6, #93c5fd, #c084fc, #f9a8d4, #a78bfa);
  --tab-color: #4c1d95;
  --sidebar-bg: rgba(255,255,255,0.08);
  --sidebar-border: rgba(255,255,255,0.18);
}

body {
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f0ff 0%, #ede0ff 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Montserrat', sans-serif; font-weight: 700; }

#root { display: flex; min-height: 100vh; }

/* ── SIDEBAR ───────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: 24px 0 16px;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  box-shadow: 4px 0 24px rgba(0,0,0,0.06);
}

.sidebar-logo {
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(147,51,234,0.1);
  margin-bottom: 8px;
}

.sidebar-logo h1 {
  font-size: 26px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(135deg, #9333ea, #c084fc, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.sidebar-logo p { display: none; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 20px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.18s;
  position: relative;
}

.nav-item:hover { color: var(--accent); background: rgba(147,51,234,0.06); }

.nav-item.active {
  color: var(--accent);
  background: rgba(147,51,234,0.1);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
}

.nav-icon { font-size: 16px; width: 20px; text-align: center; }

/* ── MAIN CONTENT ──────────────────────────────────── */

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 32px;
  min-height: 100vh;
}

/* ── GLASS CARD ────────────────────────────────────── */

.card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-hover { transition: all 0.2s; }

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

/* ── PAGE HEADER ───────────────────────────────────── */

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

.page-title { font-size: 26px; font-weight: 700; }

.page-title span { font-size: 15px; font-weight: 400; color: var(--text-muted); margin-left: 8px; }

/* ── BUTTONS ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: all 0.18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary { background: var(--accent); color: white; }

.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(147,51,234,0.3); }

.btn-ghost {
  background: rgba(147,51,234,0.08);
  color: var(--accent);
  border: 1px solid rgba(147,51,234,0.2);
}

.btn-ghost:hover { background: rgba(147,51,234,0.15); }

.btn-danger { background: rgba(219,39,119,0.1); color: #be185d; border: 1px solid rgba(219,39,119,0.2); }

.btn-danger:hover { background: rgba(219,39,119,0.18); }

.btn-sm { padding: 5px 12px; font-size: 13px; }

.btn-icon {
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 8px;
  color: var(--text-muted); font-size: 16px;
  transition: all 0.15s; font-family: inherit;
}

.btn-icon:hover { background: var(--accent-dim); color: var(--accent); }

/* ── TABS ──────────────────────────────────────────── */

.tabs {
  display: flex;
  gap: 4px;
  background: rgba(147,51,234,0.07);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 24px;
  width: fit-content;
}

.tab {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-muted);
  font-family: 'Montserrat', sans-serif;
  transition: all 0.18s;
}

.tab.active {
  background: var(--tab-grad);
  background-size: 200% auto;
  animation: shimmer var(--tab-anim-dur, 6s) ease-in-out infinite;
  color: var(--tab-color);
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

/* ── FORMS ─────────────────────────────────────────── */

.form-group { margin-bottom: 16px; }

.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 6px; }

.form-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(255,255,255,0.7);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border 0.15s;
}

.form-input:focus { border-color: var(--accent); background: white; }

.form-input::placeholder { color: var(--text-light); }

textarea.form-input { resize: vertical; min-height: 80px; }

select.form-input { cursor: pointer; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── MODAL ─────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,16,64,0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal {
  background: rgba(255,255,255,0.97);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 60px rgba(30,16,64,0.25);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(147,51,234,0.1);
  position: sticky; top: 0;
  background: rgba(255,255,255,0.97);
  z-index: 1;
}

.modal-header h2 { font-size: 18px; font-weight: 600; }

.modal-body { padding: 20px 24px 24px; }

.modal-footer {
  display: flex; gap: 10px; justify-content: flex-end;
  padding-top: 16px;
  border-top: 1px solid rgba(147,51,234,0.1);
  margin-top: 8px;
}

/* ── BADGES ────────────────────────────────────────── */

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}

.badge-have { background: rgba(167,139,250,0.14); color: #7c5cbf; }

.badge-low { background: rgba(245,158,11,0.12); color: #d97706; }

.badge-empty { background: rgba(168,85,247,0.12); color: #7c3aed; }

.badge-autopay { background: rgba(147,51,234,0.1); color: var(--accent); }

.badge-want { background: rgba(147,51,234,0.1); color: var(--accent); }

.badge-watched { background: rgba(16,185,129,0.12); color: #059669; }

.badge-card { background: rgba(59,130,246,0.1); color: #2563eb; }

.badge-loan { background: rgba(245,158,11,0.1); color: #d97706; }

.badge-movie { background: rgba(79,70,229,0.1); color: #4f46e5; }

.badge-show { background: rgba(16,185,129,0.1); color: #059669; }

/* ── GRIDS ─────────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

.grid-auto { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 16px; }

.grid-auto-lg { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 16px; }

/* ── UTILITIES ─────────────────────────────────────── */

.flex { display: flex; }

.flex-col { display: flex; flex-direction: column; }

.items-center { align-items: center; }

.justify-between { justify-content: space-between; }

.flex-wrap { flex-wrap: wrap; }

.gap-6 { gap: 6px; }

.gap-8 { gap: 8px; }

.gap-12 { gap: 12px; }

.gap-16 { gap: 16px; }

.mt-8 { margin-top: 8px; }

.mt-16 { margin-top: 16px; }

.mt-24 { margin-top: 24px; }

.mb-8 { margin-bottom: 8px; }

.mb-16 { margin-bottom: 16px; }

.mb-24 { margin-bottom: 24px; }

.p-12 { padding: 12px; }

.p-16 { padding: 16px; }

.p-20 { padding: 20px; }

.p-24 { padding: 24px; }

.text-sm { font-size: 13px; }

.text-xs { font-size: 12px; }

.text-muted { color: var(--text-muted); }

.text-light { color: var(--text-light); }

.font-semibold { font-weight: 600; }

.font-bold { font-weight: 700; }

.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.w-full { width: 100%; }

/* ── FILTER BAR ────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  align-items: center;
}

.filter-chip {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(147,51,234,0.2);
  background: rgba(255,255,255,0.6);
  color: var(--text-muted);
  transition: all 0.15s;
  font-family: 'Montserrat', sans-serif;
}

.filter-chip:hover { border-color: var(--accent); color: var(--accent); }

.filter-chip.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ── EMPTY STATE ───────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-muted);
}

.empty-state-icon { font-size: 52px; margin-bottom: 16px; }

.empty-state h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; color: var(--text); }

.empty-state p { font-size: 14px; }

/* ── PROGRESS BAR ──────────────────────────────────── */

.progress-bar { height: 8px; border-radius: 4px; background: rgba(147,51,234,0.1); overflow: hidden; }

.progress-fill { height: 100%; border-radius: 4px; transition: width 0.5s ease; }

/* ── SCROLLBAR ─────────────────────────────────────── */

::-webkit-scrollbar { width: 6px; height: 6px; }

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb { background: rgba(147,51,234,0.2); border-radius: 3px; }

::-webkit-scrollbar-thumb:hover { background: rgba(147,51,234,0.35); }

/* ── PAGE THEME OVERRIDES ──────────────────────────── */

/* Each page gets a distinct background on the main-content wrapper */

/* Fragrance — soft pastel palette */

.page-fragrance {
  background: linear-gradient(135deg, #eeeaf8 0%, #e8e0f5 30%, #f5e6ee 65%, #e8f2ec 100%);
  min-height: 100vh;
  --tab-grad: linear-gradient(135deg, #C8D0E0, #C0B8F0, #D4B8D8, #F0C0CC, #C8E8D2, #C0B8F0, #C8D0E0);
  --tab-color: #3d1a6e;
}

/* Kitchen — deep teal */

.page-kitchen {
  background: linear-gradient(135deg, #f0faf9 0%, #d4ecea 60%, #ecf6f5 100%);
  min-height: 100vh;
  --accent: #104a4a; --accent-dim: rgba(16,74,74,0.1);
  --text-muted: #1a5f5f; --text-light: #4aa0a0;
  --tab-grad: linear-gradient(135deg, #065f60, #0d9488, #06b6d4, #6ee7b7, #0d9488, #065f60);
  --tab-color: white;
}

.page-kitchen .card { background: rgba(240,250,249,0.75); border-color: rgba(16,74,74,0.12); }

.page-kitchen .card-hover:hover { background: rgba(240,250,249,0.92); }

.page-kitchen .btn-primary { background: #104a4a; }

.page-kitchen .btn-primary:hover { filter: brightness(1.2); box-shadow: 0 4px 12px rgba(16,74,74,0.35); }

.page-kitchen .btn-ghost { background: rgba(16,74,74,0.08); color: #104a4a; border-color: rgba(16,74,74,0.2); }

.page-kitchen .btn-ghost:hover { background: rgba(16,74,74,0.15); }

.page-kitchen .filter-chip.active { background: #104a4a; border-color: #104a4a; }

.page-kitchen .form-input:focus { border-color: #104a4a; }

.page-kitchen .tabs { background: rgba(16,74,74,0.07); }

.page-kitchen .filter-chip { border-color: rgba(16,74,74,0.2); color: #1a5f5f; }

.page-kitchen .filter-chip:hover { border-color: #104a4a; color: #104a4a; }

/* Finance — dark navy with emerald/gold */

.page-bills {
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2f45 60%, #0f2338 100%);
  min-height: 100vh;
  --accent: #10b981; --accent-dim: rgba(16,185,129,0.12);
  --text: #e8f4f0; --text-muted: #6ee7b7; --text-light: #4a9a7a;
  --glass: rgba(255,255,255,0.05); --glass-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(16,185,129,0.15);
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --tab-grad: linear-gradient(135deg, #064e3b, #059669, #34d399, #06b6d4, #059669, #064e3b);
  --tab-color: white;
  --sidebar-bg: rgba(0,0,0,0.28);
  --sidebar-border: rgba(255,255,255,0.08);
  color: #e8f4f0;
}

.page-bills .card { background: rgba(255,255,255,0.05); border-color: rgba(16,185,129,0.15); }

.page-bills .card-hover:hover { background: rgba(255,255,255,0.08); }

.page-bills .btn-primary { background: #10b981; color: #0d1b2a; font-weight: 600; }

.page-bills .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(16,185,129,0.4); }

.page-bills .btn-ghost { background: rgba(16,185,129,0.1); color: #10b981; border-color: rgba(16,185,129,0.25); }

.page-bills .tab { color: #4a9a7a; }

.page-bills .tabs { background: rgba(16,185,129,0.08); }

.page-bills .filter-chip { background: rgba(16,185,129,0.07); border-color: rgba(16,185,129,0.2); color: #6ee7b7; }

.page-bills .filter-chip.active { background: #10b981; border-color: #10b981; color: #0d1b2a; }

.page-bills .form-input { background: rgba(255,255,255,0.07); color: #e8f4f0; border-color: rgba(16,185,129,0.2); }

.page-bills .form-input:focus { border-color: #10b981; background: rgba(255,255,255,0.1); }

.page-bills .form-label { color: #6ee7b7; }

.page-bills .modal { background: rgba(13,27,42,0.98); color: #e8f4f0; }

.page-bills .modal-header { border-color: rgba(16,185,129,0.15); background: rgba(13,27,42,0.98); }

.page-bills .page-title { color: #e8f4f0; }

/* Restaurants — dusty mauve/purple */

.page-restaurants {
  background: linear-gradient(135deg, #faf8ff 0%, #f0ecf9 60%, #faf8ff 100%);
  min-height: 100vh;
  --accent: #9f8cb8; --accent-dim: rgba(159,140,184,0.12);
  --text-muted: #7a6b96; --text-light: #b8a8d0;
  --tab-grad: linear-gradient(135deg, #4a3f7a, #9f8cb8, #ec4899, #a78bfa, #9f8cb8, #4a3f7a);
  --tab-color: white;
}

.page-restaurants .card { background: rgba(250,248,255,0.78); border-color: rgba(159,140,184,0.15); }

.page-restaurants .card-hover:hover { background: rgba(250,248,255,0.95); }

.page-restaurants .btn-primary { background: #9f8cb8; }

.page-restaurants .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(159,140,184,0.4); }

.page-restaurants .btn-ghost { background: rgba(159,140,184,0.1); color: #9f8cb8; border-color: rgba(159,140,184,0.25); }

.page-restaurants .btn-ghost:hover { background: rgba(159,140,184,0.18); }

.page-restaurants .filter-chip.active { background: #9f8cb8; border-color: #9f8cb8; }

.page-restaurants .filter-chip:hover { border-color: #9f8cb8; color: #9f8cb8; }

.page-restaurants .tabs { background: rgba(159,140,184,0.08); }

.page-restaurants .form-input:focus { border-color: #9f8cb8; }

/* Movies/Watchlist — deep charcoal with neon */

.page-movies {
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #111827 100%);
  min-height: 100vh;
  --accent: #818cf8; --accent-dim: rgba(129,140,248,0.12);
  --text: #f3f4f6; --text-muted: #9ca3af; --text-light: #6b7280;
  --glass: rgba(255,255,255,0.05); --glass-hover: rgba(255,255,255,0.08);
  --glass-border: rgba(129,140,248,0.15);
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --tab-grad: linear-gradient(135deg, #1e1b4b, #6366f1, #ec4899, #06b6d4, #6366f1, #1e1b4b);
  --tab-color: white;
  --sidebar-bg: rgba(0,0,0,0.32);
  --sidebar-border: rgba(255,255,255,0.08);
  color: #f3f4f6;
}

.page-movies .card { background: rgba(255,255,255,0.05); border-color: rgba(129,140,248,0.15); }

.page-movies .card-hover:hover { background: rgba(255,255,255,0.08); box-shadow: 0 4px 20px rgba(129,140,248,0.2); }

.page-movies .btn-primary { background: #6366f1; }

.page-movies .btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 16px rgba(99,102,241,0.5); }

.page-movies .btn-ghost { background: rgba(129,140,248,0.1); color: #818cf8; border-color: rgba(129,140,248,0.25); }

.page-movies .tab { color: #6b7280; }

.page-movies .tabs { background: rgba(129,140,248,0.08); }

.page-movies .filter-chip { background: rgba(129,140,248,0.07); border-color: rgba(129,140,248,0.2); color: #9ca3af; }

.page-movies .filter-chip.active { background: #6366f1; border-color: #6366f1; color: white; }

.page-movies .form-input { background: rgba(255,255,255,0.07); color: #f3f4f6; border-color: rgba(129,140,248,0.2); }

.page-movies .form-input:focus { border-color: #818cf8; background: rgba(255,255,255,0.1); }

.page-movies .form-label { color: #9ca3af; }

.page-movies .modal { background: rgba(17,24,39,0.98); color: #f3f4f6; }

.page-movies .modal-header { border-color: rgba(129,140,248,0.15); background: rgba(17,24,39,0.98); }

.page-movies .page-title { color: #f3f4f6; }

/* Wishlist — blush rose */

.page-wishlist {
  background: linear-gradient(135deg, #fff0f6 0%, #fce7f3 60%, #fdf2f8 100%);
  min-height: 100vh;
  --accent: #db2777; --accent-dim: rgba(219,39,119,0.1);
  --tab-grad: linear-gradient(135deg, #831843, #db2777, #f97316, #ec4899, #a855f7, #db2777, #831843);
  --tab-color: white;
}

.page-wishlist .card { background: rgba(255,240,246,0.7); border-color: rgba(219,39,119,0.12); }

.page-wishlist .card-hover:hover { background: rgba(255,240,246,0.88); }

.page-wishlist .btn-primary { background: #db2777; }

.page-wishlist .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(219,39,119,0.3); }

.page-wishlist .filter-chip.active { background: #db2777; border-color: #db2777; }

.page-wishlist .filter-chip:hover { border-color: #db2777; color: #db2777; }

.page-wishlist .tabs { background: rgba(219,39,119,0.07); }

.page-wishlist .form-input:focus { border-color: #db2777; }

/* Planner — light blue */

.page-todos {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 60%, #f0f9ff 100%);
  min-height: 100vh;
  --accent: #0284c7; --accent-dim: rgba(2,132,199,0.1);
  --text-muted: #0369a1; --text-light: #38bdf8;
  --tab-grad: linear-gradient(135deg, #0c4a6e, #0284c7, #06b6d4, #7dd3fc, #0284c7, #0c4a6e);
  --tab-color: white;
}

.page-todos .card { background: rgba(240,249,255,0.75); border-color: rgba(2,132,199,0.12); }

.page-todos .card-hover:hover { background: rgba(240,249,255,0.92); }

.page-todos .btn-primary { background: #0284c7; }

.page-todos .btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px rgba(2,132,199,0.3); }

.page-todos .btn-ghost { background: rgba(2,132,199,0.08); color: #0284c7; border-color: rgba(2,132,199,0.2); }

.page-todos .btn-ghost:hover { background: rgba(2,132,199,0.15); }

.page-todos .filter-chip.active { background: #0284c7; border-color: #0284c7; }

.page-todos .filter-chip:hover { border-color: #0284c7; color: #0284c7; }

.page-todos .tabs { background: rgba(2,132,199,0.08); }

.page-todos .form-input:focus { border-color: #0284c7; }

/* Astrology - dark starry */

.page-astrology {
  --accent: #c084fc;
  --accent-light: #e9d5ff;
  --accent-dim: rgba(192,132,252,0.1);
  --text: #e8d5ff;
  --text-muted: #a78bca;
  --text-light: #7c5cbf;
  --glass: rgba(255,255,255,0.04);
  --glass-hover: rgba(255,255,255,0.07);
  --glass-border: rgba(192,132,252,0.18);
  --shadow: 0 4px 20px rgba(192,132,252,0.08);
  --shadow-lg: 0 8px 40px rgba(192,132,252,0.15);
  --tab-grad: linear-gradient(135deg, #1e0550, #7c3aed, #ec4899, #06b6d4, #7c3aed, #1e0550);
  --tab-color: white;
  --sidebar-bg: rgba(0,0,0,0.35);
  --sidebar-border: rgba(192,132,252,0.12);
  color: #e8d5ff;
  background: radial-gradient(ellipse at 20% 50%, #1a0533 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, #0a0020 0%, transparent 40%),
              linear-gradient(135deg, #060014 0%, #0d0526 50%, #07001a 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

.page-astrology .card { background: rgba(255,255,255,0.04); border-color: rgba(192,132,252,0.15); }

.page-astrology .card-hover:hover { background: rgba(255,255,255,0.07); }

.page-astrology .tabs { background: rgba(192,132,252,0.08); }

.page-astrology .tab { color: var(--text-muted); }

.page-astrology .form-input { background: rgba(255,255,255,0.07); color: #e8d5ff; border-color: rgba(192,132,252,0.2); }

.page-astrology .form-input:focus { border-color: #c084fc; background: rgba(255,255,255,0.1); }

.page-astrology .filter-chip { background: rgba(192,132,252,0.08); border-color: rgba(192,132,252,0.2); color: #a78bca; }

.page-astrology .filter-chip.active { background: #7c3aed; border-color: #7c3aed; color: white; }

.page-astrology .btn-primary { background: #7c3aed; }

.page-astrology .btn-primary:hover { filter: brightness(1.15); }

.page-astrology .btn-ghost { background: rgba(192,132,252,0.1); color: #c084fc; border-color: rgba(192,132,252,0.3); }

.page-astrology .modal { background: rgba(13,5,34,0.98); color: #e8d5ff; }

.page-astrology .modal-header { border-color: rgba(192,132,252,0.15); background: rgba(13,5,34,0.98); }

.page-astrology .form-label { color: #a78bca; }

/* Settings — uses default purple theme */

.page-settings {
  background: linear-gradient(135deg, #f5f0ff 0%, #ede0ff 60%, #fce7f3 100%);
  min-height: 100vh;
}

/* Home / Dashboard */

.page-home {
  min-height: 100vh;
  background: linear-gradient(135deg, #fce7f3 0%, #e9d5ff 18%, #bfdbfe 36%, #d1fae5 54%, #fef3c7 72%, #fce7f3 90%, #e9d5ff 100%);
  background-size: 400% 400%;
  animation: homeFlow 24s ease infinite;
}

@keyframes homeFlow {
  0%   { background-position: 0% 0%; }
  33%  { background-position: 100% 50%; }
  66%  { background-position: 50% 100%; }
  100% { background-position: 0% 0%; }
}

/* ── ANIMATIONS ────────────────────────────────────── */

@keyframes twinkle {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 0.1; transform: scale(0.6); }
}

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

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(192,132,252,0.3); }
  50%       { box-shadow: 0 0 28px rgba(192,132,252,0.7); }
}

@keyframes shimmer {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.fade-in { animation: fadeInUp 0.3s ease both; }

@keyframes floatUp {
  0%   { transform: translateY(0); opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-110vh); opacity: 0; }
}

@keyframes fallDown {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  5%   { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { transform: translateY(110vh) rotate(480deg); opacity: 0; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50%       { opacity: 0.28; transform: scale(1.8); }
}

@keyframes iridescent {
  0%   { background-position: 0% center; }
  50%  { background-position: 100% center; }
  100% { background-position: 0% center; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── MOBILE RESPONSIVE ─────────────────────────────── */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  align-self: flex-start;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  display: block;
  transition: all 0.2s;
}

@media (max-width: 768px) {
  /* Layout */
  .hamburger { display: flex !important; }
  .sidebar {
    transform: translateX(-100%);
    width: 240px;
    transition: transform 0.25s ease;
    background: rgba(252, 248, 255, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 4px 0 32px rgba(147, 51, 234, 0.18) !important;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0 !important; padding: 16px 14px; }

  /* Grids → single column */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .grid-auto { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* Page header */
  .page-header { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Filter bar */
  .filter-bar { gap: 6px; }
  .filter-chip { padding: 5px 11px; font-size: 12px; }

  /* Modal full-width */
  .modal-overlay { padding: 12px; align-items: flex-end; }
  .modal { max-height: 88vh; border-radius: 16px 16px 0 0; }

  /* Tabs scroll */
  .tabs { overflow-x: auto; width: 100%; max-width: 100%; }

  /* Touch targets */
  .nav-item { padding: 11px 20px; }
  .tab { padding: 8px 14px; }
  .btn { padding: 10px 16px; }

  /* Card padding */
  .p-20 { padding: 14px !important; }
  .p-16 { padding: 12px !important; }

  /* Dashboard hero */
  .dash-hero { padding: 20px 0 14px !important; }
  .dash-hero-title { font-size: 32px !important; letter-spacing: 2px !important; }
  .dash-hero-greeting { font-size: 16px !important; }
  .dash-date-loc { display: none; }

  /* Quick links */
  .dash-quick-links { gap: 5px !important; }
  .dash-quick-links a { font-size: 10px !important; padding: 4px 8px !important; }
  .dash-ql-sep { display: none !important; }

  /* Dashboard grids → stack */
  .dash-weather-grid { grid-template-columns: 1fr !important; }
  .dash-todo-wish-grid { grid-template-columns: 1fr !important; }

  /* Weekly menu → horizontal scroll */
  .dash-weekly-menu { min-width: 440px; }

  /* News grid → stack */
  .news-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* Restaurant search bar */
  .restaurant-search { flex-direction: column !important; }

  /* Notes drawer */
  .notes-drawer { width: 100% !important; right: 0 !important; }
}
