/* ==========================================================
   FestiveHub - Bilingual Viral Festive Greeting Machine Styles
   Tailored for Mobile WhatsApp Virality & High Conversions
   ========================================================== */

:root {
  --gold-primary: #f59e0b;
  --gold-bright: #fef08a;
  --gold-metallic: linear-gradient(135deg, #fff9c4 0%, #fbc02d 30%, #f57f17 70%, #fff59d 100%);
  --crimson-accent: #dc2626;
  --bg-deep: #08020e;
  --wa-green: #25d366;
  --wa-hover: #1ebd5b;
}

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

/* Base Body */
body.festive-body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f8fafc;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.8s ease, background-image 0.8s ease;
}

/* 1. ROOM DARK MODE (Deep Darkness - Lights OFF!) */
body.room-dark {
  background-color: #000000 !important;
  background-image: radial-gradient(circle at 50% 30%, #05010a 0%, #000000 70%) !important;
}

body.room-dark .mandala-bg {
  opacity: 0 !important;
  display: none !important;
}

body.room-dark .toran-leaves {
  filter: brightness(0.04) contrast(0.4) !important;
  opacity: 0.08 !important;
  transition: all 0.6s ease;
}

body.room-dark .festival-year-tag {
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.6s ease;
}

/* Card is submerged in pitch darkness when lights are off */
body.room-dark .card-hero-box {
  background: #020104 !important;
  border-color: rgba(245, 158, 11, 0.04) !important;
  box-shadow: 0 0 30px rgba(0, 0, 0, 1) !important;
  transition: all 0.6s ease;
}

/* Completely vanish all greeting text, names, calligraphy and crowns in dark room */
body.room-dark .royal-crown,
body.room-dark .glowing-3d-name,
body.room-dark .tribute-salutation,
body.room-dark .shubh-calligraphy,
body.room-dark .sub-calligraphy,
body.room-dark .blessing-quote {
  opacity: 0 !important;
  visibility: hidden !important;
  filter: blur(12px) !important;
  transform: translateY(-6px) scale(0.97) !important;
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

body.room-dark .hanging-diya .flame {
  opacity: 0 !important;
  transform: scale(0) !important;
}

body.room-dark .hanging-diya .brass-chain {
  opacity: 0.04 !important;
}

body.room-dark .shayari-box {
  background: #010002 !important;
  border-color: rgba(255, 255, 255, 0.02) !important;
  box-shadow: none !important;
}

/* Viral Share Section ALWAYS accessible and clickable (NEVER blocked by dark mode!) */
.viral-share-section {
  position: relative;
  z-index: 60;
  pointer-events: auto !important;
}

body.room-dark .viral-share-section {
  pointer-events: auto !important;
  opacity: 1 !important;
  filter: none !important;
}

body.room-dark .deals-showcase-section,
body.room-dark .festive-footer {
  filter: brightness(0.35) contrast(0.7) !important;
  opacity: 0.45 !important;
  pointer-events: auto !important;
  transition: all 0.6s ease;
}

body.room-illuminated .viral-share-section,
body.room-illuminated .deals-showcase-section,
body.room-illuminated .festive-footer {
  filter: brightness(1) contrast(1);
  opacity: 1;
  pointer-events: auto;
  transition: all 0.8s ease;
}

/* 2. ROOM ILLUMINATED MODE (When Diya is Lit - Glorious Festive Golden Bloom) */
body.room-illuminated {
  background-color: #08020e;
  background-image: 
    radial-gradient(circle at 50% 20%, rgba(245, 158, 11, 0.32) 0%, rgba(220, 38, 38, 0.2) 35%, rgba(147, 51, 234, 0.15) 65%, #08020e 95%);
}

body.room-illuminated .mandala-bg {
  opacity: 0.15;
}

body.room-illuminated .toran-leaves {
  filter: brightness(1);
  opacity: 1;
  transition: all 0.8s ease;
}

body.room-illuminated .festival-year-tag {
  opacity: 1;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

body.room-illuminated .card-hero-box {
  background: #130623;
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.25);
}

body.room-illuminated .glowing-3d-name {
  filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.85)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
}

body.room-illuminated .shubh-calligraphy {
  color: #fff;
  text-shadow: 0 0 20px rgba(239, 68, 68, 0.8), 0 0 40px rgba(245, 158, 11, 0.8);
}

body.room-illuminated .hanging-diya .flame {
  opacity: 1;
  filter: drop-shadow(0 0 8px #f59e0b);
}

/* Festive Firework & Particle Canvas (In front of cards so crackers burst visibly, pointer-events: none) */
#fireworkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
}

.mandala-bg {
  position: fixed;
  top: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background-image: radial-gradient(circle, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  border-radius: 50%;
  animation: rotateMandala 120s linear infinite;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.8s ease;
}

@keyframes rotateMandala {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Top Floating Navigation Bar */
.top-nav-bar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  z-index: 1000;
  pointer-events: none;
}

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

/* Language Toggle Group */
.lang-selector-group {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
  padding: 4px;
  display: flex;
  gap: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
}

.lang-toggle-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  color: #fff;
}

.lang-toggle-btn.active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1a052e;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.7);
}

/* Sound Toggle Button */
.sound-toggle-btn {
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  padding: 7px 14px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-bright);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}

.sound-toggle-btn:hover {
  transform: scale(1.05);
  background: rgba(245, 158, 11, 0.25);
}

/* ==========================================================
   1. TOUCH-TO-OPEN MYSTERY CURTAIN OVERLAY
   ========================================================== */
.curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(circle at center, #1e0933 0%, #08020e 75%, #000000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.curtain-overlay.opened {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
  visibility: hidden;
}

.curtain-content {
  text-align: center;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.curtain-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 9999px;
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.curtain-sender-banner {
  margin-bottom: 25px;
}

.curtain-sender-name {
  font-family: 'Rozha One', 'Yatra One', serif;
  font-size: 2.4rem;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 15px rgba(245, 158, 11, 0.7));
  margin-bottom: 8px;
  line-height: 1.2;
}

.curtain-subtext {
  font-size: 1.05rem;
  color: #e2e8f0;
  font-weight: 500;
}

.curtain-diya-stage {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  cursor: pointer;
  user-select: none;
}

.mystic-aura {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.5) 0%, rgba(220, 38, 38, 0.2) 50%, transparent 70%);
  animation: pulseAura 2s ease-in-out infinite;
}

@keyframes pulseAura {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
}

.diya-glow-flame {
  font-size: 3.5rem;
  position: absolute;
  top: 10px;
  z-index: 2;
  animation: flameFlicker 0.15s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 15px #f59e0b) drop-shadow(0 0 30px #ef4444);
}

.diya-clay-base {
  font-size: 5rem;
  position: absolute;
  bottom: 10px;
  z-index: 1;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.8));
}

@keyframes flameFlicker {
  0% { transform: scale(0.98) rotate(-1deg); }
  100% { transform: scale(1.05) rotate(1.5deg); }
}

.curtain-open-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 2px solid #fef08a;
  color: #1a052e;
  padding: 16px 28px;
  border-radius: 9999px;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.7), 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: breathingScale 1.8s ease-in-out infinite;
  transition: transform 0.2s;
}

@keyframes breathingScale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 0 45px rgba(245, 158, 11, 0.9); }
}

.finger-pointer {
  font-size: 1.4rem;
  animation: bounceDown 1s infinite alternate;
}

@keyframes bounceDown {
  from { transform: translateY(-3px); }
  to { transform: translateY(3px); }
}

.curtain-hint {
  margin-top: 16px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================
   2. MAIN GREETING SHOWCASE
   ========================================================== */
.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 68px 16px 60px 16px;
  position: relative;
  z-index: 20; /* IN FRONT OF canvas */
}

.toran-header {
  text-align: center;
  margin-bottom: 12px;
}

.toran-leaves {
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 6px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.8));
}

.festival-year-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 1.5px;
  transition: all 0.8s ease;
}

/* SOLID OPAQUE Card Box (Crackers pass behind and never disturb text!) */
.card-hero-box {
  background: #130623;
  border: 2px solid rgba(245, 158, 11, 0.35);
  border-radius: 28px;
  padding: 30px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  margin-bottom: 24px;
  transition: background 0.8s ease, border-color 0.8s ease, box-shadow 0.8s ease;
}

.card-hero-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #f59e0b, #ef4444, #f59e0b, transparent);
}

.hanging-diyas {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 18px;
  pointer-events: none;
}

.hanging-diya {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swayDiya 3s ease-in-out infinite alternate;
  transform-origin: top center;
}

.hanging-diya.right {
  animation-delay: -1.5s;
}

@keyframes swayDiya {
  from { transform: rotate(-5deg); }
  to { transform: rotate(5deg); }
}

.brass-chain {
  font-size: 0.75rem;
  line-height: 1;
}

.hanging-diya .flame {
  font-size: 1.6rem;
  margin-top: -4px;
  transition: opacity 0.8s ease, filter 0.8s ease;
}

.sender-tribute {
  margin-top: 10px;
  margin-bottom: 16px;
}

.royal-crown {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
  animation: floatCrown 2.5s ease-in-out infinite alternate;
}

@keyframes floatCrown {
  from { transform: translateY(0); }
  to { transform: translateY(-6px); }
}

.glowing-3d-name {
  font-family: 'Rozha One', 'Yatra One', serif;
  font-size: 2.8rem;
  font-weight: 900;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  transition: filter 0.8s ease;
}

.tribute-salutation {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 500;
}

.headline-container {
  margin-bottom: 20px;
}

.shubh-calligraphy {
  font-family: 'Rozha One', 'Yatra One', serif;
  font-size: 2.5rem;
  letter-spacing: 2px;
  transition: color 0.8s ease, text-shadow 0.8s ease;
}

.sub-calligraphy {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

/* ==========================================================
   INTERACTIVE DIYA LIGHTING RITUAL (UNLIT ⇄ LIT TOGGLE)
   ========================================================== */
.interactive-diya-block {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.center-grand-diya {
  position: relative;
  width: 130px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-grand-diya:hover {
  transform: scale(1.06);
}

.center-grand-diya:active {
  transform: scale(0.92);
}

.center-grand-diya .golden-flame-halo {
  position: absolute;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.75) 0%, transparent 70%);
  animation: pulseAura 1.8s infinite;
  transition: opacity 0.5s ease;
}

.center-grand-diya .center-flame {
  font-size: 3rem;
  position: absolute;
  top: 5px;
  animation: flameFlicker 0.18s infinite alternate;
  filter: drop-shadow(0 0 15px #f59e0b) drop-shadow(0 0 25px #ef4444);
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}

.center-grand-diya .center-diya-body {
  font-size: 4.2rem;
  position: absolute;
  bottom: 5px;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
}

/* Unlit State: Flame completely extinguished, dark earthen body */
.center-grand-diya.unlit .center-flame {
  transform: scale(0) !important;
  opacity: 0 !important;
  filter: blur(6px) !important;
}

.center-grand-diya.unlit .golden-flame-halo {
  opacity: 0 !important;
  transform: scale(0.2) !important;
}

.center-grand-diya.unlit .center-diya-body {
  filter: brightness(0.42) contrast(0.8) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.95));
  transition: filter 0.5s ease;
}

.tap-diya-hint {
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
  padding: 7px 16px;
  border-radius: 9999px;
  transition: all 0.3s ease;
  user-select: none;
}

.tap-diya-hint.hidden {
  display: none !important;
}

.tap-diya-hint.unlit-hint {
  color: #1a052e;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  border: 1px solid #fff;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.9);
  animation: breathingScale 1.6s infinite;
  cursor: pointer;
}

.tap-diya-hint.lit-hint {
  color: var(--gold-bright);
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
}

/* SOLID OPAQUE Shayari Box (100% crisp text, no crackers behind!) */
.shayari-box {
  background: #0d0218;
  border: 1.5px solid rgba(245, 158, 11, 0.4);
  border-radius: 18px;
  padding: 20px 16px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all 0.6s ease;
}

.shayari-box.blur-locked #shayariLinesContainer {
  filter: blur(8px);
  opacity: 0.2;
  user-select: none;
  pointer-events: none;
}

.shayari-lock-notice {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fef08a;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.95);
  pointer-events: none;
  background: rgba(13, 2, 24, 0.5);
}

.shayari-box.blur-locked .shayari-lock-notice {
  display: flex;
}

.shayari-line {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f1f5f9;
  font-weight: 600;
}

.shayari-line.highlight {
  color: var(--gold-bright);
  font-weight: 800;
  margin-top: 4px;
}

.blessing-quote {
  font-size: 0.88rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
  border-top: 1px dashed rgba(245, 158, 11, 0.25);
  padding-top: 14px;
}

/* ==========================================================
   3. THE 1-CLICK VIRAL SHARE GENERATOR
   ========================================================== */
.viral-share-section {
  background: linear-gradient(135deg, #18052c 0%, #0e031a 100%);
  border: 2px solid #22c55e;
  border-radius: 26px;
  padding: 24px 18px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 0 35px rgba(34, 197, 94, 0.3), 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}

.viral-share-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.viral-share-header h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 800;
}

.viral-share-sub {
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 16px;
}

/* Language Selection for Outgoing Link */
.share-lang-choice {
  margin-bottom: 14px;
  text-align: center;
}

.share-lang-label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 6px;
}

.share-lang-pills {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.share-lang-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.share-lang-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.share-lang-pill.active {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.name-input-wrapper {
  margin-bottom: 14px;
}

.name-input-field {
  width: 100%;
  background: rgba(10, 2, 20, 0.95);
  border: 2px solid rgba(245, 158, 11, 0.5);
  border-radius: 16px;
  padding: 16px 18px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.name-input-field:focus {
  border-color: #22c55e;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.name-input-field::placeholder {
  color: #64748b;
  font-weight: 500;
}

/* Giant WhatsApp Button */
.giant-whatsapp-btn {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
  border: 2px solid #86efac;
  color: #ffffff;
  padding: 16px 20px;
  border-radius: 9999px;
  font-size: 1.15rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(37, 211, 102, 0.6), 0 8px 20px rgba(0, 0, 0, 0.5);
  animation: breathingScale 2s ease-in-out infinite;
  transition: transform 0.15s, background 0.15s;
  margin-bottom: 12px;
}

.giant-whatsapp-btn:active {
  transform: scale(0.96);
}

.auxiliary-actions {
  display: flex;
  justify-content: center;
}

.fast-copy-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #cbd5e1;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.fast-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* ==========================================================
   4. DIWALI FESTIVE LOOT HAMPERS (AMAZON AFFILIATE)
   ========================================================== */
.loot-hampers-section {
  margin-bottom: 30px;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 18px;
}

.section-title-wrap .gift-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 4px;
}

.section-title-wrap h2 {
  font-size: 1.35rem;
  color: var(--gold-bright);
  font-weight: 800;
  margin-bottom: 4px;
}

.section-title-wrap p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.hampers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.hamper-card {
  background: #140726;
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hamper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(245, 158, 11, 0.2);
}

.hamper-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.hamper-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hamper-card:hover .hamper-img-wrap img {
  transform: scale(1.05);
}

.hamper-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--crimson-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hamper-discount {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #15803d;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
}

.hamper-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.hamper-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hamper-rating {
  font-size: 0.75rem;
  color: #fbbf24;
  margin-bottom: 8px;
  font-weight: 600;
}

.hamper-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  margin-top: auto;
}

.hamper-price-now {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--gold-bright);
}

.hamper-price-was {
  font-size: 0.85rem;
  color: #64748b;
  text-decoration: line-through;
}

.amazon-loot-btn {
  background: linear-gradient(135deg, #ff9900 0%, #e68a00 100%);
  color: #111827;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 12px 14px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s, filter 0.15s;
}

.amazon-loot-btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Sponsored Ad Slot */
.sponsored-ad-slot {
  margin-bottom: 30px;
  text-align: center;
}

.ad-label {
  font-size: 0.65rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.ad-container-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.sponsored-direct-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(220, 38, 38, 0.18) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 14px 18px;
  border-radius: 14px;
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 0.92rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: bannerGlow 2.5s infinite alternate;
}

@keyframes bannerGlow {
  0% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 22px rgba(245, 158, 11, 0.5); }
}

.sponsored-direct-banner:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(220, 38, 38, 0.3) 100%);
}

.banner-sparkle {
  font-size: 1.1rem;
}

/* Footer */
.festive-footer {
  text-align: center;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  padding-top: 24px;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-sub {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

/* Toast Bar */
.toast-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e1b4b;
  border: 1.5px solid #f59e0b;
  color: #fff;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
  z-index: 10000;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
}

.toast-bar.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==============================================
   PRE-SHARE 3-SECOND FESTIVE INTERSTITIAL MODAL
   ============================================== */
.pre-share-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 1;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pre-share-modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pre-share-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 14, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.pre-share-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #18092f 0%, #0d031c 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-radius: 28px;
  padding: 24px 20px 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 158, 11, 0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.pre-share-header {
  margin-bottom: 16px;
}

.pre-share-diya-badge {
  font-size: 2.2rem;
  margin-bottom: 6px;
  animation: diyaGlowPulse 1.6s infinite ease-in-out;
}

@keyframes diyaGlowPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 22px rgba(245, 158, 11, 0.95));
  }
}

.pre-share-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gold-bright);
  font-family: 'Poppins', sans-serif;
  margin-bottom: 4px;
}

.pre-share-sub {
  font-size: 0.82rem;
  color: #cbd5e1;
}

/* Circular Animated SVG Countdown */
.countdown-circle-box {
  position: relative;
  width: 86px;
  height: 86px;
  margin: 4px auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.countdown-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.countdown-bg-ring {
  fill: none;
  stroke: rgba(245, 158, 11, 0.15);
  stroke-width: 6;
}

.countdown-progress-ring {
  fill: none;
  stroke: #f59e0b;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.countdown-number {
  position: absolute;
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  font-family: 'Rozha One', serif;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.9);
  animation: numberPop 1s ease-in-out infinite;
}

@keyframes numberPop {
  0% { transform: scale(1.2); opacity: 0.8; }
  50% { transform: scale(1); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* Deal / Ad Box */
.pre-share-ad-box {
  width: 100%;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 18px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.pre-share-ad-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.pre-share-deal-card {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  text-align: left;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 12px;
  border-radius: 14px;
  transition: transform 0.15s, background 0.15s;
}

.pre-share-deal-card:hover {
  transform: translateY(-2px);
  background: rgba(15, 23, 42, 0.9);
}

.deal-emoji {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.deal-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.deal-info strong {
  font-size: 0.82rem;
  color: #f8fafc;
  line-height: 1.25;
}

.deal-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: #22c55e;
}

/* Actions */
.pre-share-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skip-countdown-btn {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, filter 0.15s;
}

.skip-countdown-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.cancel-countdown-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 6px;
}

.cancel-countdown-btn:hover {
  color: #e2e8f0;
}

/* Mobile Responsive Tweaks */
@media (max-width: 480px) {
  .glowing-3d-name {
    font-size: 2.3rem;
  }
  .shubh-calligraphy {
    font-size: 2.1rem;
  }
  .curtain-sender-name {
    font-size: 2rem;
  }
  .card-hero-box {
    padding: 24px 14px;
  }
  .shayari-line {
    font-size: 0.95rem;
  }
}
