@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Allura&family=Cinzel:wght@400;500;600;700;800&family=Great+Vibes&family=Italianno&family=Montserrat:wght@300;400;500;600;700&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');

:root {
  --bg-deep-space: #030612;
  --bg-navy-dark: #060b1b;
  --bg-navy-mid: #0a132c;
  --bg-input: rgba(10, 18, 42, 0.92);

  --gold-pure: #d4af37;
  --gold-light: #fbeea8;
  --gold-mid: #e5c07b;
  --gold-dark: #9a761e;
  --gold-glow: rgba(212, 175, 55, 0.4);
  --gold-gradient: linear-gradient(135deg, #fff3c4 0%, #dfb75c 40%, #c59b27 75%, #f6deb3 100%);
  --gold-text-gradient: linear-gradient(135deg, #fff5d0 0%, #e2be67 35%, #c59b27 70%, #fae6b8 100%);

  --rose-glow: rgba(244, 143, 177, 0.35);
  --rose-light: #ffd1dc;

  --text-white: #ffffff;
  --text-silver: #d1d5db;
  --text-muted: #94a3b8;

  --border-gold-subtle: 1px solid rgba(212, 175, 55, 0.3);
  --border-gold-glow: 1px solid rgba(212, 175, 55, 0.65);

  --font-script: 'Pinyon Script', 'Alex Brush', cursive;
  --font-script-alt: 'Allura', 'Alex Brush', cursive;
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Montserrat', sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-deep-space);
  color: var(--text-white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background animated stars canvas */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Radial celestial glow */
.cosmic-nebula {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 900px;
  height: 100vh;
  background: radial-gradient(circle at 50% 25%, rgba(20, 36, 78, 0.45) 0%, rgba(10, 18, 42, 0.25) 50%, transparent 80%);
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   1. ENVELOPE OPENING OVERLAY SCREEN
   ========================================================================== */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at 50% 45%, #081129 0%, #030612 85%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.envelope-screen.opened {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.08);
}

.envelope-wrapper {
  position: relative;
  max-width: 440px;
  width: 100%;
  text-align: center;
  cursor: pointer;
  perspective: 1000px;
}

.envelope-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.3);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.envelope-wrapper:hover .envelope-card,
.envelope-wrapper:active .envelope-card {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.5);
}

.envelope-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.envelope-seal-trigger {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.seal-pulse-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.7);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
  animation: sealPulse 2s infinite ease-in-out;
}

@keyframes sealPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.3; }
  100% { transform: scale(1); opacity: 0.8; }
}

.envelope-prompt {
  margin-top: 24px;
}

.envelope-prompt-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 6px;
  animation: pulseText 2s infinite ease-in-out;
}

.envelope-prompt-sub {
  font-size: 0.85rem;
  color: var(--text-silver);
  letter-spacing: 1.5px;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); color: #ffffff; }
}

/* ==========================================================================
   2. MAIN LANDING CONTAINER (MINIMALIST & AIRY, NO BOXY CARDS)
   ========================================================================== */
.app-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 20px 80px 20px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Typography Helpers */
.cursive-gold {
  font-family: var(--font-script);
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  line-height: 1.25;
}

.serif-gold {
  font-family: var(--font-serif);
  color: var(--gold-light);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gold-divider-stars {
  font-size: 1.1rem;
  color: var(--gold-mid);
  letter-spacing: 8px;
  margin: 14px 0;
  opacity: 0.85;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.section-icon-gold {
  font-size: 2.4rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px var(--gold-pure));
}

.section-heading-serif {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* ==========================================================================
   3. HERO SECTION: FOTO DE LA QUINCEAÑERA (SOLO FOTO, SIN TEXTOS ENCIMA)
   ========================================================================== */
.hero-photo-section {
  text-align: center;
  padding-top: 10px;
}

.hero-photo-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 35px rgba(212, 175, 55, 0.25);
  border: 1.5px solid rgba(212, 175, 55, 0.45);
  position: relative;
}

.hero-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ==========================================================================
   4. INVITATION MESSAGE SECTION
   ========================================================================== */
.invitation-intro-section {
  text-align: center;
  padding: 0 10px;
}

.quinceanera-name {
  font-size: clamp(4.2rem, 15vw, 6.2rem);
  font-weight: 400;
  margin-bottom: 4px;
}

.invitation-lead-text {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.7;
}

.xv-years-cursive {
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 11vw, 4.4rem);
  text-transform: none;
  background: var(--gold-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-top: 6px;
  line-height: 1;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   5. DATE & TIME SECTION (FORMATO SEGÚN PANTALLAZO DEL CLIENTE)
   Top: DICIEMBRE -> NOVIEMBRE
   Bottom: SÁBADO 12 7:00 PM -> VIERNES 13 7:30 PM
   ========================================================================== */
.datetime-section {
  text-align: center;
  padding: 14px 0 6px 0;
}

.datetime-card-editorial {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.dt-top-month {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 4vw, 1.35rem);
  letter-spacing: 9px;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 8px;
  text-indent: 9px;
}

.dt-bottom-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: clamp(12px, 3.8vw, 24px);
  width: 100%;
  white-space: nowrap;
}

.dt-day-name {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.5vw, 1.85rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-mid);
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.dt-big-number {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 11vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  color: var(--gold-light);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  display: inline-block;
}

.dt-time-text {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4.5vw, 1.85rem);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-mid);
  font-weight: 500;
  text-align: left;
  flex: 1;
}

.dt-year-tag {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  letter-spacing: 5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==========================================================================
   6. COUNTDOWN SECTION (SOLO FALTAN, SIN CONTENEDORES NI CAJAS)
   ========================================================================== */
.countdown-section-minimal {
  text-align: center;
  padding: 10px 0;
}

.countdown-title-clean {
  font-family: var(--font-script);
  font-size: clamp(2.6rem, 9vw, 3.4rem);
  margin-bottom: 14px;
}

.countdown-minimal-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}

.cd-digit {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.cd-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-mid);
  margin-top: 6px;
}

.cd-colon {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-mid);
  margin-bottom: 22px;
  opacity: 0.6;
}

/* ==========================================================================
   7. RECEPCIÓN Y UBICACIÓN (CON COPAS 🥂 Y BOTÓN LIMPIO DE GOOGLE MAPS)
   ========================================================================== */
.reception-section {
  text-align: center;
  padding: 10px 0;
}

.reception-venue {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 6px;
}

.reception-address {
  font-size: 0.95rem;
  color: var(--text-silver);
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 32px;
  border: 1.5px solid var(--gold-pure);
  border-radius: 30px;
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(10, 18, 42, 0.6);
  transition: var(--transition-smooth);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.btn-gold-outline:hover {
  background: var(--gold-pure);
  color: #030612;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

/* ==========================================================================
   8. DRESS CODE (MANIQUÍES GENERADOS POR IA)
   ========================================================================== */
.dresscode-section {
  text-align: center;
  padding: 10px 0;
}

.dresscode-mannequins-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 480px;
  margin: 20px auto 0 auto;
}

@media (min-width: 480px) {
  .dresscode-mannequins-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.dresscode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.mannequin-frame {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--gold-pure);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.35);
  margin-bottom: 14px;
  background: #060b1b;
}

.mannequin-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.dresscode-item-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.dresscode-item-desc {
  font-size: 0.9rem;
  color: var(--text-silver);
  line-height: 1.4;
  max-width: 220px;
}

/* ==========================================================================
   9. LLUVIA DE SOBRES (REGALO 🎁)
   ========================================================================== */
.gift-section {
  text-align: center;
  padding: 10px 0;
}

.gift-desc {
  font-size: 0.95rem;
  color: var(--text-silver);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   10. FORMULARIO DE CONFIRMACIÓN (MOVIDO AL FINAL, RESILIENTE Y ULTRA-CONFIABLE)
   ========================================================================== */
.rsvp-section-final {
  text-align: center;
  padding: 15px 0 10px 0;
  position: relative;
  z-index: 10;
}

.rsvp-deadline-badge {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.45);
  padding: 8px 20px;
  border-radius: 30px;
  margin-bottom: 16px;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.rsvp-search-container {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  padding: 15px 44px 15px 20px;
  background: var(--bg-input);
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  border-radius: 14px;
  color: #ffffff;
  font-size: 1rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.search-input:focus {
  border-color: var(--gold-pure);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.45), inset 0 2px 6px rgba(0, 0, 0, 0.6);
  background: rgba(14, 25, 58, 0.98);
}

.search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  padding: 4px;
  transition: var(--transition-smooth);
}

.search-clear-btn:hover {
  color: var(--gold-light);
}

/* Autocomplete suggestions dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(8, 16, 38, 0.98);
  border: 1.5px solid var(--gold-pure);
  border-radius: 14px;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.3);
  display: none;
  text-align: left;
}

.autocomplete-dropdown.active {
  display: block;
}

.autocomplete-item {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: rgba(212, 175, 55, 0.22);
}

.item-name {
  font-weight: 500;
  color: #ffffff;
  font-size: 0.95rem;
}

.item-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  font-weight: 600;
}

.item-badge.confirmed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.item-badge.pending {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

/* Selected guest card */
.selected-guest-card {
  margin-top: 18px;
  background: rgba(12, 22, 52, 0.85);
  border: 1.5px solid var(--gold-pure);
  border-radius: 16px;
  padding: 20px;
  display: none;
  animation: fadeIn 0.4s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.selected-guest-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.selected-guest-note {
  font-size: 0.85rem;
  color: var(--text-silver);
  margin-bottom: 14px;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--gold-gradient);
  border: none;
  border-radius: 14px;
  color: #070d1e;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.6);
  filter: brightness(1.08);
}

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   11. FINAL THANK YOU & EMOTIONAL MESSAGE
   ========================================================================== */
.final-thankyou-section {
  text-align: center;
  padding: 24px 0 16px 0;
}

.emotional-message-block {
  max-width: 540px;
  margin: 18px auto 26px auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emotional-text-lead {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 4.2vw, 1.25rem);
  color: var(--text-silver);
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.thankyou-lead-strong {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5.5vw, 1.85rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
  display: inline;
}

.emotional-text-body {
  font-family: var(--font-serif);
  font-size: clamp(1.02rem, 4vw, 1.18rem);
  color: var(--gold-mid);
  line-height: 1.6;
  letter-spacing: 0.6px;
  font-style: italic;
}

.signature-gold {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* ==========================================================================
   MODAL / POPUP DE AGRADECIMIENTO POR CONFIRMAR
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 16, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.modal-card {
  background: radial-gradient(circle at 50% 20%, #152756 0%, #070d1e 80%);
  border: 2px solid var(--gold-pure);
  border-radius: 24px;
  padding: 36px 24px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(212, 175, 55, 0.45);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-sparkles {
  font-size: 3rem;
  margin-bottom: 12px;
  display: inline-block;
  animation: pulse 1.8s infinite;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.modal-message {
  font-size: 1rem;
  color: var(--text-silver);
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-btn-close {
  background: var(--gold-gradient);
  border: none;
  color: #070d1e;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.modal-btn-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

/* ==========================================================================
   DASHBOARD /CONFIRMACIONES STYLES (PRESERVED FOR ADMIN PANEL)
   ========================================================================== */
.dashboard-wrapper {
  max-width: 980px;
}

.dashboard-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .dashboard-header {
    flex-direction: row;
  }
}

.btn-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-back-link:hover {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-pure);
  transform: translateX(-3px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: rgba(12, 22, 50, 0.75);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  border-color: var(--gold-pure);
  transform: translateY(-2px);
}

.stat-card.confirmed {
  border-color: rgba(16, 185, 129, 0.4);
}
.stat-card.confirmed .stat-number {
  color: #34d399;
  text-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.stat-card.pending {
  border-color: rgba(239, 68, 68, 0.4);
}
.stat-card.pending .stat-number {
  color: #f87171;
  text-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-silver);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.dashboard-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .dashboard-controls {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-bar-dash {
  flex: 1;
  position: relative;
}

.btn-group-dash {
  display: flex;
  gap: 10px;
}

.btn-dash {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--gold-pure);
  background: rgba(16, 29, 64, 0.9);
  color: var(--gold-light);
  transition: var(--transition-smooth);
}

.btn-dash:hover {
  background: var(--gold-pure);
  color: #050813;
  box-shadow: 0 0 15px var(--gold-pure);
}

.table-responsive-container {
  width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(10, 18, 40, 0.85);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.guests-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.guests-table th {
  background: rgba(16, 29, 64, 0.95);
  color: var(--gold-light);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 18px;
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.4);
  white-space: nowrap;
}

.guests-table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  color: #ffffff;
  vertical-align: middle;
}

.guests-table tr:hover td {
  background: rgba(212, 175, 55, 0.08);
}

.col-num {
  width: 50px;
  color: var(--text-muted);
  font-family: var(--font-serif);
  font-weight: 600;
}

.col-name {
  font-size: 1rem;
}

.col-notes {
  font-size: 0.85rem;
}

.notes-tag {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  display: inline-block;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.badge-confirmed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1.5px solid #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

.badge-pending {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1.5px solid #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.2);
}

.empty-state, .loading-state {
  text-align: center;
  padding: 40px 20px !important;
  color: var(--text-silver);
  font-size: 1rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-pure);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
