:root {
  --bg-dark: #070312;
  --bg-party: #170936;
  --gold-bright: #ffd700;
  --gold-soft: #fef08a;
  --neon-pink: #ff2e93;
  --neon-cyan: #00f5d4;
  --neon-lime: #34d399;
  --neon-purple: #a855f7;
  --text-light: #f8fafc;
  --text-muted: #cbd5e1;
  --font-serif-display: 'Cinzel Decorative', 'Didot', 'Bodoni MT', 'Optima', 'Georgia', serif;
  --font-script: 'Snell Roundhand', 'Apple Chancery', 'Brush Script MT', 'Segoe Script', cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-light);
  background: radial-gradient(circle at 50% 15%, #160a2c 0%, #090414 60%, #030108 100%);
  overflow-x: hidden;
  scroll-behavior: smooth;
  transition: background 0.8s ease;
}

/* Party Room Lit State (When Glow Sticks & Candles Ignite) */
body.party-lit {
  background: radial-gradient(circle at 50% 10%, #3b0d54 0%, #171238 42%, #2e0927 78%, #070412 100%);
}

/* Celebratory Fireworks Mode (After Candles Blown Out!) */
body.candles-blown {
  background: radial-gradient(circle at 50% 10%, #4c1d95 0%, #311042 40%, #0f172a 85%, #05020d 100%);
}

/* Fireworks, Confetti & Floating Pop-Balloons Canvas */
#partyCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  pointer-events: none;
}

/* =========================================================================
   TOP PARTY BUNTING & NEON BULBS
   ========================================================================= */
.party-bunting {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 32;
  pointer-events: none;
}

.bunting-flags {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding-top: 2px;
}

.flag {
  width: 26px;
  height: 30px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 3px;
  font-size: 0.68rem;
  font-weight: 900;
  color: #111827;
  opacity: 0.85;
  transform-origin: top center;
  animation: swayFlag 2.2s infinite alternate ease-in-out;
}

.flag.f-pink { background: #ff2e93; color: #fff; }
.flag.f-gold { background: #ffd700; }
.flag.f-cyan { background: #00f5d4; }
.flag.f-lime { background: #34d399; }
.flag.f-purple { background: #c084fc; color: #fff; }
.flag.f-spacer { background: transparent; color: #ffd700; clip-path: none; font-size: 0.9rem; }

@keyframes swayFlag {
  0% { transform: rotate(-3deg); }
  100% { transform: rotate(3deg); }
}

.neon-bulbs {
  display: flex;
  justify-content: space-around;
  margin-top: -6px;
}

.n-bulb {
  width: 10px;
  height: 14px;
  border-radius: 50%;
  animation: neonTwinkle 1s infinite alternate ease-in-out;
}

.n-bulb.pink { background: #ff2e93; box-shadow: 0 0 14px #ff2e93, 0 0 26px #ff2e93; }
.n-bulb.cyan { background: #00f5d4; box-shadow: 0 0 14px #00f5d4, 0 0 26px #00f5d4; animation-delay: 0.25s; }
.n-bulb.gold { background: #ffd700; box-shadow: 0 0 14px #ffd700, 0 0 26px #ffd700; animation-delay: 0.5s; }
.n-bulb.lime { background: #34d399; box-shadow: 0 0 14px #34d399, 0 0 26px #34d399; animation-delay: 0.75s; }
.n-bulb.purple { background: #a855f7; box-shadow: 0 0 14px #a855f7, 0 0 26px #a855f7; animation-delay: 0.4s; }

@keyframes neonTwinkle {
  0% { opacity: 0.45; transform: scale(0.88); }
  100% { opacity: 1; transform: scale(1.15); }
}

/* =========================================================================
   TOP FLOATING CONTROLS BAR
   ========================================================================= */
.top-controls {
  position: fixed;
  top: 40px;
  left: 0;
  width: 100%;
  z-index: 40;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 10px;
  pointer-events: none;
}

.control-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(15, 10, 34, 0.9);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-soft);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  transition: transform 0.18s ease, background 0.2s ease;
}

.control-pill:hover {
  transform: translateY(-2px);
}

.music-btn.playing {
  background: linear-gradient(135deg, #ff2e93, #9d174d);
  color: #fff;
  border-color: var(--gold-bright);
}

.song-btn {
  background: linear-gradient(135deg, #1e1b4b, #311042);
  color: #67e8f9;
  border-color: #00f5d4;
}

.balloon-btn {
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  border-color: #6ee7b7;
}

.firework-btn {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #111827;
  border-color: #fff;
  font-weight: 800;
}

/* =========================================================================
   STEP 1: DARK ROOM GLOW-STICK ENTRANCE OVERLAY
   ========================================================================= */
.entrance-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at center, #1b0a33 0%, #090314 70%, #030108 100%);
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.entrance-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entrance-content {
  max-width: 490px;
  width: 100%;
  text-align: center;
}

.entrance-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 46, 147, 0.18);
  border: 1px solid rgba(255, 46, 147, 0.55);
  color: #f9a8d4;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.entrance-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.6rem, 5vw, 2.3rem);
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 0%, #fde68a 55%, #ff2e93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.entrance-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 30px;
}

.glowstick-trigger-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  user-select: none;
  outline: none;
}

.neon-aura-ring {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.38) 0%, rgba(255, 46, 147, 0.28) 50%, transparent 72%);
  top: -18px;
  animation: pulseNeonRing 1.8s infinite alternate;
}

@keyframes pulseNeonRing {
  0% { transform: scale(0.9); opacity: 0.65; }
  100% { transform: scale(1.18); opacity: 1; }
}

.glowsticks-svg {
  width: 155px;
  height: 155px;
  display: block;
  filter: drop-shadow(0 0 18px rgba(255, 46, 147, 0.65)) drop-shadow(0 0 24px rgba(0, 245, 212, 0.55));
  animation: waveCrossedSticks 1.6s infinite alternate ease-in-out;
}

@keyframes waveCrossedSticks {
  0% { transform: rotate(-6deg) scale(0.96); }
  100% { transform: rotate(6deg) scale(1.06); }
}

.tap-glow-cta {
  margin-top: 22px;
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2e93 0%, #f59e0b 55%, #00f5d4 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.98rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  box-shadow: 0 10px 28px rgba(255, 46, 147, 0.5);
  border: 2px solid #ffffff;
  transition: transform 0.2s ease;
}

.glowstick-trigger-wrap:hover .tap-glow-cta {
  transform: scale(1.06);
}

/* =========================================================================
   MAIN BIRTHDAY CONTAINER & HERO CARD
   ========================================================================= */
.main-container {
  position: relative;
  z-index: 15;
  max-width: 660px;
  margin: 0 auto;
  padding: 88px 14px 48px;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.main-container.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  padding: 0;
}

.birthday-card {
  position: relative;
  background: linear-gradient(165deg, rgba(24, 12, 48, 0.92) 0%, rgba(12, 8, 28, 0.96) 55%, rgba(42, 10, 36, 0.92) 100%);
  border: 2px solid rgba(255, 215, 0, 0.6);
  border-radius: 28px;
  padding: 28px 18px 24px;
  text-align: center;
  box-shadow: 0 20px 65px rgba(255, 46, 147, 0.22), inset 0 0 40px rgba(0, 245, 212, 0.08);
  backdrop-filter: blur(14px);
  margin-bottom: 22px;
  overflow: hidden;
}

.card-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--gold-bright);
  border-style: solid;
  opacity: 0.75;
  pointer-events: none;
}
.card-corner.top-left { top: 12px; left: 12px; border-width: 2px 0 0 2px; border-top-left-radius: 10px; }
.card-corner.top-right { top: 12px; right: 12px; border-width: 2px 2px 0 0; border-top-right-radius: 10px; }
.card-corner.bottom-left { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; border-bottom-left-radius: 10px; }
.card-corner.bottom-right { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; border-bottom-right-radius: 10px; }

.vip-crown-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: var(--gold-soft);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sender-spotlight { margin-bottom: 6px; }

.sender-name {
  font-family: var(--font-serif-display);
  font-size: clamp(1.7rem, 5.8vw, 2.5rem);
  font-weight: 900;
  line-height: 1.2;
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 45%, #fbbf24 85%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(251, 191, 36, 0.38));
  word-break: break-word;
}

.wishes-verb {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 4px;
}

.festival-headline { margin: 4px 0 14px; }

.script-accent {
  display: block;
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  color: #ff2e93;
  text-shadow: 0 0 22px rgba(255, 46, 147, 0.7);
  line-height: 1;
  margin-bottom: -2px;
}

.main-birthday-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.85rem, 6.8vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  background: linear-gradient(90deg, #00f5d4 0%, #fef08a 50%, #ff2e93 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  word-break: break-word;
}

.sub-birthday-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fde68a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* =========================================================================
   INTERACTIVE CAKE, CANDLES, GLOW STICKS & BALLOON POP ZONE
   ========================================================================= */
.cake-stage-box {
  margin: 12px auto 18px;
  padding: 16px 12px;
  border-radius: 24px;
  background: rgba(8, 5, 20, 0.65);
  border: 1.5px solid rgba(255, 215, 0, 0.28);
}

.interactive-status-pill {
  display: inline-block;
  margin-bottom: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 46, 147, 0.25), rgba(0, 245, 212, 0.2));
  border: 1px solid rgba(255, 215, 0, 0.5);
  color: #fef08a;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.25s ease, background 0.25s ease;
}

.interactive-status-pill.pop {
  transform: scale(1.05);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

.stage-action-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stage-pill {
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.stage-pill:hover {
  transform: translateY(-2px);
}

.stage-pill.active-glow {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  border-color: #f9a8d4;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.5);
}

.stage-pill.blow-pill {
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #111827;
  border-color: #fff;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.55);
  animation: pulseBlowBtn 1.3s infinite alternate;
}

.stage-pill.cut-pill {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  border-color: #a7f3d0;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.55);
}

.stage-pill.hidden {
  display: none;
}

@keyframes pulseBlowBtn {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.05); }
}

.cake-and-glowsticks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 14px;
}

.side-glowstick {
  cursor: pointer;
  user-select: none;
  filter: drop-shadow(0 0 14px rgba(255, 46, 147, 0.6));
}

.side-glowstick.left-wand {
  animation: waveLeftWand 1.1s infinite alternate ease-in-out;
}

.side-glowstick.right-wand {
  filter: drop-shadow(0 0 14px rgba(0, 245, 212, 0.6));
  animation: waveRightWand 1.1s infinite alternate-reverse ease-in-out;
}

.cake-stage-box.hyper-glow .side-glowstick.left-wand {
  animation-duration: 0.35s;
}
.cake-stage-box.hyper-glow .side-glowstick.right-wand {
  animation-duration: 0.35s;
}

@keyframes waveLeftWand {
  0% { transform: rotate(-22deg) translateY(4px); }
  100% { transform: rotate(14deg) translateY(-8px); }
}

@keyframes waveRightWand {
  0% { transform: rotate(22deg) translateY(4px); }
  100% { transform: rotate(-14deg) translateY(-8px); }
}

.cake-wrapper {
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: transform 0.25s ease;
}

.cake-wrapper:hover {
  transform: scale(1.03);
}

.cake-wrapper.cake-sliced {
  animation: cakeSliceBounce 0.7s ease;
}

@keyframes cakeSliceBounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.08) rotate(-2deg); }
  75% { transform: scale(1.04) rotate(2deg); }
}

.birthday-cake-svg {
  width: 230px;
  height: 240px;
  display: block;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.55));
}

@media (max-width: 440px) {
  .birthday-cake-svg {
    width: 190px;
    height: 200px;
  }
}

/* Candle Flame & Smoke States */
.candle-unit {
  cursor: pointer;
}

.candle-flame {
  transform-origin: 5px 18px;
  animation: flickerFlame 0.35s infinite alternate ease-in-out;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes flickerFlame {
  0% { transform: scale(0.94) rotate(-3deg); filter: drop-shadow(0 0 8px #facc15); }
  100% { transform: scale(1.08) rotate(3deg); filter: drop-shadow(0 0 14px #f97316); }
}

.candle-smoke {
  opacity: 0;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

/* When a candle is blown out (.blown-out) */
.candle-unit.blown-out .candle-flame {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
}

.candle-unit.blown-out .candle-smoke {
  opacity: 0.85;
  animation: smokeRise 1.6s ease-out forwards;
}

@keyframes smokeRise {
  0% { stroke-dashoffset: 40; opacity: 0.9; transform: translateY(0); }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-16px); }
}

.candles-master-glow {
  transition: opacity 0.5s ease;
}

.cake-wrapper.all-blown .candles-master-glow {
  opacity: 0;
}

/* =========================================================================
   BALLOON POP PARTY ZONE
   ========================================================================= */
.balloon-pop-zone {
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 215, 0, 0.3);
}

.balloon-zone-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-soft);
  margin-bottom: 12px;
}

.balloon-stage-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 78px;
}

.stage-balloon {
  position: relative;
  width: 58px;
  height: 70px;
  border-radius: 50% 50% 50% 50% / 45% 45% 55% 55%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: inset -6px -6px 14px rgba(0, 0, 0, 0.3), 0 8px 18px rgba(0, 0, 0, 0.4);
  animation: floatBalloon 2.2s infinite alternate ease-in-out;
  transition: transform 0.15s ease;
}

.stage-balloon:hover {
  transform: scale(1.12);
}

.stage-balloon.b-pink { background: radial-gradient(circle at 30% 30%, #ff85c0, #ff2e93 65%, #9d174d); animation-delay: 0s; }
.stage-balloon.b-gold { background: radial-gradient(circle at 30% 30%, #fef08a, #f59e0b 65%, #b45309); color: #111827; animation-delay: 0.3s; }
.stage-balloon.b-cyan { background: radial-gradient(circle at 30% 30%, #a5f3fc, #06b6d4 65%, #0e7490); animation-delay: 0.6s; }
.stage-balloon.b-lime { background: radial-gradient(circle at 30% 30%, #a7f3d0, #10b981 65%, #047857); animation-delay: 0.9s; }
.stage-balloon.b-purple { background: radial-gradient(circle at 30% 30%, #e9d5ff, #a855f7 65%, #6b21a8); animation-delay: 0.45s; }

.b-shine {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transform: rotate(-25deg);
  pointer-events: none;
}

.b-knot {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  background: inherit;
  clip-path: polygon(50% 0, 0 100%, 100% 100%);
}

.stage-balloon.popped {
  transform: scale(1.6);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

@keyframes floatBalloon {
  0% { transform: translateY(0) rotate(-3deg); }
  100% { transform: translateY(-8px) rotate(3deg); }
}

.refill-balloons-btn {
  margin-top: 10px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #00f5d4;
  background: rgba(0, 245, 212, 0.18);
  color: #67e8f9;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.refill-balloons-btn.hidden {
  display: none;
}

/* Secret Birthday Wish Capsule */
.wish-capsule-box {
  margin: 0 auto 16px;
  max-width: 520px;
}

.capsule-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, rgba(255, 46, 147, 0.25), rgba(168, 85, 247, 0.25));
  color: #fef08a;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.capsule-btn:hover {
  transform: scale(1.02);
}

.capsule-reveal {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #ecfdf5;
  font-size: 0.9rem;
  font-weight: 600;
}

.capsule-reveal.hidden {
  display: none;
}

/* Wish Quote Box */
.wish-quote-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 0 auto 8px;
  max-width: 540px;
}

.wish-quote-text {
  font-size: 0.98rem;
  line-height: 1.58;
  color: #f1f5f9;
  font-style: italic;
}

.wish-quote-footer {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--gold-soft);
}

/* =========================================================================
   STEP 3: CREATE & SHARE CARD
   ========================================================================= */
.creator-card {
  background: linear-gradient(165deg, rgba(26, 14, 54, 0.94) 0%, rgba(12, 8, 28, 0.98) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 26px;
  padding: 26px 20px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
  margin-bottom: 22px;
}

.creator-header {
  text-align: center;
  margin-bottom: 18px;
}

.creator-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 46, 147, 0.22);
  border: 1px solid rgba(255, 46, 147, 0.5);
  color: #f9a8d4;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.creator-title {
  font-family: var(--font-serif-display);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}

.creator-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.wish-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.input-group label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.req { color: #ff2e93; }
.opt { color: #67e8f9; font-weight: 500; font-size: 0.75rem; }

.input-group input,
.input-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 5, 20, 0.9);
  color: #fff;
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

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

.btn-preview {
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 100%);
  color: #1c1917;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35);
}

.share-buttons-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .share-buttons-grid { grid-template-columns: 1fr; }
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.35);
  color: var(--gold-soft);
}

.btn-native-share {
  background: linear-gradient(135deg, #ff2e93 0%, #9d174d 100%);
  color: #fff;
}

.btn-icon { width: 20px; height: 20px; flex-shrink: 0; }

.generated-link-box {
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 215, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.link-label { font-size: 0.74rem; color: var(--text-muted); }
.link-url { font-size: 0.8rem; color: var(--gold-bright); word-break: break-all; }

/* =========================================================================
   STEP 4: HIGH-IMPACT RAREGEAR.IN BIRTHDAY GIFT STORE BANNER
   ========================================================================= */
.gift-shop-card {
  position: relative;
  background: linear-gradient(135deg, #4c0519 0%, #1e1b4b 50%, #064e3b 100%);
  border: 2px solid #ffd700;
  border-radius: 26px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 215, 0, 0.2);
  overflow: hidden;
}

.gift-shop-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.22), transparent 70%);
  pointer-events: none;
}

.gift-shop-content {
  position: relative;
  z-index: 2;
}

.gift-floating-icons {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 1.65rem;
  margin-bottom: 10px;
  animation: floatIcons 2.4s infinite alternate ease-in-out;
}

@keyframes floatIcons {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.gift-shop-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 215, 0, 0.2);
  border: 1px solid #ffd700;
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.gift-shop-title {
  font-family: var(--font-serif-display);
  font-size: clamp(1.4rem, 4.5vw, 1.85rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.gift-shop-desc {
  font-size: 0.92rem;
  color: #e2e8f0;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 14px;
}

.gift-tags-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
}

.gift-tag-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
}

.btn-gift-shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #ea580c 100%);
  color: #111827;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.98rem;
  border: 2px solid #ffffff;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gift-shop:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(255, 215, 0, 0.7);
}

.page-footer {
  text-align: center;
  margin-top: 26px;
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.75);
}

.page-footer a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: #10b981;
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 65;
  pointer-events: none;
}

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