/* ==========================================
   PREMIUM & ENTERPRISE DIGITAL INVITATION
   DESIGN SYSTEM & VARIABLES (css/variables.css)
   ========================================== */

/* Import Google Fonts for Luxury Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Pinyon+Script&family=Cinzel:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Premium Palette Tokens */
  --color-gold-100: #FCF6BA;
  --color-gold-200: #FBF5B7;
  --color-gold-300: #D4AF37; /* Primary Metallic Gold */
  --color-gold-400: #B38728;
  --color-gold-500: #AA771C;
  
  /* Slate/Obsidian Dark Theme */
  --color-bg-dark: #0a0d10;      /* Pure dark screen */
  --color-bg-dark-card: #131920; /* Luxury card background */
  --color-bg-dark-glass: rgba(19, 25, 32, 0.75);
  --color-text-dark-primary: #f0f2f5;
  --color-text-dark-secondary: #a0aec0;
  
  /* Champagne/Alabaster Light Theme */
  --color-bg-light: #faf8f5;     /* Warm cream */
  --color-bg-light-card: #ffffff;
  --color-bg-light-glass: rgba(255, 255, 255, 0.8);
  --color-text-light-primary: #1a202c;
  --color-text-light-secondary: #4a5568;

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
  --gradient-gold-hover: linear-gradient(135deg, #AA771C 0%, #FBF5B7 25%, #B38728 50%, #FCF6BA 75%, #BF953F 100%);
  --gradient-dark: linear-gradient(180deg, #131920 0%, #0a0d10 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(10, 13, 16, 0.4), rgba(10, 13, 16, 0.95));

  /* Typography */
  --font-display: 'Cinzel', serif;       /* High-end luxury headings */
  --font-serif: 'Playfair Display', serif; /* Elegant, poetic editorial */
  --font-sans: 'Inter', sans-serif;        /* Super clean interface */
  --font-accent: 'Montserrat', sans-serif;  /* Modern, readable details */

  /* Shadows & Glows */
  --shadow-gold-soft: 0 4px 20px rgba(212, 175, 55, 0.15);
  --shadow-gold-glow: 0 0 15px rgba(212, 175, 55, 0.4);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);

  /* Borders & Blur */
  --border-gold: 1px solid rgba(212, 175, 55, 0.3);
  --border-gold-light: 1px solid rgba(212, 175, 55, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.08);
  --blur-glass: blur(16px);
  --radius-premium: 16px;
  --radius-button: 50px;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

/* Base Reset & Core Classes */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--gradient-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-300);
}

/* Gold Text Gradient Utility */
.text-gold-gradient {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Premium Button style */
.btn-premium {
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  padding: 14px 32px;
  border-radius: var(--radius-button);
  border: none;
  background: var(--gradient-gold);
  color: #12161a;
  cursor: pointer;
  box-shadow: var(--shadow-gold-soft);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-gold-hover);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-smooth);
}

.btn-premium:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
  color: #000;
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:active {
  transform: translateY(-1px);
}

/* Premium Secondary Button */
.btn-premium-outline {
  font-family: var(--font-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  padding: 12px 30px;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--color-bg-dark), var(--color-bg-dark)), var(--gradient-gold);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--color-text-dark-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-premium-outline:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-soft);
  color: #fff;
}

/* IntersectionObserver Anim-Reveal Class */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }

/* ==========================================
   DYNAMIC THEME VARIABLES OVERRIDES
   ========================================== */

/* 1. Theme Gold (Default slate/gold luxury) */
body.theme-gold {
  /* Default variables in :root will apply */
}

/* 2. Theme Champagne (Warm creamy beige minimalist) */
body.theme-champagne {
  --color-bg-dark: #f5ecd8; /* Very soft vintage warm champagne cream/parchment - comfortable & luxurious! */
  --color-bg-dark-card: #ffffff;
  --color-bg-dark-glass: rgba(255, 255, 255, 0.9);
  --color-text-dark-primary: #1a202c; /* Solid charcoal near-black (crystal clear!) */
  --color-text-dark-secondary: #4a5568; /* Solid slate grey secondary text */
  --color-gold-300: #a37c3f; /* Rich dark bronze-gold accent */
  --border-gold: 1px solid rgba(163, 124, 63, 0.35);
  --border-gold-light: 1px solid rgba(163, 124, 63, 0.18); /* Slightly richer for light background contrast */
  --border-glass: 1px solid rgba(0, 0, 0, 0.06);
  --gradient-gold: linear-gradient(135deg, #a37c3f 0%, #d4ae6e 50%, #7d5924 100%); /* Solid high-contrast bronze gold */
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(245, 236, 216, 0.45), rgba(245, 236, 216, 0.98));
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f5ecd8 100%);
  --shadow-gold-soft: 0 4px 20px rgba(163, 124, 63, 0.15);
  --shadow-gold-glow: 0 0 15px rgba(163, 124, 63, 0.4);
  --font-display: 'Playfair Display', serif; /* Minimalist clean editorial serif */
  --font-serif: 'Playfair Display', serif;
  --radius-premium: 4px; /* Clean minimalist sharp luxury corners */
}

body.theme-champagne .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23a37c3f' stroke-width='1.2'><circle cx='50' cy='15' r='3'/><line x1='10' y1='15' x2='42' y2='15'/><line x1='58' y1='15' x2='90' y2='15'/></svg>");
}

body.theme-champagne #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(163, 124, 63, 0.12) 0%, var(--color-bg-dark) 85%);
}

body.theme-champagne .text-gold-gradient {
  background: linear-gradient(135deg, #7d5924 0%, #c49d5c 50%, #4f3611 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-champagne .cover-tag,
body.theme-champagne .section-tag,
body.theme-champagne .timeline-date,
body.theme-champagne .event-time {
  color: #7d5924 !important;
  font-weight: 700;
}

body.theme-champagne h2,
body.theme-champagne h3,
body.theme-champagne h4,
body.theme-champagne .guest-name,
body.theme-champagne .event-date,
body.theme-champagne .timeline-card h3,
body.theme-champagne .guestbook-author,
body.theme-champagne .gift-logo {
  color: #1a202c !important;
}

body.theme-champagne .maps-title {
  color: #1a202c !important;
}

body.theme-champagne .couple-img-placeholder {
  background: linear-gradient(135deg, #fffdfb 0%, #f3ebda 100%) !important;
  color: #a37c3f !important;
}

body.theme-champagne .form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #1a202c;
}

body.theme-champagne .form-control option {
  background-color: #ffffff !important;
  color: #1a202c !important;
}

body.theme-champagne .gift-number-box {
  background: rgba(163, 124, 63, 0.04) !important;
  border: 1px solid rgba(163, 124, 63, 0.1) !important;
}

body.theme-champagne .guestbook-card {
  background: rgba(163, 124, 63, 0.05) !important;
  border: 1px solid rgba(163, 124, 63, 0.12) !important;
}

body.theme-champagne .locked-card-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 236, 216, 0.95) 100%) !important;
  border: 1px dashed rgba(163, 124, 63, 0.4) !important;
}

body.theme-champagne .locked-card-placeholder h4 {
  color: #1a202c !important;
}

body.theme-champagne .locked-card-placeholder p {
  color: #4a5568 !important;
}

body.theme-champagne .map-tab-btn:hover {
  color: #a37c3f !important;
}

body.theme-champagne .btn-copy:hover {
  color: #7d5924 !important;
}

body.theme-champagne .countdown-number {
  background: linear-gradient(135deg, #7d5924 0%, #a37c3f 50%, #4f3611 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

body.theme-champagne .map-tab-btn.active,
body.theme-champagne .btn-premium {
  color: #ffffff !important;
}

/* 3. Theme Emerald (Deep pine green & yellow gold) */
body.theme-emerald {
  --color-bg-dark: #091310;
  --color-bg-dark-card: #11221b;
  --color-bg-dark-glass: rgba(17, 34, 27, 0.85);
  --color-text-dark-primary: #e6f0ec;
  --color-text-dark-secondary: #8da399;
  --color-gold-300: #d4af37;
  --border-gold: 1px solid rgba(212, 175, 55, 0.35);
  --border-gold-light: 1px solid rgba(212, 175, 55, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  --gradient-gold: linear-gradient(135deg, #a3821a 0%, #ffd700 50%, #806000 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(9, 19, 16, 0.4), rgba(9, 19, 16, 0.98));
  --gradient-dark: linear-gradient(180deg, #11221b 0%, #091310 100%);
  --shadow-gold-soft: 0 4px 20px rgba(212, 175, 55, 0.2);
  --shadow-gold-glow: 0 0 15px rgba(212, 175, 55, 0.5);
  --font-display: 'Playfair Display', serif;
  --font-serif: 'Playfair Display', serif;
  --radius-premium: 12px;
}

body.theme-emerald .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23d4af37' stroke-width='1.2'><path d='M10 15 Q 30 5, 50 15 T 90 15 M50 5 C 45 10, 45 20, 50 25 C 55 20, 55 10, 50 5 M30 11 Q 35 15, 32 18 M68 11 Q 65 15, 68 18'/></svg>");
}

body.theme-emerald #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, var(--color-bg-dark) 85%);
}

/* 4. Theme Sapphire (Royal navy & polished silver) */
body.theme-sapphire {
  --color-bg-dark: #070c16;
  --color-bg-dark-card: #111a30;
  --color-bg-dark-glass: rgba(17, 26, 48, 0.85);
  --color-text-dark-primary: #e8ecf5;
  --color-text-dark-secondary: #90a0c0;
  --color-gold-300: #cbd5e1; /* Silver metallic theme accent */
  --border-gold: 1px solid rgba(203, 213, 225, 0.35);
  --border-gold-light: 1px solid rgba(203, 213, 225, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  --gradient-gold: linear-gradient(135deg, #94a3b8 0%, #f1f5f9 50%, #64748b 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(7, 12, 22, 0.4), rgba(7, 12, 22, 0.98));
  --gradient-dark: linear-gradient(180deg, #111a30 0%, #070c16 100%);
  --shadow-gold-soft: 0 4px 20px rgba(203, 213, 225, 0.2);
  --shadow-gold-glow: 0 0 15px rgba(203, 213, 225, 0.5);
  --font-display: 'Cinzel', serif; /* Majestic royal serif */
  --font-serif: 'Inter', sans-serif;
  --radius-premium: 16px;
}

body.theme-sapphire .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23cbd5e1' stroke-width='1.2'><path d='M10 20 L 50 10 L 90 20 M50 10 L 50 25 M35 17 L 50 13 L 65 17 M25 15 L 50 8 L 75 15'/></svg>");
}

body.theme-sapphire #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(203, 213, 225, 0.15) 0%, var(--color-bg-dark) 85%);
}

body.theme-sapphire .countdown-number, 
body.theme-sapphire .map-tab-btn.active,
body.theme-sapphire .btn-premium {
  color: #070c16;
}

body.theme-sapphire .music-waves span {
  background: var(--color-gold-300);
}

/* 5. Theme Rose (Romantic dusty rose & warm copper rose-gold) */
body.theme-rose {
  --color-bg-dark: #eedcd9; /* Soft romantic dusty blush pastel pink - extremely comfortable & luxury feel! */
  --color-bg-dark-card: #ffffff;
  --color-bg-dark-glass: rgba(255, 255, 255, 0.9);
  --color-text-dark-primary: #3a2226; /* Deep espresso plum-brown (highly readable) */
  --color-text-dark-secondary: #6e5256; /* Solid slate-rose secondary text */
  --color-gold-300: #a6566d; /* Rich copper rose-gold for highlights */
  --border-gold: 1px solid rgba(166, 86, 109, 0.35);
  --border-gold-light: 1px solid rgba(166, 86, 109, 0.18); /* Slightly richer border for high-end look */
  --border-glass: 1px solid rgba(0, 0, 0, 0.05);
  --gradient-gold: linear-gradient(135deg, #a6566d 0%, #d996a8 50%, #7e3044 100%); /* Solid high-contrast rose gold */
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(238, 220, 217, 0.45), rgba(238, 220, 217, 0.98));
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #eedcd9 100%);
  --shadow-gold-soft: 0 4px 20px rgba(166, 86, 109, 0.15);
  --shadow-gold-glow: 0 0 15px rgba(166, 86, 109, 0.4);
  --font-display: 'Alex Brush', cursive; /* Romantic calligraphy script only for headings/names */
  --font-serif: 'Playfair Display', serif; /* Solid editorial serif for readability of paragraph/body texts! */
  --radius-premium: 24px; /* Sweet very rounded organic curves */
}

body.theme-rose .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23a6566d' stroke-width='1.2'><path d='M50 22 C 45 15, 40 15, 40 10 C 40 5, 47 5, 50 10 C 53 5, 60 5, 60 10 C 60 15, 55 15, 50 22 Z M15 15 H 35 M65 15 H 85'/></svg>");
}

body.theme-rose #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(166, 86, 109, 0.12) 0%, var(--color-bg-dark) 85%);
}

body.theme-rose .text-gold-gradient {
  background: linear-gradient(135deg, #7e3044 0%, #b86279 50%, #541624 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-rose .cover-tag,
body.theme-rose .section-tag,
body.theme-rose .timeline-date,
body.theme-rose .event-time {
  color: #7e3044 !important;
  font-weight: 700;
}

body.theme-rose h2,
body.theme-rose h3,
body.theme-rose h4,
body.theme-rose .guest-name,
body.theme-rose .event-date,
body.theme-rose .timeline-card h3,
body.theme-rose .guestbook-author,
body.theme-rose .gift-logo {
  color: #3a2226 !important;
}

body.theme-rose .maps-title {
  color: #3a2226 !important;
}

body.theme-rose .couple-img-placeholder {
  background: linear-gradient(135deg, #fffbfc 0%, #f6e6e8 100%) !important;
  color: #a6566d !important;
}

body.theme-rose .form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #3a2226;
}

body.theme-rose .form-control option {
  background-color: #ffffff !important;
  color: #3a2226 !important;
}

body.theme-rose .gift-number-box {
  background: rgba(166, 86, 109, 0.04) !important;
  border: 1px solid rgba(166, 86, 109, 0.1) !important;
}

body.theme-rose .guestbook-card {
  background: rgba(166, 86, 109, 0.05) !important;
  border: 1px solid rgba(166, 86, 109, 0.12) !important;
}

body.theme-rose .locked-card-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(238, 220, 217, 0.95) 100%) !important;
  border: 1px dashed rgba(166, 86, 109, 0.4) !important;
}

body.theme-rose .locked-card-placeholder h4 {
  color: #3a2226 !important;
}

body.theme-rose .locked-card-placeholder p {
  color: #6e5256 !important;
}

body.theme-rose .map-tab-btn:hover {
  color: #a6566d !important;
}

body.theme-rose .btn-copy:hover {
  color: #7e3044 !important;
}

body.theme-rose .countdown-number {
  background: linear-gradient(135deg, #7e3044 0%, #b86279 50%, #541624 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

body.theme-rose .map-tab-btn.active,
body.theme-rose .btn-premium {
  color: #ffffff !important;
}

/* 6. Theme Burgundy (Deep passionate burgundy & warm antique gold) */
body.theme-burgundy {
  --color-bg-dark: #1a0508;
  --color-bg-dark-card: #2d0e12;
  --color-bg-dark-glass: rgba(45, 14, 18, 0.85);
  --color-text-dark-primary: #f5ebec;
  --color-text-dark-secondary: #cfa8ac;
  --color-gold-300: #e5c158; /* Warm Antique Gold Accent */
  --border-gold: 1px solid rgba(229, 193, 88, 0.35);
  --border-gold-light: 1px solid rgba(229, 193, 88, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  --gradient-gold: linear-gradient(135deg, #d4af37 0%, #f9e8a2 50%, #aa771c 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(26, 5, 8, 0.4), rgba(26, 5, 8, 0.98));
  --gradient-dark: linear-gradient(180deg, #2d0e12 0%, #1a0508 100%);
  --shadow-gold-soft: 0 4px 20px rgba(229, 193, 88, 0.18);
  --shadow-gold-glow: 0 0 15px rgba(229, 193, 88, 0.45);
  --font-display: 'Cinzel', serif; /* Classical elegant serif */
  --font-serif: 'Playfair Display', serif;
  --radius-premium: 8px; /* Classic sharp elegant cards */
}

body.theme-burgundy .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23e5c158' stroke-width='1.2'><path d='M10 15 C 30 5, 40 25, 50 15 C 60 5, 70 25, 90 15 M50 5 L 50 25 M45 10 H 55 M42 20 H 58'/></svg>");
}

body.theme-burgundy #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(229, 193, 88, 0.12) 0%, var(--color-bg-dark) 85%);
}

body.theme-burgundy .countdown-number, 
body.theme-burgundy .map-tab-btn.active,
body.theme-burgundy .btn-premium {
  color: #1a0508 !important;
}

/* 7. Theme Terracotta (Boho Clay & Ivory) */
body.theme-terracotta {
  --color-bg-dark: #fbf7f4; /* Warm sand terracotta pastel ivory - ultra comfortable & luxury! */
  --color-bg-dark-card: #ffffff;
  --color-bg-dark-glass: rgba(255, 255, 255, 0.9);
  --color-text-dark-primary: #4a2c22; /* Deep mahogany/terracotta clay brown - highly readable! */
  --color-text-dark-secondary: #855b4e; /* Warm clay clay-brown */
  --color-gold-300: #d46a43; /* Burnt terracotta orange accent */
  --border-gold: 1px solid rgba(212, 106, 67, 0.35);
  --border-gold-light: 1px solid rgba(212, 106, 67, 0.18);
  --border-glass: 1px solid rgba(0, 0, 0, 0.05);
  --gradient-gold: linear-gradient(135deg, #cc5a37 0%, #e68d71 50%, #8c3b1e 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(251, 247, 244, 0.45), rgba(251, 247, 244, 0.98));
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #fbf7f4 100%);
  --shadow-gold-soft: 0 4px 20px rgba(212, 106, 67, 0.15);
  --shadow-gold-glow: 0 0 15px rgba(212, 106, 67, 0.4);
  --font-display: 'Playfair Display', serif;
  --font-serif: 'Playfair Display', serif;
  --radius-premium: 12px;
}

body.theme-terracotta .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23d46a43' stroke-width='1.2'><circle cx='50' cy='15' r='4'/><path d='M10 15 C 30 25, 40 5, 50 15 C 60 25, 70 5, 90 15'/></svg>");
}

body.theme-terracotta #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(212, 106, 67, 0.12) 0%, var(--color-bg-dark) 85%);
}

body.theme-terracotta .text-gold-gradient {
  background: linear-gradient(135deg, #cc5a37 0%, #e68d71 50%, #8c3b1e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-terracotta .cover-tag,
body.theme-terracotta .section-tag,
body.theme-terracotta .timeline-date,
body.theme-terracotta .event-time {
  color: #cc5a37 !important;
  font-weight: 700;
}

body.theme-terracotta h2,
body.theme-terracotta h3,
body.theme-terracotta h4,
body.theme-terracotta .guest-name,
body.theme-terracotta .event-date,
body.theme-terracotta .timeline-card h3,
body.theme-terracotta .guestbook-author,
body.theme-terracotta .gift-logo {
  color: #4a2c22 !important;
}

body.theme-terracotta .maps-title {
  color: #4a2c22 !important;
}

body.theme-terracotta .couple-img-placeholder {
  background: linear-gradient(135deg, #fffcfb 0%, #f6ece8 100%) !important;
  color: #d46a43 !important;
}

body.theme-terracotta .form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4a2c22;
}

body.theme-terracotta .form-control option {
  background-color: #ffffff !important;
  color: #4a2c22 !important;
}

body.theme-terracotta .gift-number-box {
  background: rgba(212, 106, 67, 0.04) !important;
  border: 1px solid rgba(212, 106, 67, 0.1) !important;
}

body.theme-terracotta .guestbook-card {
  background: rgba(212, 106, 67, 0.05) !important;
  border: 1px solid rgba(212, 106, 67, 0.12) !important;
}

body.theme-terracotta .locked-card-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 247, 244, 0.95) 100%) !important;
  border: 1px dashed rgba(212, 106, 67, 0.4) !important;
}

body.theme-terracotta .locked-card-placeholder h4 {
  color: #4a2c22 !important;
}

body.theme-terracotta .locked-card-placeholder p {
  color: #855b4e !important;
}

body.theme-terracotta .map-tab-btn:hover {
  color: #d46a43 !important;
}

body.theme-terracotta .btn-copy:hover {
  color: #cc5a37 !important;
}

body.theme-terracotta .countdown-number {
  background: linear-gradient(135deg, #cc5a37 0%, #e68d71 50%, #8c3b1e 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

body.theme-terracotta .map-tab-btn.active,
body.theme-terracotta .btn-premium {
  color: #ffffff !important;
}

/* 8. Theme Midnight (Celestial Midnight & Rose Gold) */
body.theme-midnight {
  --color-bg-dark: #060814; /* Deep cosmic dark blue/indigo */
  --color-bg-dark-card: #0d122b; /* Luxury cosmic card background */
  --color-bg-dark-glass: rgba(13, 18, 43, 0.85);
  --color-text-dark-primary: #e8ecf8;
  --color-text-dark-secondary: #8ca0cc;
  --color-gold-300: #e2a69d; /* Polished rose-gold metallic */
  --border-gold: 1px solid rgba(226, 166, 157, 0.35);
  --border-gold-light: 1px solid rgba(226, 166, 157, 0.15);
  --border-glass: 1px solid rgba(255, 255, 255, 0.05);
  --gradient-gold: linear-gradient(135deg, #b0736c 0%, #f0c3bd 50%, #7d443e 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(6, 8, 20, 0.4), rgba(6, 8, 20, 0.98));
  --gradient-dark: linear-gradient(180deg, #0d122b 0%, #060814 100%);
  --shadow-gold-soft: 0 4px 20px rgba(226, 166, 157, 0.18);
  --shadow-gold-glow: 0 0 15px rgba(226, 166, 157, 0.45);
  --font-display: 'Cinzel', serif;
  --font-serif: 'Inter', sans-serif;
  --radius-premium: 16px;
}

body.theme-midnight .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23e2a69d' stroke-width='1.2'><circle cx='50' cy='15' r='2'/><circle cx='40' cy='15' r='1'/><circle cx='60' cy='15' r='1'/><path d='M10 15 L 30 15 M70 15 L 90 15'/></svg>");
}

body.theme-midnight #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(226, 166, 157, 0.15) 0%, var(--color-bg-dark) 85%);
}

body.theme-midnight .countdown-number, 
body.theme-midnight .map-tab-btn.active,
body.theme-midnight .btn-premium {
  color: #060814 !important;
}

/* 9. Theme Orchid (Soft Lavender & Brushed Silver) */
body.theme-orchid {
  --color-bg-dark: #f4edf7; /* Soft contemporary silken lavender - comfortable! */
  --color-bg-dark-card: #ffffff;
  --color-bg-dark-glass: rgba(255, 255, 255, 0.9);
  --color-text-dark-primary: #2d1f3b; /* Deep plum-lavender - highly readable! */
  --color-text-dark-secondary: #685578; /* Slate wisteria text */
  --color-gold-300: #b2b7c2; /* Brushed silver accent */
  --border-gold: 1px solid rgba(178, 183, 194, 0.35);
  --border-gold-light: 1px solid rgba(178, 183, 194, 0.18);
  --border-glass: 1px solid rgba(0, 0, 0, 0.05);
  --gradient-gold: linear-gradient(135deg, #8e95a5 0%, #d5dadf 50%, #525866 100%);
  --gradient-gold-overlay: linear-gradient(to bottom, rgba(244, 237, 247, 0.45), rgba(244, 237, 247, 0.98));
  --gradient-dark: linear-gradient(180deg, #ffffff 0%, #f4edf7 100%);
  --shadow-gold-soft: 0 4px 20px rgba(178, 183, 194, 0.15);
  --shadow-gold-glow: 0 0 15px rgba(178, 183, 194, 0.4);
  --font-display: 'Cinzel', serif;
  --font-serif: 'Inter', sans-serif;
  --radius-premium: 8px;
}

body.theme-orchid .ornament-divider {
  content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30' fill='none' stroke='%23b2b7c2' stroke-width='1.2'><circle cx='50' cy='15' r='3' fill='%23b2b7c2'/><line x1='15' y1='15' x2='85' y2='15'/></svg>");
}

body.theme-orchid #cover-overlay {
  background: var(--gradient-gold-overlay), radial-gradient(circle at center, rgba(178, 183, 194, 0.12) 0%, var(--color-bg-dark) 85%);
}

body.theme-orchid .text-gold-gradient {
  background: linear-gradient(135deg, #8e95a5 0%, #d5dadf 50%, #525866 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

body.theme-orchid .cover-tag,
body.theme-orchid .section-tag,
body.theme-orchid .timeline-date,
body.theme-orchid .event-time {
  color: #685578 !important;
  font-weight: 700;
}

body.theme-orchid h2,
body.theme-orchid h3,
body.theme-orchid h4,
body.theme-orchid .guest-name,
body.theme-orchid .event-date,
body.theme-orchid .timeline-card h3,
body.theme-orchid .guestbook-author,
body.theme-orchid .gift-logo {
  color: #2d1f3b !important;
}

body.theme-orchid .maps-title {
  color: #2d1f3b !important;
}

body.theme-orchid .couple-img-placeholder {
  background: linear-gradient(135deg, #faf7fc 0%, #f3edf7 100%) !important;
  color: #b2b7c2 !important;
}

body.theme-orchid .form-control {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #2d1f3b;
}

body.theme-orchid .form-control option {
  background-color: #ffffff !important;
  color: #2d1f3b !important;
}

body.theme-orchid .gift-number-box {
  background: rgba(178, 183, 194, 0.04) !important;
  border: 1px solid rgba(178, 183, 194, 0.1) !important;
}

body.theme-orchid .guestbook-card {
  background: rgba(178, 183, 194, 0.05) !important;
  border: 1px solid rgba(178, 183, 194, 0.12) !important;
}

body.theme-orchid .locked-card-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(244, 237, 247, 0.95) 100%) !important;
  border: 1px dashed rgba(178, 183, 194, 0.4) !important;
}

body.theme-orchid .locked-card-placeholder h4 {
  color: #2d1f3b !important;
}

body.theme-orchid .locked-card-placeholder p {
  color: #685578 !important;
}

body.theme-orchid .map-tab-btn:hover {
  color: #2d1f3b !important;
}

body.theme-orchid .btn-copy:hover {
  color: #8e95a5 !important;
}

body.theme-orchid .countdown-number {
  background: linear-gradient(135deg, #8e95a5 0%, #d5dadf 50%, #525866 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  color: transparent !important;
}

body.theme-orchid .map-tab-btn.active,
body.theme-orchid .btn-premium {
  color: #2d1f3b !important;
  font-weight: 600;
}
