/* ==========================================================================
   ✨ ULTRA-CLEAN LUXURY MINIMALIST STYLES - IMAN AWAIS 22ND BIRTHDAY ✨
   Refined Typography, No-Scrollbar Architecture, Compact Proportions, Tactile UX
   ========================================================================== */

/* Design Tokens */
:root {
  --bg-dark: #09090e;
  --bg-illuminated: radial-gradient(circle at 50% 25%, #1c1429 0%, #0d0a14 60%, #06050a 100%);
  --gold-accent: #e6c875;
  --gold-light: #f7e6a7;
  --gold-muted: rgba(230, 200, 117, 0.18);
  --rose-subtle: #f8afbe;
  --text-primary: #ffffff;
  --text-secondary: #c9c3d4;
  --text-muted: #7e788c;
  
  --glass-card: rgba(255, 255, 255, 0.035);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-gold: rgba(230, 200, 117, 0.3);
  --glass-blur: blur(24px);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
  --font-cursive: 'Dancing Script', cursive;
  --font-script: 'Caveat', cursive;
  --font-display: 'Cinzel', serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s var(--ease-out-expo);
}

/* Universal Zero-Scrollbar Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

*::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
div::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  overflow-x: hidden;
  scrollbar-width: none;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 1.2s ease;
  letter-spacing: -0.01em;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body.room-dark {
  background: radial-gradient(circle at 50% 40%, #110d18 0%, #08060c 70%, #030205 100%);
}

body.room-illuminated {
  background: var(--bg-illuminated);
}

/* Background Canvas Elements */
#fireworks-canvas,
#confetti-canvas,
#sparkle-cursor-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 99;
}

#sparkle-cursor-canvas {
  z-index: 98;
}

/* Ambient Radial Mesh Glow */
.ambient-glow-mesh {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230, 200, 117, 0.08) 0%, rgba(248, 175, 190, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}

/* Minimal Stars */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.star {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
  animation: twinkle var(--duration, 3s) infinite alternate ease-in-out;
}

@keyframes twinkle {
  0% { opacity: 0.2; transform: scale(0.7); }
  100% { opacity: 0.9; transform: scale(1.2); }
}

/* Floating Hearts Background */
.floating-hearts-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  bottom: -30px;
  color: rgba(248, 175, 190, 0.2);
  animation: floatUpHeart 14s linear infinite;
}

@keyframes floatUpHeart {
  0% { transform: translateY(0) rotate(0deg); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.5; }
  100% { transform: translateY(-110vh) rotate(180deg); opacity: 0; }
}

/* Minimal Fairy Lights */
.fairy-lights {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 30px;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  transform: translateY(-15px);
  transition: var(--transition-smooth);
}

body.room-illuminated .fairy-lights {
  opacity: 1;
  transform: translateY(0);
}

.fairy-lights .wire {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bulbs-row {
  display: flex;
  justify-content: space-around;
  padding: 4px 16px;
}

.bulb {
  width: 8px;
  height: 11px;
  border-radius: 50% 50% 40% 40%;
  background: var(--gold-light);
  box-shadow: 0 0 10px 2px rgba(230, 200, 117, 0.6);
  animation: bulbGlow 2s infinite alternate ease-in-out;
}

.bulb:nth-child(2n) { background: #ffc4d6; box-shadow: 0 0 10px 2px rgba(255, 196, 214, 0.6); animation-delay: 0.5s; }
.bulb:nth-child(3n) { background: #d0f4de; box-shadow: 0 0 10px 2px rgba(208, 244, 222, 0.6); animation-delay: 1s; }

@keyframes bulbGlow {
  0% { opacity: 0.4; filter: brightness(0.9); }
  100% { opacity: 1; filter: brightness(1.4); }
}

/* ==========================================================================
   MINIMALIST FLOATING AUDIO PILL (Bottom Right)
   ========================================================================== */
.minimal-audio-pill {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 14, 25, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 40px;
  padding: 6px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.audio-play-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-accent);
  border: none;
  color: #120e19;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.audio-play-toggle:hover {
  transform: scale(1.06);
}

.audio-track-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.track-title {
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

.equalizer-minimal {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 8px;
}

.equalizer-minimal span {
  width: 2px;
  background: var(--gold-accent);
  border-radius: 1px;
  height: 2px;
  transition: height 0.2s ease;
}

.equalizer-minimal.playing span:nth-child(1) { animation: eqMini 0.7s infinite alternate ease; }
.equalizer-minimal.playing span:nth-child(2) { animation: eqMini 0.5s infinite alternate ease 0.2s; }
.equalizer-minimal.playing span:nth-child(3) { animation: eqMini 0.8s infinite alternate ease 0.4s; }
.equalizer-minimal.playing span:nth-child(4) { animation: eqMini 0.6s infinite alternate ease 0.1s; }

@keyframes eqMini {
  0% { height: 2px; }
  100% { height: 8px; }
}

.audio-options-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.audio-options-btn:hover {
  color: #fff;
}

/* Audio Settings Drawer */
.audio-settings-drawer {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  width: 250px;
  background: rgba(18, 14, 25, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--card-shadow);
  animation: fadeInScale 0.3s ease;
}

.drawer-header {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  font-weight: 600;
}

.vibe-capsule-row {
  display: flex;
  gap: 6px;
}

.vibe-capsule {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 5px 3px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.vibe-capsule.active {
  background: rgba(230, 200, 117, 0.15);
  border-color: var(--gold-accent);
  color: #fff;
}

.volume-slider-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.volume-slider-box input[type="range"] {
  flex: 1;
  accent-color: var(--gold-accent);
  height: 3px;
  cursor: pointer;
}

.custom-track-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--gold-accent);
  border: 1px dashed var(--glass-border-gold);
  border-radius: 8px;
  padding: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-track-upload:hover {
  background: rgba(230, 200, 117, 0.08);
}

/* ==========================================================================
   TOP HEADER & CLEAN STEPPER
   ========================================================================== */
.clean-app-header {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  padding: 12px 16px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.header-monogram {
  display: flex;
  align-items: center;
  gap: 8px;
}

.monogram-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-accent);
  background: var(--gold-muted);
  border: 1px solid rgba(230, 200, 117, 0.35);
  padding: 2px 8px;
  border-radius: 16px;
}

.monogram-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.clean-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 30px;
  padding: 4px 8px;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
  gap: 4px;
}

.step-dot {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-smooth);
}

.step-dot span {
  font-family: var(--font-display);
  font-size: 0.62rem;
  opacity: 0.6;
}

.step-dot.active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.step-dot.completed {
  color: var(--gold-accent);
}

.step-divider {
  width: 6px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* ==========================================================================
   MAIN STAGE CONTAINER
   ========================================================================== */
.clean-main-container {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 800px;
  min-height: calc(100dvh - 110px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px 75px;
}

.clean-stage {
  display: none;
  width: 100%;
  animation: fadeInScale 0.5s var(--ease-out-expo) forwards;
}

.clean-stage.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.96) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.clean-center-box {
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-indicator-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--gold-accent);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.clean-stage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.clean-stage-subtitle {
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  color: var(--text-secondary);
  max-width: 440px;
  margin-bottom: 16px;
  line-height: 1.45;
  font-weight: 300;
}

/* Minimal Buttons */
.clean-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gold-accent);
  color: #0d0a14;
  font-family: var(--font-sans);
  font-size: clamp(0.88rem, 2.6vw, 0.96rem);
  font-weight: 600;
  padding: 11px 24px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(230, 200, 117, 0.25);
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease;
  min-height: 44px;
}

.clean-primary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 26px rgba(230, 200, 117, 0.38);
}

.clean-primary-btn:active {
  transform: translateY(1px);
}

.clean-secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 28px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.clean-secondary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pulse-subtle {
  animation: pulseSubtle 2.5s infinite ease-in-out;
}

@keyframes pulseSubtle {
  0%, 100% { box-shadow: 0 0 0 0 rgba(230, 200, 117, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(230, 200, 117, 0); }
}

.next-step-btn {
  margin-top: 16px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   STAGE 0: EDITORIAL WELCOME CARD (COMPACT, NO SCROLLER)
   ========================================================================== */
.editorial-card {
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
  padding: clamp(20px, 4.5vw, 36px);
  text-align: center;
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.sub-label-pill {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-accent);
  background: var(--gold-muted);
  padding: 3px 10px;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(230, 200, 117, 0.25);
}

.editorial-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.editorial-chapter {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.clean-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px 6px;
  margin-bottom: 16px;
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--gold-accent);
}

.stat-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.stat-sep {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.08);
}

.editorial-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.85rem, 2.3vw, 0.95rem);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
  font-weight: 300;
}

/* ==========================================================================
   STAGE 1: MINIMAL TOGGLE SWITCH & BANNER
   ========================================================================== */
.minimal-switch-wrap {
  margin: 10px 0;
}

.sleek-switch-box {
  position: relative;
  width: 64px;
  height: 94px;
  background: #15111c;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  transition: transform 0.2s ease;
}

.sleek-switch-box:hover {
  transform: scale(1.04);
}

.sleek-switch-knob {
  position: absolute;
  bottom: 8px;
  width: 42px;
  height: 36px;
  background: linear-gradient(180deg, #2e263a, #1a1524);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s var(--ease-out-expo), background 0.3s ease;
}

.sleek-switch-box.turned-on .sleek-switch-knob {
  transform: translateY(-38px);
  background: linear-gradient(180deg, var(--gold-light), var(--gold-accent));
  box-shadow: 0 0 14px rgba(230, 200, 117, 0.6);
}

.switch-labels {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--text-muted);
  font-weight: 700;
}

.sleek-switch-box.turned-on .switch-labels span:last-child {
  color: var(--gold-accent);
}

.action-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.clean-banner-box {
  display: none;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  width: 100%;
}

.clean-banner-box.visible {
  display: flex;
  animation: fadeInScale 0.7s var(--ease-out-expo) forwards;
}

.banner-gold-letters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px;
  margin-bottom: 8px;
}

.banner-gold-letters span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(18px, 4.8vw, 24px);
  height: clamp(24px, 6vw, 32px);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.7rem, 2.2vw, 0.85rem);
}

.banner-gold-letters span.highlight {
  background: var(--gold-muted);
  border-color: rgba(230, 200, 117, 0.4);
  color: var(--gold-accent);
}

.banner-gold-letters span.space-char {
  width: 6px;
  background: transparent;
  border: none;
}

.iman-signature-title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 600;
  color: #ffffff;
  margin: 2px 0;
}

/* ==========================================================================
   STAGE 2: BALLOONS MINIGAME
   ========================================================================== */
.minimal-counter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.progress-bar-minimal {
  width: 70px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gold-accent);
  transition: width 0.3s ease;
}

.clean-balloons-arena {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 240px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 8px;
}

.balloon-item {
  position: absolute;
  width: 52px;
  height: 68px;
  border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  cursor: pointer;
  transition: transform 0.2s ease;
  animation: floatBalloon 4s infinite alternate ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset -3px -3px 6px rgba(0, 0, 0, 0.2), inset 5px 5px 8px rgba(255, 255, 255, 0.4), 0 6px 14px rgba(0,0,0,0.3);
}

.balloon-item::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 4px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.balloon-item .string {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.3);
  transform-origin: top center;
  animation: swayString 2s infinite alternate ease-in-out;
}

.balloon-item:hover { transform: scale(1.08); }

.balloon-item.popping {
  animation: popEffect 0.3s forwards ease-out !important;
}

@keyframes popEffect {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

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

@keyframes swayString {
  0% { transform: rotate(-6deg); }
  100% { transform: rotate(6deg); }
}

/* Toast */
.clean-toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: rgba(20, 16, 28, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-accent);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 200;
  max-width: 90%;
  width: 300px;
  transition: transform 0.4s var(--ease-out-expo);
  pointer-events: none;
}

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

.toast-indicator-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-accent);
  flex-shrink: 0;
}

.toast-text-wrap strong {
  display: block;
  font-size: 0.78rem;
  color: var(--gold-accent);
}

.toast-text-wrap p {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   STAGE 3: CLEAN 3D CAKE & CANDLE CEREMONY
   ========================================================================== */
.clean-cake-viewport {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin: 6px 0 14px;
}

.minimal-cake-plate {
  position: relative;
  width: 220px;
  height: 12px;
  background: radial-gradient(ellipse at center, #ffffff 0%, #c4bece 70%, #9a94a6 100%);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
}

.minimal-cake-body {
  position: absolute;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clean-number-topper {
  display: flex;
  gap: 6px;
  position: absolute;
  top: -70px;
  z-index: 5;
}

.clean-number-topper span {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold-accent);
  text-shadow: 0 0 14px rgba(230, 200, 117, 0.7);
  animation: cleanGlow 2s infinite alternate ease-in-out;
}

@keyframes cleanGlow {
  0% { transform: scale(1); filter: brightness(1); }
  100% { transform: scale(1.05); filter: brightness(1.25); }
}

.candles-cluster {
  display: flex;
  gap: 26px;
  position: absolute;
  top: -34px;
  z-index: 4;
}

.minimal-candle {
  position: relative;
  width: 7px;
  height: 28px;
  background: linear-gradient(180deg, #ffffff, #f0e6f6);
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.flame {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 15px;
  background: radial-gradient(ellipse at 50% 80%, #fff 0%, #ffd166 40%, #ff5400 85%, transparent 100%);
  border-radius: 50% 50% 20% 20% / 60% 60% 40% 40%;
  filter: drop-shadow(0 0 7px #ff9e00);
  animation: flickerFlame 0.15s infinite alternate ease-in-out;
  transform-origin: bottom center;
}

@keyframes flickerFlame {
  0% { transform: translateX(-50%) scale(1) rotate(-2deg); }
  100% { transform: translateX(-50%) scale(1.06, 1.12) rotate(2deg); }
}

.flame.extinguished { display: none; }

.smoke {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  opacity: 0;
}

.smoke.puff { animation: smokePuff 1.2s forwards ease-out; }

@keyframes smokePuff {
  0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-60%) translateY(-35px) scale(3.5); filter: blur(4px); }
}

.cake-tier-clean {
  position: relative;
  border-radius: 6px 6px 3px 3px;
  box-shadow: inset 0 -3px 5px rgba(0,0,0,0.15), 0 3px 8px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tier-1 { width: 110px; height: 36px; background: #eed7e2; z-index: 3; }
.tier-2 { width: 150px; height: 42px; background: #d7e3ee; z-index: 2; margin-top: -3px; }
.tier-3 { width: 195px; height: 48px; background: #f2e6dc; z-index: 1; margin-top: -3px; }

.clean-frosting-rim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #ffffff;
  border-radius: 6px 6px 0 0;
}

.cake-gold-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #3b2c4a;
}

.clean-slice-plate {
  position: absolute;
  right: -20px;
  bottom: 0px;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  color: #120e19;
  font-size: 0.72rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  animation: slideOutPiece 0.6s var(--ease-out-expo) forwards;
  z-index: 8;
}

@keyframes slideOutPiece {
  0% { transform: scale(0) translateX(-8px); opacity: 0; }
  100% { transform: scale(1) translateX(0); opacity: 1; }
}

.clean-actions-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.action-btn-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   STAGE 4: WAX-SEALED SISTER LETTER (COMPACT, SHORT, NO SCROLLER)
   ========================================================================== */
.clean-envelope-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 400px;
  min-height: 290px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 6px 0 10px;
}

.clean-envelope-body {
  position: relative;
  width: clamp(270px, 85vw, 350px);
  height: 190px;
  background: #251d2f;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.6s var(--ease-out-expo);
}

.clean-envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-left: clamp(135px, 42.5vw, 175px) solid transparent;
  border-right: clamp(135px, 42.5vw, 175px) solid transparent;
  border-top: 95px solid #32283f;
  transform-origin: top center;
  transition: transform 0.6s ease;
  z-index: 5;
}

.clean-envelope-pocket {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 50%, #1e1727 100%);
  clip-path: polygon(0 0, 50% 50%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 12px 12px;
  z-index: 4;
}

.clean-wax-seal {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, var(--gold-light) 0%, var(--gold-accent) 70%, #996515 100%);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.25s ease;
}

.clean-wax-seal:hover {
  transform: translateX(-50%) scale(1.08);
}

.clean-wax-seal span {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  color: #4a3300;
  text-align: center;
  line-height: 1.1;
}

.clean-envelope-body.opened .clean-envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.clean-envelope-body.opened .clean-wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0);
}

.clean-letter-sheet {
  position: absolute;
  top: 10px;
  left: 5%;
  width: 90%;
  background: #fcfbfa;
  color: #1c1524;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(0);
  transition: transform 0.8s 0.3s var(--ease-out-expo);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.clean-envelope-body.opened .clean-letter-sheet {
  transform: translateY(-50px);
  opacity: 1;
  pointer-events: auto;
  z-index: 7;
}

.sheet-watermark {
  position: absolute;
  top: 6px;
  right: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.sheet-typewriter-text {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #3e3649;
  min-height: 75px;
  white-space: pre-line;
}

.sheet-sign-off {
  margin-top: 8px;
  border-top: 1px solid #eae5f0;
  padding-top: 6px;
  font-size: 0.75rem;
}

.handwritten-sign {
  display: block;
  font-family: var(--font-script);
  font-size: 1.15rem;
  color: #c9546d;
}

/* ==========================================================================
   STAGE 5: MINIMAL POLAROID MEMORIES
   ========================================================================== */
.clean-polaroid-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 12px;
  width: 100%;
}

.minimal-polaroid {
  perspective: 1000px;
  width: clamp(200px, 80vw, 220px);
  height: 270px;
  cursor: pointer;
}

.polaroid-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s var(--ease-out-expo);
  transform-style: preserve-3d;
}

.minimal-polaroid.flipped .polaroid-flipper {
  transform: rotateY(180deg);
}

.polaroid-front-side, .polaroid-back-side {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  background: #ffffff;
  border-radius: 10px;
  padding: 8px 8px 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: #120e19;
  overflow: hidden;
}

.polaroid-back-side {
  transform: rotateY(180deg);
  background: #faf8fc;
  justify-content: center;
  align-items: center;
  padding: 14px;
  text-align: center;
}

.polaroid-image-frame {
  position: relative;
  width: 100%;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1524;
}

.polaroid-real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.minimal-polaroid:hover .polaroid-real-photo {
  transform: scale(1.04);
}

.frame-tag {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

.polaroid-text-bottom {
  margin-top: 6px;
  text-align: left;
}

.polaroid-text-bottom h4 {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #120e19;
}

.polaroid-text-bottom p {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.touch-hint {
  display: block;
  font-size: 0.62rem;
  color: var(--gold-accent);
  font-weight: 600;
  margin-top: 2px;
}

.award-emoji { font-size: 1.6rem; margin-bottom: 2px; }
.award-rank { font-family: var(--font-display); font-size: 0.58rem; color: var(--gold-accent); font-weight: 700; letter-spacing: 1px; }
.polaroid-back-side h3 { font-family: var(--font-serif); font-size: 0.92rem; color: #120e19; margin: 2px 0 4px; }
.polaroid-back-side p { font-size: 0.72rem; color: #5a5266; line-height: 1.35; }
.award-rating { color: #f5b041; font-size: 0.72rem; margin-top: 4px; }

.clean-upload-hint {
  margin: 4px 0 8px;
}

.minimal-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 4px 10px;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.minimal-upload-label:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ==========================================================================
   STAGE 6: MYSTERY GIFTS & FINALE
   ========================================================================== */
.clean-gifts-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 6px 0 16px;
  width: 100%;
}

.minimal-gift-box {
  position: relative;
  width: clamp(200px, 80vw, 210px);
  height: 180px;
  background: #1d1627;
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.minimal-gift-box:hover {
  transform: translateY(-3px);
}

.gift-lid-minimal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 34px;
  background: #2b2138;
  border-radius: 14px 14px 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out-expo);
  z-index: 4;
}

.ribbon-knot { font-size: 1.2rem; margin-top: -4px; }

.gift-box-prompt {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 3;
}

.gift-unwrapped-voucher {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fdfbfd;
  color: #120e19;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 14px;
  opacity: 0;
  transform: scale(0.7);
  transition: all 0.4s var(--ease-out-expo);
  z-index: 5;
  overflow: hidden;
}

.minimal-gift-box.unwrapped .gift-lid-minimal {
  transform: translateY(-45px);
  opacity: 0;
}

.minimal-gift-box.unwrapped .gift-unwrapped-voucher {
  opacity: 1;
  transform: scale(1);
}

.voucher-icon { font-size: 1.4rem; margin-bottom: 3px; }
.gift-unwrapped-voucher h4 { font-family: var(--font-serif); font-size: 0.85rem; font-weight: 600; color: #120e19; margin-bottom: 2px; }
.gift-unwrapped-voucher p { font-size: 0.68rem; color: #625870; line-height: 1.3; }

/* Finale Card */
.clean-finale-card {
  background: var(--glass-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 30px);
  text-align: center;
  max-width: 520px;
  width: 100%;
  margin-top: 10px;
  animation: fadeInScale 0.7s var(--ease-out-expo) forwards;
  overflow: hidden;
}

.finale-crown { font-size: 2rem; margin-bottom: 3px; }
.finale-headline { font-family: var(--font-serif); font-size: clamp(1.5rem, 4.2vw, 2rem); color: #ffffff; margin-bottom: 6px; letter-spacing: -0.01em; }
.finale-text { font-size: clamp(0.82rem, 2.2vw, 0.92rem); color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; font-weight: 300; }

.screen-tap-notice {
  font-size: 0.72rem;
  color: var(--gold-accent);
  background: var(--gold-muted);
  padding: 4px 10px;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 14px;
}

.finale-actions-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile Clean Fit)
   ========================================================================== */
@media (max-width: 600px) {
  .clean-app-header {
    padding: 6px 8px 2px;
  }
  
  .clean-stepper {
    padding: 2px 4px;
  }

  .step-dot {
    font-size: 0.6rem;
    padding: 2px 4px;
  }

  .clean-main-container {
    padding: 8px 8px 70px;
  }

  .editorial-card {
    padding: 16px 12px;
    border-radius: 16px;
  }

  .minimal-audio-pill {
    bottom: 10px;
    right: 10px;
    padding: 4px 8px;
  }

  .track-title {
    font-size: 0.6rem;
  }
}
