/* ==========================================================================
   CHÁ DE PANELA - MARIA & ELTON
   Style Sheet - Custom Modern CSS (No external frameworks)
   Palette: White, Cream, Gold, Light Pink, Sage Green
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & SYSTEM RESET
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette */
  --bg-white: #FFFFFF;
  --bg-cream-light: #FAF7F2;
  --bg-cream: #F5EFEB;
  --bg-cream-warm: #EFE6DD;

  --gold-primary: #D4AF37;
  --gold-light: #F7E7B4;
  --gold-medium: #C59B27;
  --gold-dark: #A07810;
  --gold-shimmer: linear-gradient(135deg, #FFF1C5 0%, #D4AF37 45%, #AA820A 100%);
  --gold-border: rgba(212, 175, 55, 0.4);

  --pink-light: #FCE8EF;
  --pink-soft: #F4A2B7;
  --pink-accent: #E91E63;

  --sage-green: #8A9A86;
  --sage-dark: #4F5E4B;
  --sage-light: #E8EFE7;
  --sage-border: rgba(138, 154, 134, 0.3);

  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --text-muted: #888888;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-hover: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 12px 36px 0 rgba(138, 154, 134, 0.12), 0 4px 16px rgba(0, 0, 0, 0.03);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-cursive: 'Great Vibes', cursive;
  --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Easing & Transitions */
  --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

  /* Spacing & Radii */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-full: 9999px;
}

/* Universal Box Sizing & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-cream);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: radial-gradient(circle at 50% 0%, #FFFDF9 0%, #F5EFEB 60%, #E8E0D7 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* Helper Class for Disabling Scroll when Modal or Thanks Overlay is Active */
body.modal-open {
  overflow: hidden;
}

/* Smooth Body Blur on Celebration */
body.celebrate-blur .app-shell {
  filter: blur(5px) brightness(0.95);
  transition: filter 0.8s var(--ease-fluid);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   2. BACKGROUND CANVAS & FLOATING PARTICLES
   -------------------------------------------------------------------------- */
#particleCanvas, #fireworksCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

#particleCanvas {
  z-index: 1;
}

#fireworksCanvas {
  z-index: 9998;
}

#heartContainer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

/* Floating Heart Element */
.floating-heart {
  position: absolute;
  bottom: -40px;
  font-size: 1.4rem;
  user-select: none;
  pointer-events: none;
  animation: floatUp 7s var(--ease-fluid) forwards;
  filter: drop-shadow(0 2px 8px rgba(233, 30, 99, 0.25));
  opacity: 0.85;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(0.6) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) scale(1.2) rotate(360deg);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   3. APP CONTAINER (MOBILE-APP SHELL LOOK)
   -------------------------------------------------------------------------- */
.app-shell {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  background: var(--bg-cream-light);
  box-shadow: 0 20px 60px rgba(80, 97, 76, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: 2rem;
  transition: transform 0.3s var(--ease-fluid), filter 0.5s ease;
}

@media (min-width: 520px) {
  .app-shell {
    margin: 1.5rem auto;
    border-radius: 32px;
    min-height: calc(100vh - 3rem);
  }
}

/* --------------------------------------------------------------------------
   4. TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
.top-nav {
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.25rem 0.5rem 1.25rem;
  background: transparent;
  pointer-events: auto;
}

.top-nav * {
  pointer-events: auto;
}

.nav-brand .monogram {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 2px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Icon Pulse Button (💝 Surpreenda-nos in Nav) */
.btn-icon-pulse {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease-spring);
  animation: subtlePulse 2.5s infinite ease-in-out;
}

.btn-icon-pulse:hover {
  transform: scale(1.12) rotate(6deg);
  background: #FFFFFF;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

@keyframes subtlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Floating Music Button */
.btn-music {
  height: 40px;
  padding: 0 0.95rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: all 0.3s var(--ease-spring);
}

.btn-music:hover {
  background: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-music.playing {
  background: var(--sage-dark);
  color: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 4px 16px rgba(79, 94, 75, 0.4);
}

/* Audio Wave Equalizer Animation */
.audio-waves {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.audio-waves span {
  width: 2.5px;
  background-color: var(--gold-primary);
  border-radius: 2px;
  animation: waveAnim 1s ease-in-out infinite alternate;
}

.audio-waves span:nth-child(1) { height: 4px; animation-delay: 0.1s; }
.audio-waves span:nth-child(2) { height: 10px; animation-delay: 0.3s; }
.audio-waves span:nth-child(3) { height: 6px; animation-delay: 0.2s; }

.btn-music.playing .audio-waves span {
  background-color: #FFFFFF;
}

@keyframes waveAnim {
  0% { height: 3px; }
  100% { height: 12px; }
}

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   5. HERO PHOTO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0.5rem 1rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(138, 154, 134, 0.16), 0 4px 12px rgba(0, 0, 0, 0.04);
  border: 4px solid #FFFFFF;
  background: linear-gradient(135deg, #FFFDF9 0%, #F5EFEB 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.hero-badge-floating {
  margin-top: -1.2rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1.5px solid var(--gold-primary);
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  animation: floatBadge 3s infinite ease-in-out;
}

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

/* --------------------------------------------------------------------------
   6. COUPLE INFO & EVENT DETAILS
   -------------------------------------------------------------------------- */
.info-section {
  padding: 1.8rem 1.5rem 1rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-names {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  background: var(--gold-shimmer);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
}

.ampersand {
  font-family: var(--font-cursive);
  font-size: 2.6rem;
  font-weight: 400;
  margin: 0 0.2rem;
  vertical-align: middle;
  background: none;
  -webkit-text-fill-color: var(--pink-soft);
}

.subtitle-tag {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
}

.details-cards-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(138, 154, 134, 0.18);
  border-color: var(--gold-border);
}

.info-icon {
  font-size: 1.4rem;
  background: var(--sage-light);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.info-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.info-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   7. BUTTONS (PRIMARY, GOLD, RIPPLE)
   -------------------------------------------------------------------------- */
.btn-primary {
  width: 100%;
  max-width: 320px;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-full);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
}

.btn-gold {
  background: var(--gold-shimmer);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.48);
}

.btn-gold:active {
  transform: translateY(1px) scale(0.98);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-gold:hover .btn-arrow {
  transform: translateX(4px);
}

/* Ripple Effect Class */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* --------------------------------------------------------------------------
   8. COUNTDOWN TIMER
   -------------------------------------------------------------------------- */
.countdown-section {
  padding: 1.2rem 1.5rem 1.8rem 1.5rem;
  text-align: center;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.section-divider .line {
  height: 1px;
  width: 45px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.section-divider .icon {
  font-size: 1rem;
  color: var(--gold-primary);
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
}

.countdown-intro {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.time-box {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.3rem;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.time-box:hover {
  transform: scale(1.05);
  border-color: var(--gold-border);
}

.time-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.time-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. INVITATION TEXT & SURPRISE BUTTON
   -------------------------------------------------------------------------- */
.invitation-text-section {
  padding: 1rem 1.5rem 2rem 1.5rem;
  text-align: center;
}

.quote-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(252, 232, 239, 0.5) 100%);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(248, 187, 208, 0.5);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  position: relative;
  box-shadow: var(--glass-shadow);
  margin-bottom: 1.5rem;
}

.quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--pink-soft);
  position: absolute;
  top: 0.2rem;
  left: 0.8rem;
  opacity: 0.5;
}

.quote-mark.right {
  top: auto;
  left: auto;
  bottom: -0.8rem;
  right: 0.8rem;
}

.text-paragraph {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.text-paragraph:last-child {
  margin-bottom: 0;
}

.highlight-text {
  font-weight: 600;
  color: var(--sage-dark);
  font-size: 0.98rem;
}

/* Surprise Me Button */
.btn-secondary {
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--pink-soft);
  background: var(--bg-white);
  color: var(--pink-accent);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(233, 30, 99, 0.12);
  transition: all 0.3s var(--ease-spring);
}

.btn-secondary:hover {
  background: var(--pink-light);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 20px rgba(233, 30, 99, 0.22);
}

/* --------------------------------------------------------------------------
   10. GIFT LIST SECTION & CARDS
   -------------------------------------------------------------------------- */
.gift-section {
  padding: 1.5rem 1.25rem 2rem 1.25rem;
  background: var(--bg-cream-warm);
  border-radius: 28px;
  margin: 0 0.6rem 2rem 0.6rem;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.section-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

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

/* Gift Filter / Search */
.gift-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
}

.search-input-wrapper input {
  width: 100%;
  padding: 0.75rem 2.2rem 0.75rem 2.4rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  outline: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}

.search-input-wrapper input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.clear-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

.filter-chips {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.chip {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0,0,0,0.08);
  background: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
}

.chip.active {
  background: var(--sage-dark);
  color: #FFFFFF;
  border-color: var(--sage-dark);
  box-shadow: 0 4px 12px rgba(79, 94, 75, 0.25);
}

/* Gift Cards Container Grid */
.gift-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 400px) {
  .gift-cards-container {
    grid-template-columns: 1fr 1fr;
  }
}

/* Individual Gift Card */
.gift-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, border-color 0.4s ease, background 0.3s ease;
}

.gift-card:hover {
  transform: translateY(-4px) scale(1.02);
  background: var(--bg-card-hover);
  box-shadow: 0 16px 32px rgba(138, 154, 134, 0.2);
  border-color: var(--gold-border);
}

/* Gift Emoji Badge Container */
.gift-emoji-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFF 0%, var(--sage-light) 100%);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--ease-spring);
}

.gift-card:hover .gift-emoji-box {
  transform: scale(1.12) rotate(5deg);
}

.gift-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.9rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-select-gift {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold-primary);
  background: #FFFFFF;
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.btn-select-gift:hover {
  background: var(--gold-shimmer);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

/* Chosen Gift Card Special State */
.gift-card.chosen {
  background: linear-gradient(135deg, #FFFDF8 0%, #FFF8E7 100%);
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.45);
  transform: scale(1.03);
}

.gift-card.chosen::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shineGold 2.5s infinite;
}

@keyframes shineGold {
  0% { left: -100%; }
  100% { left: 200%; }
}

.gift-card.chosen .gift-emoji-box {
  background: var(--gold-shimmer);
  border-color: var(--gold-primary);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

.badge-chosen {
  background: var(--gold-shimmer);
  color: #FFFFFF;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------------------------
   11. MODAL (CONFIRMATION)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(44, 44, 44, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal-backdrop.hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--gold-border);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: scale(1);
  animation: modalPopIn 0.4s var(--ease-spring);
}

@keyframes modalPopIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-icon-badge {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold-light);
  border: 2px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.2rem auto;
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-question {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.modal-gift-preview {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sage-dark);
  background: var(--sage-light);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.6rem;
  display: inline-block;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.btn-modal {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.3s var(--ease-spring);
}

.btn-cancel {
  background: var(--bg-cream);
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.1);
}

.btn-cancel:hover {
  background: #E5DDD4;
}

.btn-confirm {
  background: var(--gold-shimmer);
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

/* --------------------------------------------------------------------------
   12. THANKS / REDIRECT OVERLAY
   -------------------------------------------------------------------------- */
.thanks-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.5s ease forwards;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

.thanks-card {
  text-align: center;
  max-width: 360px;
  animation: thanksPop 0.6s var(--ease-spring) forwards;
}

@keyframes thanksPop {
  0% { transform: scale(0.7); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thanks-heart-pop {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  animation: heartPulse 1.2s infinite ease-in-out;
  filter: drop-shadow(0 10px 20px rgba(233, 30, 99, 0.3));
}

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

.thanks-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.thanks-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--sage-dark);
  margin-bottom: 1.5rem;
}

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

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

.thanks-redirect-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.footer-section {
  text-align: center;
  padding: 2rem 1.5rem 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  margin-top: auto;
}

.footer-crest {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #FFFFFF;
  border: 1px solid var(--gold-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.crest-heart {
  font-size: 0.9rem;
}

.crest-text {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--gold-dark);
  letter-spacing: 2px;
}

.footer-message {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.footer-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   14. ANIMATE ON SCROLL CLASSES
   -------------------------------------------------------------------------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-fluid), transform 0.8s var(--ease-fluid);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   15. QUICK REACTIONS & FUN INTERACTIVE SECTION
   -------------------------------------------------------------------------- */
.reactions-bar {
  margin-top: 1.25rem;
  text-align: center;
}

.reactions-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 0.4rem;
}

.reaction-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-reaction {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-full);
  width: 42px;
  height: 42px;
  font-size: 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.btn-reaction:hover {
  transform: scale(1.18) translateY(-2px);
  background: #FFFFFF;
  box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.btn-reaction:active {
  transform: scale(0.95);
}

/* Floating Emojis Animation */
.floating-emoji {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  font-size: 2rem;
  animation: floatUpAndFade 1.8s forwards ease-out;
}

@keyframes floatUpAndFade {
  0% {
    opacity: 1;
    transform: translate(-50%, 0) scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.9;
    transform: translate(-50%, -80px) scale(1.3) rotate(15deg);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -180px) scale(1) rotate(-15deg);
  }
}

/* Fun Section (Quiz & Fortune) */
.fun-section {
  padding: 1.5rem 1.25rem;
  max-width: 440px;
  margin: 0 auto;
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 0.2rem;
}

.fun-tabs {
  display: flex;
  background: rgba(235, 230, 222, 0.6);
  padding: 0.25rem;
  border-radius: var(--radius-full);
  gap: 0.25rem;
  margin: 1.25rem 0 1rem 0;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.fun-tab {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.fun-tab.active {
  background: #FFFFFF;
  color: var(--gold-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.tab-content {
  display: block;
}

.tab-content.hidden {
  display: none;
}

/* Quiz Styling */
.quiz-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(138, 154, 134, 0.12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quiz-header {
  margin-bottom: 0.75rem;
}

.quiz-badge {
  display: inline-block;
  background: var(--rose-soft);
  color: #B05565;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-question {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 1rem;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quiz-btn-option {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-cream);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.quiz-btn-option:hover {
  background: var(--rose-soft);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.quiz-btn-option.selected {
  background: var(--gold-light);
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  font-weight: 700;
}

.quiz-feedback {
  margin-top: 1rem;
  padding: 0.75rem;
  background: #FDF8ED;
  border-radius: 12px;
  border: 1px solid var(--gold-primary);
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
  animation: fadeIn 0.3s ease;
}

.quiz-feedback.hidden {
  display: none;
}

/* Fortune Cookie Styling */
.fortune-card {
  background: #FFFFFF;
  border: 1.5px solid var(--gold-border);
  border-radius: 20px;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 8px 24px rgba(138, 154, 134, 0.12);
  text-align: center;
}

.cookie-illustration {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  display: inline-block;
}

.cookie-illustration:hover {
  transform: scale(1.15) rotate(10deg);
}

.fortune-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.fortune-paper {
  background: #FFFDF7;
  border: 1px dashed var(--gold-primary);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 2px 6px rgba(212, 175, 55, 0.1);
  position: relative;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fortune-paper p {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1.4;
  margin: 0;
}

.quote-sparkle {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 1.1rem;
}

.btn-fortune {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}
