/* ==========================================================================
   LUXURY WEDDING INVITATION SUITE - STYLESHEET
   Crafted with Haute Couture Elegance, Glassmorphism & Gold Foil Details
   ========================================================================== */

:root {
  /* Default Theme: Champagne & Rose Gold */
  --primary: #9e4758;
  --primary-light: #f7e6e9;
  --primary-dark: #6e2735;
  --accent-gold: #c5a059;
  --accent-gold-light: #f3e5c8;
  --accent-gold-dark: #8c6d32;
  --bg-main: #fcf9f7;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --text-main: #2b2523;
  --text-muted: #786c68;
  --border-gold: rgba(197, 160, 89, 0.35);
  --border-subtle: rgba(197, 160, 89, 0.15);
  --gold-glow: rgba(197, 160, 89, 0.25);
  --shadow-luxury: 0 20px 45px -15px rgba(43, 37, 35, 0.08), 0 0 20px rgba(197, 160, 89, 0.12);
  
  --font-script: 'Great Vibes', cursive;
  --font-heading: 'Cinzel', serif;
  --font-editorial: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
}

/* Theme Presets */
body[data-theme="emerald"] {
  --primary: #0f4c3a;
  --primary-light: #e6f2ee;
  --primary-dark: #082d22;
  --accent-gold: #d4af37;
  --accent-gold-light: #f8efd0;
  --accent-gold-dark: #997c1f;
  --bg-main: #f4f8f6;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #14231e;
  --text-muted: #536b63;
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-subtle: rgba(212, 175, 55, 0.15);
  --gold-glow: rgba(212, 175, 55, 0.25);
}

body[data-theme="midnight"] {
  --primary: #1e293b;
  --primary-light: #f1f5f9;
  --primary-dark: #0f172a;
  --accent-gold: #e2b857;
  --accent-gold-light: #fdf5df;
  --accent-gold-dark: #a37c24;
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-gold: rgba(226, 184, 87, 0.35);
  --border-subtle: rgba(226, 184, 87, 0.15);
  --gold-glow: rgba(226, 184, 87, 0.25);
}

body[data-theme="sage"] {
  --primary: #405342;
  --primary-light: #edf2ed;
  --primary-dark: #273628;
  --accent-gold: #bfa05d;
  --accent-gold-light: #f6efe1;
  --accent-gold-dark: #826a35;
  --bg-main: #f7f9f7;
  --bg-card: rgba(255, 255, 255, 0.9);
  --text-main: #212c22;
  --text-muted: #617363;
  --border-gold: rgba(191, 160, 93, 0.35);
  --border-subtle: rgba(191, 160, 93, 0.15);
  --gold-glow: rgba(191, 160, 93, 0.25);
}

body[data-theme="burgundy"] {
  --primary: #63141f;
  --primary-light: #faecee;
  --primary-dark: #400910;
  --accent-gold: #d1a84f;
  --accent-gold-light: #f8f1de;
  --accent-gold-dark: #917028;
  --bg-main: #fdf9f9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --text-main: #2a1114;
  --text-muted: #735759;
  --border-gold: rgba(209, 168, 79, 0.38);
  --border-subtle: rgba(209, 168, 79, 0.16);
  --gold-glow: rgba(209, 168, 79, 0.25);
}

body[data-theme="monochrome"] {
  --primary: #18181b;
  --primary-light: #f4f4f5;
  --primary-dark: #09090b;
  --accent-gold: #a1a1aa;
  --accent-gold-light: #f4f4f5;
  --accent-gold-dark: #52525b;
  --bg-main: #fafafa;
  --bg-card: rgba(255, 255, 255, 0.95);
  --text-main: #18181b;
  --text-muted: #71717a;
  --border-gold: rgba(161, 161, 170, 0.35);
  --border-subtle: rgba(161, 161, 170, 0.18);
  --gold-glow: rgba(161, 161, 170, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.7;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Background Canvas for Falling Petals / Stardust */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  pointer-events: none;
  z-index: 40;
}

/* Typography Helpers */
.font-arabic {
  font-family: 'Amiri', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
  direction: rtl;
  letter-spacing: 0;
}

.font-script {
  font-family: var(--font-script);
}

.font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.font-editorial {
  font-family: var(--font-editorial);
}

.brand-monogram {
  flex: 0 0 2.25rem;
  white-space: nowrap;
  font-size: 0.55rem;
  letter-spacing: 0;
  line-height: 1;
}

/* Gold Foil Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #b38728 0%, #fbf5b7 25%, #daaa3f 50%, #aa771c 75%, #e4c478 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #c5a059 0%, #fae69e 40%, #bf8f36 80%, #aa7c28 100%);
  color: #2b2523;
}

.gold-border-ornament {
  position: relative;
}

.gold-border-ornament::before,
.gold-border-ornament::after {
  content: "";
  position: absolute;
  width: 50px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Glassmorphism Luxury Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-luxury);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-gold);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(43, 37, 35, 0.12), 0 0 25px var(--gold-glow);
}

/* ==========================================================================
   ENVELOPE OPENING CEREMONY (Interactive Hero Overlay)
   ========================================================================== */
#envelope-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at center, #231b19 0%, #0d0a09 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1200px;
  transition: opacity 1.2s cubic-bezier(0.7, 0, 0.3, 1), visibility 1.2s;
}

#envelope-overlay.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-container {
  position: relative;
  width: min(90vw, 540px);
  aspect-ratio: 27 / 19;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

/* The Envelope Physical Body */
.envelope {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fdfaf6;
  border-radius: 8px;
  box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.7), 0 0 30px rgba(197, 160, 89, 0.35);
  transform-style: preserve-3d;
  cursor: pointer;
}

/* Texture Pattern on Envelope */
.envelope::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#d3c5b5 0.75px, transparent 0.75px);
  background-size: 16px 16px;
  opacity: 0.35;
  border-radius: 8px;
  pointer-events: none;
}

/* Envelope Flaps */
.envelope-flap-top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #f2ece4;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s, z-index 0.2s 0.6s;
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

.envelope-pocket {
  position: absolute;
  inset: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #e5dcd0;
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  z-index: 4;
}

/* The Invitation Card inside Envelope */
.envelope-letter {
  position: absolute;
  top: 20px;
  left: 5%;
  width: 90%;
  height: 90%;
  background: #ffffff;
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 1.2s cubic-bezier(0.3, 1, 0.3, 1) 0.8s, opacity 0.8s;
  z-index: 2;
}

/* Wax Seal Button */
.wax-seal {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd97a 0%, #c59739 50%, #7d5916 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 2px 4px rgba(255, 255, 255, 0.6), inset 0 -3px 6px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
  animation: sealPulse 2.5s infinite ease-in-out;
}

.wax-seal:hover {
  transform: translate(-50%, -50%) scale(1.06);
  filter: brightness(1.1);
}

.wax-seal-inner {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #3b2706;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.wax-seal-initials {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
}

.wax-seal-sub {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 4px;
}

@keyframes sealPulse {
  0%, 100% {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(197, 160, 89, 0.4);
  }
  50% {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 0 14px rgba(197, 160, 89, 0);
  }
}

/* Envelope Open State */
.envelope-container.is-opening .envelope-flap-top {
  transform: rotateX(180deg);
  z-index: 1;
}

.envelope-container.is-opening .wax-seal {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.envelope-container.is-opening .envelope-letter {
  transform: translateY(-90px);
  z-index: 6;
}

.envelope-container.is-opening .envelope {
  overflow: visible;
}

@media (max-width: 620px) {
  .envelope-container {
    width: min(88vw, 540px);
  }

  .envelope-letter {
    padding: 10px 8px;
  }

  .envelope-letter .font-arabic {
    font-size: 0.85rem;
    line-height: 1.3;
  }

  .envelope-letter .data-couple-names {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .envelope-letter .data-venue-name {
    font-size: 9px;
    letter-spacing: 0.08em;
    white-space: nowrap;
  }

  .wax-seal {
    width: 76px;
    height: 76px;
  }

  .wax-seal-inner {
    width: 62px;
    height: 62px;
  }

  .wax-seal-initials {
    font-size: 0.9rem;
  }

  .wax-seal-sub {
    font-size: 0.45rem;
  }

  #open-envelope-btn {
    display: block;
    width: calc(100vw - 32px);
    text-align: center;
    line-height: 1.5;
  }

  #open-envelope-btn > span {
    display: none;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  #envelope-overlay {
    align-items: flex-start;
    padding-top: 24px;
  }

  .envelope-container {
    width: min(72vw, calc((100vh - 130px) * 27 / 19), 540px);
  }

  #envelope-overlay > .absolute {
    bottom: 12px;
  }
}

/* ==========================================================================
   MINIMALIST FLOATING MUSIC TOGGLE (Discreet & Compact)
   ========================================================================== */
.mini-music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: var(--accent-gold-dark);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid var(--border-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.mini-music-btn:hover {
  transform: scale(1.1);
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 6px 18px var(--gold-glow);
}

.mini-music-btn[aria-pressed="true"] {
  color: var(--primary);
  border-color: var(--accent-gold);
}

.mini-music-btn[aria-pressed="false"] {
  color: var(--text-muted);
  opacity: 0.7;
}

.mini-music-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.luxury-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 42;
  transition: all 0.4s ease;
  padding: 18px 0;
}

.luxury-navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.06);
}

.nav-link {
  position: relative;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 6px 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

/* ==========================================================================
   COUNTDOWN TIMER DISPLAY (Mobile Responsive)
   ========================================================================== */
.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  padding: 0.75rem 0.35rem;
  text-align: center;
  box-shadow: var(--shadow-luxury);
  min-width: 58px;
  flex: 1;
  transition: transform 0.3s ease;
}

@media (min-width: 640px) {
  .countdown-box {
    border-radius: 1rem;
    padding: 1.25rem 1rem;
    min-width: 80px;
  }
}

.countdown-box:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.countdown-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

@media (min-width: 640px) {
  .countdown-num {
    font-size: 2.25rem;
  }
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}



/* ==========================================================================
   PHOTO GALLERY & LIGHTBOX
   ========================================================================== */
.gallery-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, transparent 60%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

#lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(10, 8, 7, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

#lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   CUSTOMIZER STUDIO (DRAWER / MODAL)
   ========================================================================== */
#customizer-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: -15px 0 45px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

#customizer-drawer.active {
  transform: translateX(0);
}

#customizer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 85;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#customizer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.customizer-tab-btn.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   BUTTONS & FORM ELEMENTS
   ========================================================================== */
.btn-gold {
  background: linear-gradient(135deg, #c5a059 0%, #dfb15b 50%, #aa7c28 100%);
  color: #1a1614;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 9999px;
  box-shadow: 0 10px 25px -5px rgba(197, 160, 89, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(197, 160, 89, 0.65), 0 0 15px var(--gold-glow);
  filter: brightness(1.05);
}

.btn-outline-gold {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 30px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #1a1614;
  box-shadow: 0 8px 20px -3px var(--gold-glow);
  transform: translateY(-2px);
}

.custom-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-gold);
  border-radius: 0.75rem;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text-main);
  transition: all 0.25s ease;
  outline: none;
}

.custom-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: #ffffff;
}

/* ==========================================================================
   VENUE CAROUSEL & TABS
   ========================================================================== */
.venue-tab-btn {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(217, 119, 6, 0.35);
  color: #57534e;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.venue-tab-btn:hover {
  background: #ffffff;
  border-color: rgba(217, 119, 6, 0.6);
  color: #78350f;
  transform: translateY(-1px);
}
.venue-tab-btn.active {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff !important;
  border-color: #92400e;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transform: translateY(-1px);
}

.venue-nav-arrow {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(217, 119, 6, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.venue-nav-arrow:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 12px 28px -4px rgba(217, 119, 6, 0.35);
}
.venue-nav-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

@media (max-width: 640px) {
  .venue-nav-arrow {
    width: 38px;
    height: 38px;
  }
}

.venue-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}
.venue-dot.active {
  background-color: #d97706 !important;
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.5);
}

#venue-slide-display {
  transition: opacity 0.25s ease-in-out;
}

/* ==========================================================================
   SMALL-SCREEN LAYOUT
   ========================================================================== */
@media (max-width: 640px) {
  body > section {
    width: 100%;
    padding-left: clamp(12px, 4vw, 20px);
    padding-right: clamp(12px, 4vw, 20px);
    padding-top: clamp(48px, 8vh, 64px);
    padding-bottom: clamp(48px, 8vh, 64px);
  }
#hero {
    min-height: auto;
    padding-top: 32px;
    padding-bottom: 32px;
}

  #hero .glass-card {
    padding: clamp(16px, 5vw, 24px);
    margin-top: 16px;
    margin-bottom: 16px;
  }

  .glass-card.p-6 {
    padding: clamp(16px, 4vw, 20px);
  }

  .glass-card.p-8 {
    padding: clamp(20px, 5vw, 24px);
  }

  #hero h1 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .countdown-box {
    min-width: 0;
  }

  #venue-slide-display > .grid {
    gap: 20px;
    padding: 16px;
  }

  #venue-slide-display .relative.w-full.h-80 {
    height: clamp(220px, 68vw, 300px);
  }

  #venue-prev-btn {
    left: 0;
  }

  #venue-next-btn {
    right: 0;
  }

  #rsvp-admin-modal .overflow-y-auto {
    overflow-x: auto;
  }

  #rsvp-admin-modal table {
    min-width: 720px;
  }
}

@media (max-width: 360px) {
  .countdown-label {
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }

  #rsvp-form-container {
    padding: 20px;
  }
}

/* ==========================================================================
   PRINT INVITATION STYLES
   ========================================================================== */
@media print {
  #envelope-overlay,
  .audio-controller-widget,
  .luxury-navbar,
  #customizer-drawer,
  #customizer-toggle-btn,
  #rsvp-form-container,
  #particles-canvas,
  .no-print {
    display: none !important;
  }

  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .glass-card {
    border: 1px solid #d4af37 !important;
    box-shadow: none !important;
  }
}
