/* ==========================================================================
   MODERN COUNTDOWN 2027 - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

:root {
  /* Default: Cosmic Nebula */
  --bg-dark: #0a0818;
  --bg-gradient: radial-gradient(circle at 50% 20%, #1c123d 0%, #0c0721 50%, #05030d 100%);
  --surface-glass: rgba(255, 255, 255, 0.04);
  --surface-glass-border: rgba(255, 255, 255, 0.12);
  --surface-glass-hover: rgba(255, 255, 255, 0.08);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #8b5cf6;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --highlight: #f59e0b;
  --glow-color: rgba(139, 92, 246, 0.4);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;
}

/* Theme: Royal Champagne */
[data-theme="gold"] {
  --bg-dark: #0f0d0a;
  --bg-gradient: radial-gradient(circle at 50% 20%, #2b2214 0%, #14100b 50%, #080604 100%);
  --surface-glass: rgba(255, 220, 160, 0.05);
  --surface-glass-border: rgba(255, 215, 0, 0.2);
  --surface-glass-hover: rgba(255, 215, 0, 0.12);
  --text-main: #fffdf7;
  --text-muted: #d4c5a9;
  --primary: #f59e0b;
  --secondary: #fbbf24;
  --accent: #fcd34d;
  --highlight: #fef08a;
  --glow-color: rgba(245, 158, 11, 0.45);
}

/* Theme: Cyber Neon */
[data-theme="cyber"] {
  --bg-dark: #050508;
  --bg-gradient: radial-gradient(circle at 50% 20%, #0d1b2a 0%, #050b14 50%, #010408 100%);
  --surface-glass: rgba(0, 255, 204, 0.04);
  --surface-glass-border: rgba(0, 255, 204, 0.25);
  --surface-glass-hover: rgba(0, 255, 204, 0.1);
  --text-main: #f0fdf4;
  --text-muted: #7dd3fc;
  --primary: #00f2fe;
  --secondary: #4facfe;
  --accent: #ff007f;
  --highlight: #00ff88;
  --glow-color: rgba(0, 242, 254, 0.45);
}

/* Theme: Ethereal Aurora */
[data-theme="aurora"] {
  --bg-dark: #041212;
  --bg-gradient: radial-gradient(circle at 50% 20%, #06312a 0%, #041917 50%, #020b0b 100%);
  --surface-glass: rgba(45, 212, 191, 0.05);
  --surface-glass-border: rgba(45, 212, 191, 0.2);
  --surface-glass-hover: rgba(45, 212, 191, 0.1);
  --text-main: #f0fdfa;
  --text-muted: #99f6e4;
  --primary: #10b981;
  --secondary: #06b6d4;
  --accent: #6366f1;
  --highlight: #34d399;
  --glow-color: rgba(16, 185, 129, 0.4);
}

/* Theme: Midnight Velvet */
[data-theme="midnight"] {
  --bg-dark: #0c0207;
  --bg-gradient: radial-gradient(circle at 50% 20%, #2e081c 0%, #15030d 50%, #050003 100%);
  --surface-glass: rgba(244, 63, 94, 0.05);
  --surface-glass-border: rgba(244, 63, 94, 0.2);
  --surface-glass-hover: rgba(244, 63, 94, 0.1);
  --text-main: #fff1f2;
  --text-muted: #fda4af;
  --primary: #f43f5e;
  --secondary: #fb7185;
  --accent: #e11d48;
  --highlight: #facc15;
  --glow-color: rgba(244, 63, 94, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
}

/* Dedicated Birthday Celebration Photo Layer */
.bg-photo-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background-image: url('../images/birthday_bg.jpg');
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.72;
  filter: brightness(0.92) contrast(1.08);
  transition: opacity 0.5s ease, filter 0.5s ease;
  pointer-events: none;
}

/* Elegant radial vignette overlay for contrast & readability */
.bg-overlay-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background: radial-gradient(circle at 50% 30%, rgba(10, 8, 24, 0.38) 0%, rgba(10, 8, 24, 0.72) 65%, rgba(5, 3, 13, 0.92) 100%);
  transition: background 0.5s ease;
  pointer-events: none;
}

/* Photo Visibility Modes */
body[data-bg-mode="vibrant"] .bg-photo-layer {
  opacity: 0.88;
  filter: brightness(1.0) contrast(1.1);
}
body[data-bg-mode="vibrant"] .bg-overlay-gradient {
  background: radial-gradient(circle at 50% 30%, rgba(10, 8, 24, 0.25) 0%, rgba(10, 8, 24, 0.65) 65%, rgba(5, 3, 13, 0.88) 100%);
}

body[data-bg-mode="balanced"] .bg-photo-layer {
  opacity: 0.68;
  filter: brightness(0.88) contrast(1.05);
}
body[data-bg-mode="balanced"] .bg-overlay-gradient {
  background: radial-gradient(circle at 50% 30%, rgba(10, 8, 24, 0.45) 0%, rgba(10, 8, 24, 0.78) 65%, rgba(5, 3, 13, 0.92) 100%);
}

body[data-bg-mode="subtle"] .bg-photo-layer {
  opacity: 0.38;
  filter: brightness(0.75) contrast(1.0);
}
body[data-bg-mode="subtle"] .bg-overlay-gradient {
  background: radial-gradient(circle at 50% 30%, rgba(10, 8, 24, 0.62) 0%, rgba(10, 8, 24, 0.86) 65%, rgba(5, 3, 13, 0.96) 100%);
}

/* Ambient Canvas Layer */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2;
}

#balloon-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}

.balloon-element {
  position: absolute;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease-out;
  filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

.balloon-element:hover {
  transform: scale(1.15) translateY(-5px);
}

/* Glass Utility Classes */
.glass {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Header & Controls Bar */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(10, 8, 24, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--surface-glass-border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 0 20px var(--glow-color);
  animation: gentle-pulse 3s infinite ease-in-out;
}

@keyframes gentle-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px var(--glow-color); }
  50% { transform: scale(1.06); box-shadow: 0 0 25px var(--glow-color); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Pill Buttons */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pill-btn:hover {
  background: var(--surface-glass-hover);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.pill-btn.icon-only {
  padding: 0.6rem;
  width: 40px;
  height: 40px;
  justify-content: center;
}

/* Theme Dropdown */
.theme-dropdown-wrapper {
  position: relative;
}

.glass-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 210px;
  background: rgba(15, 12, 35, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: var(--transition-smooth);
  z-index: 50;
}

.glass-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.dropdown-item:hover, .dropdown-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dropdown-item.active {
  font-weight: 600;
}

.theme-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-nebula { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.dot-gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.dot-cyber { background: linear-gradient(135deg, #00f2fe, #ff007f); }
.dot-aurora { background: linear-gradient(135deg, #10b981, #06b6d4); }
.dot-midnight { background: linear-gradient(135deg, #f43f5e, #facc15); }

/* Main Content Area */
.main-content {
  position: relative;
  z-index: 10;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

/* Hero Section */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary) 40%, var(--secondary) 80%, var(--highlight) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 20px var(--glow-color));
}

.hero-subtitle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 650px;
}

.hero-subtitle {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.6;
  outline: none;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.hero-subtitle[contenteditable="true"] {
  background: rgba(255, 255, 255, 0.1);
  border: 1px dashed var(--primary);
}

.edit-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.edit-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* Main Glass Countdown Card */
.countdown-glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--glow-color);
  position: relative;
  overflow: hidden;
}

.countdown-glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--glow-color) 0%, transparent 60%);
  opacity: 0.15;
  pointer-events: none;
}

/* Grid for Cards */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 140px;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1024px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr) repeat(2, 1fr);
  }
  .ms-card {
    grid-column: span 4;
  }
}

@media (max-width: 640px) {
  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .ms-card {
    grid-column: span 2;
  }
}

/* Individual Time Card */
.time-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.time-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.circle-progress-wrapper {
  position: relative;
  width: 130px;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-ring {
  transform: rotate(-90deg);
  position: absolute;
  top: 0;
  left: 0;
}

.progress-ring-fill {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px currentColor);
}

.card-inner-value {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.number-glow {
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.time-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 1rem;
  color: var(--text-muted);
}

.sub-stat {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

/* Milliseconds Card */
.ms-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.ms-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  text-shadow: 0 0 15px var(--glow-color);
  min-height: 130px;
  align-items: center;
}

.ms-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Journey Timeline Bar */
.journey-container {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.journey-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

#progress-percentage {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: #fff;
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--highlight));
  border-radius: var(--radius-full);
  position: relative;
  transition: width 1s ease-out;
  box-shadow: 0 0 15px var(--glow-color);
}

.progress-glow-head {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 15px;
  background: #fff;
  filter: blur(3px);
}

.journey-dates {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.target-flag {
  color: var(--highlight);
  font-weight: 600;
}

/* Action Buttons Row */
.action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.25rem;
}

.balloon-pop-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.4rem;
  background: rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(236, 72, 153, 0.35);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.25);
  transition: var(--transition-smooth);
}

.balloon-pop-badge i {
  color: var(--secondary);
  font-size: 1.05rem;
}

.balloon-pop-badge strong {
  color: var(--highlight);
  font-family: var(--font-mono);
  font-size: 1.05rem;
}

.interactive-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition-smooth);
}

.interactive-btn.primary-glow {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 25px var(--glow-color);
}

.interactive-btn.primary-glow:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px var(--glow-color);
  filter: brightness(1.1);
}

.interactive-btn.glass-glow {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-glass-border);
  color: var(--text-main);
}

.interactive-btn.glass-glow:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Analytics Stats Grid */
.milestone-stats-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.stat-box {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: var(--transition-smooth);
}

.stat-box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  border: 1px solid var(--surface-glass-border);
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.stat-name {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Time Capsule / Wishes Section */
.wishes-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.wishes-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.25rem;
}

.wish-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
  position: relative;
  transition: var(--transition-smooth);
}

.wish-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.wish-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(139, 92, 246, 0.15);
  color: var(--primary);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.wish-message {
  font-size: 0.95rem;
  color: var(--text-main);
  line-height: 1.6;
  font-style: italic;
}

.wish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.wish-author {
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.delete-wish-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem;
  transition: var(--transition-smooth);
}

.delete-wish-btn:hover {
  color: #ef4444;
}

/* Details Card */
.details-card {
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.details-header i {
  font-size: 2rem;
  color: var(--highlight);
}

.details-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.meta-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-glass {
  background: rgba(18, 14, 40, 0.95);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-glass {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: #fff;
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--glow-color);
  background: rgba(255, 255, 255, 0.08);
}

.char-count {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(20, 16, 45, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--surface-glass-border);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 200;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast i {
  color: var(--primary);
  font-size: 1.2rem;
}

/* Footer */
.app-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--surface-glass-border);
  background: rgba(10, 8, 24, 0.5);
  backdrop-filter: blur(15px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pulse-heart {
  color: #ec4899;
  animation: heart-beat 1.5s infinite;
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.footer-sub {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Fullscreen Mode Clean Adjustment */
body.zen-mode .app-header,
body.zen-mode .milestone-stats-section,
body.zen-mode .wishes-section,
body.zen-mode .details-section,
body.zen-mode .app-footer,
body.zen-mode .hero-subtitle-wrapper {
  display: none !important;
}

body.zen-mode .main-content {
  min-height: 100vh;
  justify-content: center;
  padding: 1rem;
}

body.zen-mode .countdown-glass-card {
  padding: 3.5rem 3rem;
}
