/* ============================================
   THE BLAU FAMILY WEBSITE — Master Stylesheet
   ============================================
   THEME: Explorer's Journal / Leather-bound Adventure Book

   LIGHT MODE: Warm parchment, rich browns, aged gold
   DARK MODE:  Deep leather, glowing amber, candlelight
   ============================================ */


/* ─── CSS Variables ─── */
:root {
  /* Light Mode — Explorer's Parchment */
  --bg-primary: #FAF6EE;
  --bg-secondary: #F3EBD8;
  --bg-card: rgba(243, 235, 216, 0.94);
  --bg-card-hover: rgba(250, 246, 238, 0.98);
  --bg-nav: rgba(243, 235, 216, 0.97);
  --bg-overlay: rgba(250, 246, 238, 0.98);

  --text-primary: #2C2416;
  --text-secondary: #524839;
  --text-muted: #7A6B5A;

  --accent-gold: #D4A54A;
  --accent-gold-light: #E8C76A;
  --accent-brown: #8E5330;
  --accent-green: #2E6F40;
  --accent-red: #a65d4e;
  --accent-blue: #4e7a8a;
  --accent-copper: #B87333;

  --border: #D4C4A8;
  --border-light: #E5D9C3;
  --shadow: rgba(44, 36, 22, 0.1);
  --shadow-strong: rgba(44, 36, 22, 0.2);
  --glow: rgba(212, 165, 74, 0.25);

  --parchment-texture: none;

  --font-display: 'Cinzel', Georgia, serif;
  --font-body: 'EB Garamond', Georgia, serif;
  --font-script: 'Caveat', cursive;
  --font-display-decorative: 'Cinzel Decorative', 'Cinzel', Georgia, serif;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --max-width: 1140px;
  --nav-width: 220px;
  --transition: 0.3s ease;
}

/* ─── Dark Mode — Candlelit Study ─── */
[data-theme="dark"] {
  --bg-primary: #141010;
  --bg-secondary: #1C1614;
  --bg-card: rgba(28, 22, 20, 0.94);
  --bg-card-hover: rgba(36, 28, 24, 0.97);
  --bg-nav: rgba(20, 16, 16, 0.98);
  --bg-overlay: rgba(20, 16, 16, 0.98);

  --text-primary: #F0D9B5;
  --text-secondary: #D0B48E;
  --text-muted: #96816A;

  --accent-gold: #D4A54A;
  --accent-gold-light: #E8C76A;
  --accent-brown: #A88B66;
  --accent-green: #7A9E72;
  --accent-red: #C47A6A;
  --accent-blue: #6A9EB0;
  --accent-copper: #B87333;

  --border: #2E2420;
  --border-light: #3A302A;
  --shadow: rgba(0, 0, 0, 0.4);
  --shadow-strong: rgba(0, 0, 0, 0.6);
  --glow: rgba(212, 165, 74, 0.15);

  --parchment-texture: none;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--accent-gold); border-radius: 4px; opacity: 0.7; }
::-webkit-scrollbar-thumb:hover { opacity: 1; }

/* Selection color */
::selection { background: rgba(212,165,74,0.3); color: var(--text-primary); }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  font-size: 17px;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.6s ease, color var(--transition);
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { transition: color 0.2s ease; }

/* ─── Nature Background (random photo each visit) ─── */
.mountain-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* background-image set dynamically in JS — random nature photo each load */
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  transition: filter 0.6s ease, opacity 0.6s ease;
}

/* Light mode: slightly brighten the photo and add a soft wash */
.mountain-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(232,238,244,0.15) 0%,
    rgba(232,238,244,0.3) 60%,
    rgba(232,238,244,0.65) 100%
  );
  pointer-events: none;
}

/* Dark mode: deepen the night feel */
[data-theme="dark"] .mountain-photo {
  filter: brightness(0.4) saturate(0.7);
}

[data-theme="dark"] .mountain-photo::after {
  background: linear-gradient(
    180deg,
    rgba(14,21,32,0.2) 0%,
    rgba(14,21,32,0.5) 60%,
    rgba(14,21,32,0.8) 100%
  );
}

/* ─── Falling Snow ─── */
.snowfall {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -8px;
  background: white;
  border-radius: 50%;
  opacity: 0;
  animation: snowDrift linear infinite;
}

@keyframes snowDrift {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateX(var(--drift, 30px)) translateY(100vh);
  }
}

[data-theme="dark"] .snowflake {
  opacity: 0;
  animation-name: snowDrift;
}

/* (dark mode mountain is handled by .mountain-scene filter) */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

h1 { font-size: 2.4rem; line-height: 1.15; }
h2 { font-size: 1.8rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.05rem; }

a { color: var(--accent-gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-gold-light); text-decoration-color: var(--accent-gold-light); }

img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

/* ============================================
   PASSCODE ENTRY SCREEN
   ============================================ */
/* ── Code Rain Canvas (behind the door) ── */
.code-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.passcode-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0e14;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.passcode-screen.unlocked {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.door-container {
  position: relative;
  z-index: 2;
  width: 420px;
  text-align: center;
}

/* ═══ 3D DOUBLE DOOR ═══ */
.door-frame {
  width: 320px;
  height: 420px;
  margin: 1.5rem auto;
  position: relative;
  border: 3px solid var(--accent-gold);
  border-radius: 160px 160px 0 0;
  overflow: hidden;
  box-shadow:
    0 0 40px rgba(212,165,74,0.2),
    inset 0 0 60px rgba(0,0,0,0.3);
}

.door-perspective {
  width: 100%;
  height: 100%;
  perspective: 1200px;
  display: flex;
  position: relative;
  z-index: 2;
}

.door-left, .door-right {
  width: 50%;
  height: 100%;
  position: relative;
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

.door-left {
  transform-origin: left center;
}

.door-right {
  transform-origin: right center;
}

.door-panel {
  width: 100%;
  height: 100%;
  background: linear-gradient(170deg, #654321 0%, #4A2F1A 40%, #3A2010 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.4);
}

.door-panel::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(212,165,74,0.3);
  border-radius: 4px;
  pointer-events: none;
}

.door-ornament {
  font-size: 2rem;
  color: #D4A54A;
  text-shadow: 0 0 20px rgba(212,165,74,0.5);
  margin-bottom: 2rem;
}

.door-handle-left, .door-handle-right {
  width: 12px;
  height: 40px;
  background: linear-gradient(180deg, #D4A54A, #B87333, #D4A54A);
  border-radius: 6px;
  position: absolute;
  top: 55%;
  box-shadow: 0 0 10px rgba(212,165,74,0.4);
}

.door-handle-left { right: 15px; }
.door-handle-right { left: 15px; }

.door-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255,245,220,0.9) 0%, rgba(255,220,150,0.4) 40%, transparent 70%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* Door open animation */
.door-frame.door-opening .door-left {
  transform: rotateY(-105deg);
}
.door-frame.door-opening .door-right {
  transform: rotateY(105deg);
}
.door-frame.door-opening .door-light {
  opacity: 1;
}

.door-greeting {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #c9a961;
  text-shadow: 0 0 15px rgba(212,168,75,0.3);
  max-width: 240px;
  line-height: 1.6;
  text-align: center;
}

.passcode-title {
  font-family: var(--font-display-decorative);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(to right, #462523 0%, #cb9b51 22%, #f6e27a 45%, #f6f2c0 50%, #f6e27a 55%, #cb9b51 78%, #462523 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.passcode-subtitle {
  font-family: var(--font-script);
  color: #8a7d6e;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.passcode-input-wrap {
  position: relative;
  max-width: 240px;
  margin: 0 auto;
}

.passcode-input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: rgba(42,33,24,0.8);
  border: 2px solid #5a3e28;
  border-radius: 50px;
  color: #e8dcc8;
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 6px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.passcode-input:focus {
  border-color: #d4a84b;
  box-shadow: 0 0 20px rgba(212,168,75,0.2);
}

.passcode-input::placeholder {
  letter-spacing: 2px;
  color: #6b5344;
}

.passcode-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  margin-top: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.passcode-error.visible {
  opacity: 1;
}

.passcode-hint {
  color: #d4a84b;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  font-style: italic;
  text-shadow: 0 0 10px rgba(212,168,75,0.5);
  min-height: 1.5rem;
}

.door-shake {
  animation: doorShake 0.5s ease;
}

@keyframes doorShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(8px) rotate(1deg); }
  60% { transform: translateX(-5px) rotate(-0.5deg); }
  80% { transform: translateX(5px) rotate(0.5deg); }
}

/* ═══ GOLD FOIL TEXT ═══ */
.gold-foil {
  background: linear-gradient(to right, #462523 0%, #cb9b51 22%, #f6e27a 45%, #f6f2c0 50%, #f6e27a 55%, #cb9b51 78%, #462523 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══ LEATHER TEXTURE ═══ */
.leather-bg {
  background-color: #3A2010;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23n)' opacity='0.15'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
}

/* ═══ PARCHMENT TEXTURE ═══ */
.parchment-bg {
  background-color: var(--bg-secondary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23p)' opacity='0.06'/%3E%3C/svg%3E");
  box-shadow: inset 0 0 100px rgba(139, 90, 34, 0.08);
}

/* ═══ WAX SEAL ═══ */
.wax-seal {
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, #d4443b 20%, #c0392b 50%, #a93226 75%, #922b21 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 12px rgba(0,0,0,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.2),
    inset 0 2px 4px rgba(255,255,255,0.1);
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f5c6c1;
}

/* ═══ STITCHED BORDER ═══ */
.stitched {
  outline: 2px dashed rgba(210, 105, 30, 0.4);
  outline-offset: -8px;
}

/* ============================================
   MAIN LAYOUT (after passcode)
   ============================================ */
.site-wrapper {
  display: flex;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.6s ease 0.3s;
  position: relative;
  z-index: 2;
}

.site-wrapper.visible {
  opacity: 1;
}

/* ─── Journal Tab Navigation (Sidebar) ─── */
.journal-nav {
  width: var(--nav-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  overflow-y: auto;
  transition: background var(--transition), transform 0.3s ease;
  box-shadow: 4px 0 24px var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.journal-nav-logo {
  text-align: center;
  padding: 0.5rem 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.journal-nav-logo h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--accent-gold);
  margin-bottom: 0.15rem;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.journal-nav-logo .subtitle {
  font-family: var(--font-script);
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.nav-tabs {
  list-style: none;
  padding: 0.5rem 0;
  flex: 1;
}

.nav-tab {
  position: relative;
}

.nav-tab a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.2rem;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  border-left: 3px solid transparent;
  text-decoration: none;
  border-radius: 0 8px 8px 0;
  margin-right: 0.5rem;
}

.nav-tab a:hover {
  background: var(--bg-card);
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  padding-left: 1.4rem;
}

.nav-tab a.active {
  background: linear-gradient(90deg, rgba(212,165,74,0.12), transparent);
  color: var(--accent-gold);
  border-left-color: var(--accent-gold);
  font-weight: 700;
  padding-left: 1.4rem;
}

.nav-tab .tab-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  transition: transform 0.25s ease;
}

.nav-tab a:hover .tab-icon {
  transform: scale(1.15);
}

/* Theme toggle in nav */
.theme-toggle-wrap {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  width: 100%;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 0 16px rgba(212,165,74,0.2);
  transform: scale(1.02);
}

.theme-toggle .lantern {
  font-size: 1.2rem;
  transition: filter 0.3s, transform 0.3s;
}

[data-theme="dark"] .theme-toggle .lantern {
  filter: brightness(1.3) saturate(1.5);
}

/* ─── Main Content Area ─── */
.main-content {
  flex: 1;
  margin-left: var(--nav-width);
  min-height: 100vh;
  transition: margin var(--transition);
  /* No solid background — let the mountain photo show through */
}

.page-section {
  display: none;
  animation: fadeSlideIn 0.45s cubic-bezier(0.22,1,0.36,1);
}

.page-section.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 600;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px var(--shadow);
  color: var(--text-primary);
}

/* ============================================
   PAGE CONTAINER & COMMON ELEMENTS
   ============================================ */
.page-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::after {
  content: '⟡';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-primary);
  padding: 0 1rem;
  color: var(--accent-gold);
  font-size: 1.2rem;
}

.page-header h1 {
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
  font-size: 2.4rem;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-style: italic;
  max-width: 550px;
  margin: 0.3rem auto 0;
  font-family: var(--font-script);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

/* ─── Cards ─── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: 0 2px 8px var(--shadow), 0 4px 16px rgba(44,36,22,0.06);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease, border-color 0.3s ease, background var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(44,36,22,0.15), 0 8px 20px rgba(44,36,22,0.1);
  border-color: var(--accent-gold);
}

.card:hover::before {
  opacity: 1;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  text-decoration: none;
  position: relative;
  letter-spacing: 0.02em;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(212,165,74,0.35);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #1a1410;
  box-shadow: 0 2px 8px rgba(212,165,74,0.3), inset 0 1px 2px rgba(255,255,255,0.25);
  text-shadow: 0 1px 1px rgba(0,0,0,0.08);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--accent-gold-light), var(--accent-gold));
  box-shadow: 0 8px 24px rgba(212,165,74,0.45), inset 0 1px 2px rgba(255,255,255,0.3);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--accent-gold);
  color: #1a1410;
  box-shadow: 0 8px 20px rgba(212,165,74,0.3);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }

/* ─── Tags ─── */
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  transition: all 0.2s ease;
  cursor: default;
}
.tag:hover {
  background: var(--glow);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: scale(1.06);
}

/* ─── Grids ─── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }

/* ============================================
   HOME PAGE / HERO
   ============================================ */
/* Clean minimal hero (no box, no compass) */
.hero-clean {
  text-align: center;
  padding: 4.5rem 2rem 3.5rem;
  margin-bottom: 3rem;
  position: relative;
}

.hero-clean h1 {
  font-size: 3.2rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  position: relative;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-copper));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroShimmer 4s ease-in-out infinite alternate;
}

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

.hero-clean .tagline {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 0.03em;
}

/* Keep old .hero for backwards compatibility but make it same as clean */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 2rem 3rem;
  margin-bottom: 3rem;
}

.hero::before {
  display: none;
}

.hero-icon {
  display: none;
}

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

.hero h1 {
  font-size: 3rem;
  letter-spacing: 2px;
  margin-bottom: 0.3rem;
  position: relative;
}

.hero .tagline {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Home Section Cards ─── */
.section-card {
  text-align: center;
  padding: 2.2rem 1.5rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.section-card:hover {
  border-bottom-color: var(--accent-gold);
}

.section-card .icon {
  font-size: 2.4rem;
  margin-bottom: 0.8rem;
  display: block;
  transition: transform 0.3s ease;
}

.section-card:hover .icon {
  transform: scale(1.2) translateY(-4px);
}

.section-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

.section-card:hover h3 {
  color: var(--accent-gold);
}

.section-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }

/* ─── Location & Weather Widget ─── */
.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
  transition: all 0.2s;
  cursor: default;
}

.location-badge:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 2px 12px var(--glow);
}

/* ============================================
   FAMILY PROFILES
   ============================================ */
.profile-page {
  max-width: 800px;
  margin: 0 auto;
}

.profile-hero {
  text-align: center;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.profile-avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  margin: 0 auto 1rem;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 30px var(--glow), 0 8px 24px rgba(0,0,0,0.1);
  background: var(--bg-card);
  transition: all 0.4s ease;
  animation: avatarFloat 5s ease-in-out infinite;
}

@keyframes avatarFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.profile-avatar:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px var(--glow), 0 12px 32px rgba(0,0,0,0.15);
}

.profile-name {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}

.profile-role {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 0.8rem;
}

.profile-bio {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-secondary);
  line-height: 1.8;
}

.profile-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.detail-card {
  padding: 1.3rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
  border-color: var(--accent-gold);
}

.detail-card .detail-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
  transition: transform 0.3s ease;
}

.detail-card:hover .detail-icon {
  transform: scale(1.15);
}

.detail-card .detail-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.detail-card .detail-value { font-weight: 700; font-size: 1rem; margin-top: 0.4rem; color: var(--text-primary); }

/* ── Big, Bold Favorite Tags ── */
.fav-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.fav-tag {
  display: inline-block;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
.fav-tag:hover {
  transform: scale(1.1) translateY(-2px);
  background: var(--glow);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(212,165,74,0.25);
}
.fav-tag-single {
  font-size: 1.05rem;
  padding: 0.4rem 1.1rem;
}

/* ─── Editable Profile Fields ─── */
.editable-card {
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.editable-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px var(--glow);
}
.editable-card .edit-hint {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0;
  margin-top: 0.4rem;
  transition: opacity 0.2s;
}
.editable-card:hover .edit-hint { opacity: 0.7; }
.editable-card.editing .edit-hint { display: none; }

.editable-text {
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.4rem;
}
.editable-text:hover { background: var(--glow); }
.edit-hint-inline {
  font-size: 0.8rem;
  margin-left: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.editable-text:hover .edit-hint-inline { opacity: 0.6; }
.editable-text.editing .edit-hint-inline { display: none; }

/* The inline edit input (for favorite cards) */
.inline-edit-input {
  width: 100%;
  padding: 0.4rem 0.6rem;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 0 10px var(--glow);
}

/* The inline edit textarea (for bio / fun fact) */
.inline-edit-textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-secondary);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  outline: none;
  box-shadow: 0 0 10px var(--glow);
  min-height: 60px;
}

.inline-edit-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: flex-end;
}

/* Save confirmation flash */
.edit-saved {
  animation: saveFlash 0.8s ease;
}
@keyframes saveFlash {
  0% { box-shadow: 0 0 0 0 rgba(90, 138, 106, 0); }
  30% { box-shadow: 0 0 20px 4px rgba(90, 138, 106, 0.5); }
  100% { box-shadow: 0 0 0 0 rgba(90, 138, 106, 0); }
}

/* Profile back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  cursor: pointer;
  padding: 0.4rem 0;
  transition: color 0.2s;
}
.back-btn:hover { color: var(--accent-gold); }

/* ─── Interactive Toys (Kids Pages) ─── */
.toys-section {
  margin-top: 2.5rem;
}

.toys-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.toy-card {
  text-align: center;
  padding: 2rem 1.5rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.toy-card .toy-icon { font-size: 3rem; margin-bottom: 0.8rem; display: block; }
.toy-card h3 { margin-bottom: 0.3rem; }
.toy-card p { font-size: 0.85rem; color: var(--text-muted); }

/* Magic 8-Ball */
.magic-8ball {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 35%, #333, #0a0a0a);
  border-radius: 50%;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4), inset 0 -4px 8px rgba(255,255,255,0.05);
  transition: transform 0.1s;
  user-select: none;
}

.magic-8ball:active { transform: scale(0.95); }

.magic-8ball .window {
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, #1a1a6e, #0a0a3e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
}

.magic-8ball .answer {
  color: white;
  font-size: 0.7rem;
  text-align: center;
  padding: 0.3rem;
  font-family: var(--font-body);
  line-height: 1.3;
}

.magic-8ball.shaking {
  animation: shake8ball 0.6s ease;
}

@keyframes shake8ball {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg) translateY(-5px); }
  30% { transform: rotate(10deg) translateY(3px); }
  45% { transform: rotate(-8deg) translateY(-3px); }
  60% { transform: rotate(6deg) translateY(2px); }
  75% { transform: rotate(-3deg); }
}

/* Spin Wheel */
.spin-wheel-container {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 1rem auto;
}

.spin-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  box-shadow: 0 4px 20px var(--shadow-strong);
}

.spin-wheel canvas {
  width: 100%;
  height: 100%;
}

.spin-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  z-index: 5;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
}

.spin-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  border: 3px solid white;
  color: #1a1410;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.spin-result {
  text-align: center;
  margin-top: 1rem;
  min-height: 2em;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--accent-gold);
}

/* Scratch Card */
.scratch-card-wrap {
  position: relative;
  width: 260px;
  height: 160px;
  margin: 1rem auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.scratch-card-wrap canvas {
  position: absolute;
  inset: 0;
  cursor: crosshair;
  z-index: 2;
  border-radius: var(--radius);
}

.scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-gold);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

/* ============================================
   TRAVEL MAP
   ============================================ */
/* ── Map Search Bar ── */
/* ── Big, Bold Map Search Bar ── */
/* ============================================
   LUXURY TRAVEL MAP
   ============================================ */
.map-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 3rem;
}

/* ── Passport Hero ── */
.map-passport-hero {
  margin-bottom: 2rem;
}
.mph-border {
  border: 3px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light), var(--accent-copper), var(--accent-gold));
}
.mph-inner {
  background: var(--bg-primary);
  border-radius: calc(var(--radius-lg) - 4px);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mph-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(212,165,74,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.mph-stamp {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.6rem;
  opacity: 0.7;
}
.mph-title {
  font-family: var(--font-display-decorative);
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  line-height: 1.1;
}
.mph-sub {
  font-family: var(--font-script);
  font-size: 1.4rem;
  color: var(--accent-gold);
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}
.mph-divider {
  margin: 1rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mph-divider::before, .mph-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}
.mph-divider span {
  color: var(--accent-gold);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* ── Stat badges ── */
.mph-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.mph-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.8rem 1.2rem;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-width: 90px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: default;
}
.mph-badge:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
  box-shadow: 0 8px 24px var(--shadow);
}
.mph-badge-icon {
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
}
.mph-badge-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--accent-gold);
  line-height: 1;
}
.mph-badge-small {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}
.mph-badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ── Search bar ── */
.map-search-wrap {
  margin-bottom: 1.5rem;
  position: relative;
}
.map-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 60px;
  padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  box-shadow: 0 4px 20px var(--shadow);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.map-search-bar:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,165,74,0.12), 0 8px 30px var(--shadow-strong);
}
.msearch-icon { font-size: 1.1rem; margin-right: 0.5rem; opacity: 0.5; }
.map-search-input {
  flex: 1;
  padding: 0.8rem 0.5rem;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
}
.map-search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.map-search-btn {
  white-space: nowrap;
  padding: 0.7rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #1a1206;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 2px 8px rgba(212,165,74,0.3);
}
.map-search-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(212,165,74,0.4);
}

/* Search results dropdown */
.map-search-results {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  margin-top: 0.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: 100;
  box-shadow: 0 12px 40px var(--shadow-strong);
}
.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.4rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}
.search-result-item:hover {
  background: var(--bg-card-hover);
  padding-left: 1.8rem;
}
.search-result-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.search-result-item:last-child { border-bottom: none; border-radius: 0 0 var(--radius) var(--radius); }
.search-result-name { font-size: 0.92rem; font-weight: 500; color: var(--text-primary); flex: 1; margin-right: 1rem; line-height: 1.4; }
.search-result-add { font-size: 0.8rem; font-weight: 700; color: var(--accent-gold); white-space: nowrap; }
.search-loading, .search-no-results {
  padding: 1rem 1.4rem;
  background: var(--bg-card);
  font-size: 0.92rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--shadow);
}

/* ── Map container ── */
.travel-map-container {
  position: relative;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px var(--shadow);
}

/* Floating controls */
.map-float-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  z-index: 5;
}
.map-float-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 3px 12px var(--shadow-strong);
}
.map-float-btn:hover {
  background: var(--accent-gold);
  color: #1a1206;
  transform: scale(1.1);
}

/* Floating legend */
.map-legend-float {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  display: flex;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  box-shadow: 0 3px 12px var(--shadow);
}
.mlf-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}
.mlf-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.mlf-home { background: #d4a84b; }
.mlf-visited { background: #e05555; }
.mlf-wish { background: #a88bdd; }

/* Leaflet overrides */
.leaflet-container {
  font-family: var(--font-body) !important;
  background: var(--bg-secondary) !important;
}
.leaflet-popup-content-wrapper {
  background: var(--bg-card) !important;
  border: 2px solid var(--accent-gold) !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 8px 30px var(--shadow-strong) !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip { background: var(--bg-card) !important; border: 1px solid var(--accent-gold) !important; }
.leaflet-popup-close-button { color: var(--text-muted) !important; font-size: 1.2rem !important; }
.leaflet-control-zoom a {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  border-color: var(--border) !important;
}

/* Pin markers */
.map-pin-realistic { background: none !important; border: none !important; box-shadow: none !important; transition: transform 0.2s; }
.map-pin-realistic svg { display: block; }
.pin-label {
  background: rgba(255,255,255,0.95) !important;
  border: 1px solid rgba(0,0,0,0.1) !important;
  border-radius: 4px !important;
  padding: 2px 7px !important;
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  font-family: var(--font-display) !important;
  color: #2C2416 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12) !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
}
.pin-label::before { display: none !important; }

/* Popup */
.map-popup h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--accent-gold); margin-bottom: 0.3rem; }
.map-popup p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; line-height: 1.4; }
.blau-popup .leaflet-popup-content { padding: 1rem !important; }

/* ── US States Progress ── */
.states-progress {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
}
.sp-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.7rem; }
.sp-title { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-secondary); }
.sp-count { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; color: var(--accent-gold); }
.sp-of { font-size: 0.9rem; color: var(--text-muted); font-weight: 600; }
.sp-bar { height: 10px; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; }
.sp-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-copper), var(--accent-red));
  border-radius: 999px;
  transition: width 1.2s cubic-bezier(0.22,1,0.36,1);
  position: relative;
}
.sp-fill::after {
  content: '';
  position: absolute;
  right: -2px; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-card);
  box-shadow: 0 0 8px rgba(212,165,74,0.5);
}
.sp-footer { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; text-align: center; font-family: var(--font-script); font-size: 0.9rem; }

/* ── Home base ── */
.home-base-badge {
  background: linear-gradient(135deg, rgba(212,168,75,0.1), rgba(212,168,75,0.04));
  border: 1.5px solid rgba(212,165,74,0.25);
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ── Tabs ── */
.map-tabs { display: flex; gap: 0.5rem; justify-content: center; margin-bottom: 1.5rem; }
.map-tab {
  padding: 0.65rem 1.5rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.map-tab:hover { border-color: var(--accent-gold); color: var(--text-primary); transform: translateY(-2px); }
.map-tab.active {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-light));
  color: #1a1206;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px rgba(212,165,74,0.3);
}
.map-tab-content.hidden { display: none; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; margin-left: 0.3rem;
  font-size: 0.7rem; font-weight: 800; border-radius: 50%;
  background: var(--bg-secondary); color: var(--text-muted);
}
.map-tab.active .tab-count { background: rgba(0,0,0,0.2); color: #1a1206; }

/* ── Passport-style cards ── */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.7rem;
}
.pcard {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.pcard:hover {
  border-color: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--shadow);
}
.pcard:hover .remove-pin { opacity: 1; }
.pcard-stamp {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(212,165,74,0.12), rgba(212,165,74,0.04));
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.pcard:hover .pcard-stamp {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(212,165,74,0.2), rgba(212,165,74,0.08));
  transform: rotate(8deg) scale(1.1);
}
.pcard-body { min-width: 0; flex: 1; }
.pcard-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-region {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
}
.pcard-wish { border-left: 3px solid #a88bdd; }
.pcard .remove-pin {
  position: static; opacity: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-secondary); border-radius: 50%;
  font-size: 0.7rem; color: var(--text-muted);
  cursor: pointer; flex-shrink: 0; transition: all 0.2s;
}
.pcard .remove-pin:hover { color: #e05555; background: rgba(224,85,85,0.1); }

/* Mobile */
@media (max-width: 700px) {
  .mph-title { font-size: 1.8rem; }
  .mph-badges { gap: 0.5rem; }
  .mph-badge { min-width: 70px; padding: 0.6rem 0.8rem; }
  .mph-badge-num { font-size: 1.4rem; }
  .pcard-grid { grid-template-columns: 1fr; }
  .map-legend-float { gap: 8px; padding: 6px 10px; }
  .travel-map-container #leaflet-map { height: 380px !important; }
}

/* ============================================
   ADVENTURE JOURNAL / BLOG
   ============================================ */
.journal-entry {
  padding: 2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-gold);
  position: relative;
  transition: all 0.3s ease;
}

.journal-entry:hover {
  border-left-width: 6px;
  transform: translateX(4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.journal-entry::before {
  content: attr(data-date);
  position: absolute;
  top: -10px;
  left: 1rem;
  background: var(--bg-primary);
  padding: 0 0.8rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

.journal-entry .entry-title {
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.journal-entry .entry-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.journal-entry .entry-body {
  line-height: 1.8;
  color: var(--text-secondary);
}

.journal-entry .entry-image {
  width: 100%;
  height: 200px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-light);
}

.blog-filters {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
}

/* ============================================
   PHOTO GALLERY
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.8rem;
  margin: 2rem 0;
}

.gallery-thumb {
  width: 100%;
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid var(--border);
  transition: transform 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  border-color: var(--accent-gold);
}

/* Slideshow Modal */
.slideshow-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0,0,0,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(5px);
}

.slideshow-modal.hidden {
  display: none;
}

.slideshow-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  max-height: 600px;
}

.slideshow-image {
  width: 100%;
  height: 500px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  border: 2px solid var(--accent-gold);
}

.slideshow-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  padding: 1rem 0;
}

.slideshow-btn {
  background: var(--accent-gold);
  color: #1a1410;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.slideshow-btn:hover {
  background: var(--accent-gold-light);
}

.slideshow-counter {
  color: #888;
  font-size: 0.9rem;
  min-width: 60px;
  text-align: center;
}

.slideshow-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
}

.slideshow-close:hover {
  color: var(--accent-gold);
}

/* ============================================
   RECIPES
   ============================================ */
.recipe-card {
  overflow: hidden;
  padding: 0;
}

.recipe-card .recipe-image {
  width: 100%;
  height: 180px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border-light);
}

.recipe-card .recipe-body { padding: 1.5rem; }
.recipe-card h3 { margin-bottom: 0.3rem; }
.recipe-meta { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.6rem; }

.recipe-rating {
  color: var(--accent-gold);
  font-size: 1rem;
  letter-spacing: 2px;
}

.recipe-detail { margin-top: 1rem; }
.recipe-detail h4 { font-size: 0.95rem; color: var(--accent-gold); margin-bottom: 0.4rem; }
.recipe-detail ul, .recipe-detail ol { padding-left: 1.2rem; }
.recipe-detail li { padding: 0.15rem 0; font-size: 0.88rem; color: var(--text-secondary); }

.recipe-loved-by {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  border: 1px solid var(--border-light);
}

/* ============================================
   GRATITUDE WALL
   ============================================ */
.gratitude-wall {
  column-count: 3;
  column-gap: 1.2rem;
}

.gratitude-note {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  padding: 1.3rem;
  border-left: 3px solid var(--accent-gold);
  transition: all 0.3s ease;
}

.gratitude-note:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 24px var(--shadow);
  border-left-color: var(--accent-gold-light);
}

.gratitude-note .note-text { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.7; font-style: italic; font-family: var(--font-body); }
.gratitude-note .note-author { font-weight: 700; font-size: 0.82rem; color: var(--accent-gold); font-family: var(--font-display); letter-spacing: 0.03em; }
.gratitude-note .note-date { font-size: 0.75rem; color: var(--text-muted); }

.gratitude-form {
  max-width: 480px;
  margin: 0 auto 2rem;
  text-align: center;
}

.gratitude-form textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  resize: vertical;
  min-height: 80px;
  margin-bottom: 0.8rem;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gratitude-form textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,165,74,0.15);
}

.gratitude-form select, .form-select {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-right: 0.5rem;
  outline: none;
}

/* ============================================
   BUCKET LIST
   ============================================ */
.bucket-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.bucket-item:hover {
  border-color: var(--accent-gold);
  transform: translateX(6px);
  box-shadow: 0 4px 16px var(--shadow);
}

.bucket-checkbox {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  flex-shrink: 0;
  font-size: 0.8rem;
  background: transparent;
  color: transparent;
}

.bucket-checkbox:hover {
  border-color: var(--accent-gold);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(212,165,74,0.3);
}

.bucket-checkbox.checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #1a1410;
  animation: checkPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes checkPop {
  0% { transform: scale(0.6); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.bucket-item.completed .bucket-text {
  text-decoration: line-through;
  color: var(--text-muted);
}

.bucket-text { flex: 1; }
.bucket-category { font-size: 0.75rem; }

.trophy-section {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius);
  border: 2px dashed var(--accent-gold);
}

/* ============================================
   SEALED LETTERS / TIME CAPSULE
   ============================================ */
.letter-card {
  text-align: center;
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
}

.letter-card:hover {
  transform: translateY(-4px) rotate(-0.5deg);
}

.wax-seal {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c0392b, #7f1d1d);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3), inset 0 -2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  animation: sealPulse 4s ease-in-out infinite;
}

@keyframes sealPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(192, 57, 43, 0.5); }
}

.letter-card:hover .wax-seal {
  transform: scale(1.1);
}

.wax-seal.broken {
  background: radial-gradient(circle at 35% 35%, #888, #555);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.letter-countdown {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin: 0.5rem 0;
}

.letter-content {
  text-align: left;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-style: italic;
  line-height: 1.8;
  margin-top: 1rem;
}

/* ============================================
   DAILY QUESTION
   ============================================ */
.question-card {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2.5rem;
  position: relative;
  background: linear-gradient(135deg, var(--bg-card), rgba(212,165,74,0.03));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px var(--shadow);
}

.question-card .quote-mark {
  font-size: 5rem;
  color: var(--accent-gold);
  opacity: 0.2;
  line-height: 0.6;
  font-family: Georgia, serif;
  display: block;
  margin-bottom: 0.5rem;
}

.question-card .question-text {
  font-size: 1.4rem;
  font-family: var(--font-display);
  line-height: 1.5;
  margin: 1rem 0 1.5rem;
  letter-spacing: 0.01em;
}

/* ============================================
   SHABBOS COUNTDOWN
   ============================================ */
.shabbos-widget {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}

.candle-display {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: 12px;
  animation: candleGlow 3s ease-in-out infinite alternate;
}

@keyframes candleGlow {
  0% { filter: brightness(1); text-shadow: 0 0 10px rgba(212,165,74,0.2); }
  100% { filter: brightness(1.1); text-shadow: 0 0 20px rgba(212,165,74,0.5); }
}

.shabbos-time {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

.shabbos-countdown {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.shabbos-parsha {
  font-family: var(--font-script);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ============================================
   FAMILY SCOREBOARD
   ============================================ */
.scoreboard-entry {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.3rem;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.scoreboard-entry:hover {
  transform: translateX(6px);
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--shadow);
}

.scoreboard-rank {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rank-1 { background: var(--accent-gold); color: #1a1410; }
.rank-2 { background: #c0c0c0; color: #1a1410; }
.rank-3 { background: #cd7f32; color: white; }
.rank-other { background: var(--bg-secondary); color: var(--text-muted); }

.scoreboard-name { flex: 1; font-weight: 600; }
.scoreboard-points { font-family: var(--font-display); font-weight: 700; color: var(--accent-gold); }

/* Activity indicator dots */
.active-dot {
  font-size: 1.2rem;
  color: #2ecc71;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.inactive-dot {
  font-size: 1.2rem;
  color: #888;
}

/* ============================================
   GROWING FAMILY TREE
   ============================================ */
.tree-container {
  text-align: center;
  padding: 2rem;
}

.tree-container svg {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.tree-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.tree-stat {
  text-align: center;
}

.tree-stat .stat-icon { font-size: 1.3rem; display: block; }
.tree-stat .stat-num { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--accent-gold); }
.tree-stat .stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* ============================================
   SPOTIFY EMBED
   ============================================ */
.spotify-wrap {
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}

.spotify-wrap iframe {
  width: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-secondary);
  border-top: 2px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-footer .heart { color: var(--accent-red); }

/* ============================================
   MODAL / OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  border: 2px solid var(--border);
}

.modal h3 { margin-bottom: 1rem; }
.modal-close {
  float: right;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.3rem;
}

/* ============================================
   FORM INPUTS
   ============================================ */
.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  margin-bottom: 0.8rem;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212,165,74,0.12);
  background: var(--bg-primary);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
}

.form-input:focus::placeholder, .form-textarea:focus::placeholder {
  opacity: 0.3;
}

.form-textarea { resize: vertical; min-height: 100px; }
.form-label { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 0.3rem; color: var(--text-secondary); }

/* ============================================
   STAR CHART (Birth Sky)
   ============================================ */
.star-chart {
  position: relative;
  width: 100%;
  height: 200px;
  background: radial-gradient(ellipse at center, #0a0a2e, #050510);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5rem 0;
}

.star-chart .star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  border-radius: 50%;
  animation: twinkle 3s ease-in-out infinite;
}

.star-chart .star.bright {
  width: 4px;
  height: 4px;
  box-shadow: 0 0 6px 2px rgba(255,255,255,0.5);
}

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

.star-chart .constellation-label {
  position: absolute;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  font-family: var(--font-script);
}

/* ============================================
   ANIMATED PET CREATURE
   ============================================ */
.pet-creature {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 400;
  transition: transform 0.1s;
  animation: petBounce 2s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.pet-creature:hover {
  animation: petExcited 0.4s ease infinite;
}

@keyframes petBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-3deg); }
  75% { transform: translateY(-3px) rotate(3deg); }
}

@keyframes petExcited {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.1) rotate(-5deg); }
  75% { transform: scale(1.1) rotate(5deg); }
}

/* ============================================
   UTILITY
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* Divider ornament */
.ornament {
  text-align: center;
  margin: 2.5rem 0;
  color: var(--accent-gold);
  font-size: 1.2rem;
  opacity: 0.4;
  letter-spacing: 12px;
  position: relative;
}
.ornament::before,
.ornament::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}
.ornament::before { right: calc(50% + 40px); }
.ornament::after { left: calc(50% + 40px); }

/* ============================================
   CALENDAR
   ============================================ */
/* ============================================
   MODERN HYBRID CALENDAR
   ============================================ */
.cal-app {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 24px var(--shadow);
}

/* Top bar with month nav */
.cal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0 0.25rem;
}
.cal-month-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
.cal-nav-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.cal-nav-btn:hover {
  background: var(--accent-gold);
  color: #1a1410;
  border-color: var(--accent-gold);
}
.cal-today-btn {
  font-size: 0.75rem;
  font-family: var(--font-body);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cal-today-btn:hover {
  background: var(--accent-gold);
  color: #1a1410;
  border-color: var(--accent-gold);
}

/* Grid layout */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-grid-header {
  border-bottom: 2px solid var(--border);
  margin-bottom: 0;
}
.cal-hdr {
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.6rem 0;
  background: var(--bg-secondary);
}
.cal-hdr-shabbat {
  color: var(--accent-gold);
}

/* Day cells */
.cal-grid-body {
  border-left: 1px solid var(--border);
}
.cal-cell {
  min-height: 85px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.45rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: default;
  transition: background 0.15s;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}
.cal-cell:hover {
  background: var(--bg-secondary);
}
.cal-cell-outside {
  opacity: 0.35;
  background: var(--bg-secondary);
}
.cal-cell-today {
  background: rgba(212,168,75, 0.15);
  border: 2px solid var(--accent-gold);
}
.cal-cell-today .cal-greg {
  background: var(--accent-gold);
  color: #1a1410;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.cal-cell-holiday {
  background: var(--bg-card);
}
.cal-cell-shabbat {
  background: var(--bg-secondary);
}

/* Day numbers */
.cal-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cal-greg {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
}
.cal-heb {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  opacity: 0.85;
  direction: rtl;
  font-family: var(--font-body);
}

/* Holiday indicators */
.cal-hol-name {
  font-size: 0.65rem;
  color: var(--accent-gold);
  font-weight: 600;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-dots {
  display: flex;
  gap: 3px;
  margin-top: auto;
}
.cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-gold);
}

/* Loading state */
.cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

/* Holidays panel */
.cal-holidays-panel {
  margin-top: 2rem;
}
.cal-panel-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.cal-hol-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.cal-hol-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.cal-hol-row:hover {
  border-color: var(--accent-gold);
  transform: translateY(-1px);
}
.cal-hol-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 48px;
  padding: 0.3rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  line-height: 1;
}
.cal-hol-mon {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-gold);
  font-weight: 700;
}
.cal-hol-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-display);
}
.cal-hol-day {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cal-hol-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cal-hol-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-hol-heb {
  font-size: 0.78rem;
  color: var(--text-muted);
  direction: rtl;
  text-align: left;
}
.cal-credit {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
}
.cal-credit a {
  color: var(--accent-gold);
  text-decoration: none;
}

/* Mobile responsive */
@media (max-width: 700px) {
  .cal-cell { min-height: 60px; padding: 0.3rem; }
  .cal-greg { font-size: 0.8rem; }
  .cal-heb { font-size: 0.6rem; }
  .cal-hol-name { font-size: 0.55rem; }
  .cal-hol-list { grid-template-columns: 1fr; }
  .cal-month-title { font-size: 1.2rem; }
}

/* ============================================
   APPLE MUSIC–STYLE PLAYER
   ============================================ */

.am-app {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 90px;
}

/* ── Hero Section ── */
.am-hero {
  position: relative;
  padding: 3rem 2rem 2rem;
  text-align: center;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: linear-gradient(135deg, #fc3c44, #a8325e, #5b2d8e);
  color: white;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: min-height 0.4s ease;
}

.am-hero-active {
  min-height: 280px;
}

.am-hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: background 0.6s ease;
}

.am-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.am-hero-active .am-hero-content {
  flex-direction: row;
  gap: 2rem;
  text-align: left;
  max-width: 700px;
  width: 100%;
}

.am-hero-icon {
  font-size: 3.5rem;
  opacity: 0.9;
}

.am-hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  letter-spacing: -0.5px;
}

.am-hero-sub {
  font-size: 1rem;
  opacity: 0.85;
}

.am-hero-art {
  width: 180px;
  height: 180px;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

.am-hero-meta {
  flex: 1;
  min-width: 0;
}

.am-hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 0.3rem;
}

.am-hero-song {
  font-size: 2rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1.15;
  margin-bottom: 0.3rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.am-hero-artist {
  font-size: 1.15rem;
  opacity: 0.9;
  font-weight: 600;
}

.am-hero-album {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 0.2rem;
}

/* ── Search ── */
.am-search-wrap {
  padding: 1.2rem 1.5rem 0.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg-primary);
}

.am-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.am-search-icon {
  position: absolute;
  left: 16px;
  font-size: 1.2rem;
  color: var(--text-muted);
  pointer-events: none;
}

.am-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.8rem;
  border: none;
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
  box-shadow: 0 1px 4px var(--shadow);
}

.am-search-input:focus {
  outline: none;
  box-shadow: 0 2px 12px rgba(252, 60, 68, 0.15);
}

.am-search-input::placeholder {
  color: var(--text-muted);
}

/* ── Results ── */
.am-results {
  flex: 1;
  padding: 0.5rem 0;
}

.am-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.am-track-list {
  display: flex;
  flex-direction: column;
}

/* ── Track Row ── */
.am-track {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.65rem 1.5rem;
  cursor: pointer;
  transition: background 0.12s ease;
  border-bottom: 1px solid var(--border-light);
}

.am-track:last-child {
  border-bottom: none;
}

.am-track:hover {
  background: var(--bg-card-hover);
}

.am-track.am-playing {
  background: rgba(252, 60, 68, 0.06);
}

.am-track-num {
  width: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.am-playing .am-track-num {
  color: #fc3c44;
}

.am-eq {
  color: #fc3c44;
  font-size: 1rem;
  animation: eq-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes eq-pulse {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.1); }
}

.am-track-art {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 4px var(--shadow);
}

.am-track-info {
  flex: 1;
  min-width: 0;
}

.am-track-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.am-playing .am-track-name {
  color: #fc3c44;
}

.am-track-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-track-dur {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 40px;
  text-align: right;
}

/* ── Now Playing Bar ── */
.am-now-bar {
  position: fixed;
  bottom: 0;
  left: var(--nav-width);
  right: 0;
  z-index: 200;
  background: var(--bg-card);
  box-shadow: 0 -4px 20px var(--shadow-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.am-now-progress-wrap {
  width: 100%;
  height: 3px;
  background: var(--border-light);
}

.am-now-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fc3c44, #ff6b6b);
  transition: width 0.15s linear;
  border-radius: 0 3px 3px 0;
}

.am-now-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
}

.am-now-art {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--shadow);
  flex-shrink: 0;
}

.am-now-info {
  flex: 1;
  min-width: 0;
}

.am-now-title {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.am-now-artist {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.am-now-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.am-ctrl-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
}

.am-ctrl-btn:hover {
  background: var(--bg-secondary);
  color: #fc3c44;
}

.am-play-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fc3c44;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  box-shadow: 0 2px 8px rgba(252, 60, 68, 0.3);
}

.am-play-btn:hover {
  background: #fa233b;
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(252, 60, 68, 0.4);
}

@media (max-width: 900px) {
  .am-now-bar { left: 0; }
  .am-hero-active .am-hero-content {
    flex-direction: column;
    text-align: center;
  }
  .am-hero-art { width: 140px; height: 140px; }
  .am-hero-song { font-size: 1.5rem; white-space: normal; }
  .am-track { padding: 0.65rem 1rem; }
}

@media (max-width: 600px) {
  .am-hero { padding: 2rem 1rem 1.5rem; min-height: 140px; }
  .am-hero-active { min-height: 220px; }
  .am-hero-art { width: 110px; height: 110px; }
  .am-hero-title { font-size: 2rem; }
  .am-hero-song { font-size: 1.3rem; }
}

/* ============================================
   SHABBOS SECTION
   ============================================ */

.shabbos-widget {
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.candle-display {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: flicker 3s ease-in-out infinite;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.shabbos-countdown {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.shabbos-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.shabbos-time-item {
  flex: 1;
  min-width: 150px;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
}

.shabbos-time-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.shabbos-time-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
}

.shabbos-time-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.shabbos-time-divider {
  font-size: 1.5rem;
  color: var(--accent-gold);
  opacity: 0.5;
}

.shabbos-info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.shabbos-parsha {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ============================================
   GAMES (2048)
   ============================================ */

.game-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  background: var(--bg-secondary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  box-shadow: 0 4px 12px var(--shadow);
}

.game-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.8rem;
  font-family: var(--font-display);
  transition: all 0.2s ease;
  user-select: none;
  cursor: default;
}

.game-tile:not(:empty) {
  box-shadow: 0 2px 8px var(--shadow-strong);
}

/* ============================================
   MUSIC SECTION
   ============================================ */

.music-page {
  max-width: 700px;
  margin: 0 auto;
}

.music-now-playing {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
  transition: all var(--transition);
  cursor: pointer;
}

.music-now-playing:hover {
  border-color: var(--accent-green-spotify);
  box-shadow: 0 6px 16px rgba(29, 185, 84, 0.25);
  transform: translateY(-4px);
}

.music-album-art {
  width: 280px;
  height: 280px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px var(--shadow-strong);
  object-fit: cover;
}

.music-album-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.music-info {
  margin-bottom: 1.5rem;
}

.music-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.music-artist {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1rem;
}

.music-status {
  font-size: 0.95rem;
  color: var(--accent-green-spotify);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.music-controls {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.music-btn {
  padding: 0.75rem 1.5rem;
  background: var(--accent-green-spotify);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.music-btn:hover {
  background: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
}

.music-btn:active {
  transform: translateY(0);
}

.music-input-section {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
}

.music-input-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.music-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.music-form-group {
  display: flex;
  flex-direction: column;
}

.music-form-group label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.music-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition);
}

.music-input:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--glow);
}

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

.music-submit-btn {
  padding: 1rem;
  background: var(--accent-green-spotify);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.music-submit-btn:hover {
  background: #1ed760;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(29, 185, 84, 0.35);
}

.music-submit-btn:active {
  transform: translateY(0);
}

/* Homepage Music Widget */
.homepage-music-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(252, 60, 68, 0.06));
  border: 2px solid #fc3c44;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(252, 60, 68, 0.15);
}

.homepage-music-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 60, 68, 0.25);
  border-color: #fa233b;
}

.music-widget-icon {
  font-size: 3rem;
  animation: float 3s ease-in-out infinite;
}

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

.music-widget-info {
  flex: 1;
}

.music-widget-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.music-widget-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.music-widget-artist {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
}

.music-widget-action {
  font-size: 1.5rem;
  color: #fc3c44;
  transition: all var(--transition);
}

.homepage-music-card:hover .music-widget-action {
  color: #fa233b;
  transform: scale(1.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .journal-nav {
    transform: translateX(-100%);
  }

  .journal-nav.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .gratitude-wall { column-count: 2; }
}

@media (max-width: 600px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 3rem 1.5rem; }

  .page-container { padding: 1.5rem 1rem 3rem; }
  .card { padding: 1.3rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .gratitude-wall { column-count: 1; }
  .quotes-wall { column-count: 1; }
  .profile-details { grid-template-columns: 1fr 1fr; }
}
