/* Framer Light - Master Design System with Apple & Framer Grade UI Polish */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Brand Primary */
  --primary: #f43f5e;
  --primary-hover: #e11d48;
  --primary-active: #be123c;
  --primary-glow: rgba(244, 63, 94, 0.22);

  /* Secondary & Accents */
  --secondary: #8b5cf6;
  --accent: #ec4899;

  /* Surfaces & Backgrounds */
  --bg-light: #faf8fc;
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(244, 63, 94, 0.14);
  --card-border-hover: rgba(244, 63, 94, 0.38);

  /* Typography */
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --font-main: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-handwriting: 'Dancing Script', cursive;

  /* Elevation & System */
  --glass-blur: blur(28px);
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --radius-card: 32px;
  --radius-btn: 16px;
  --radius-chip: 9999px;
}

[data-theme="cosmic"] {
  --primary: #8b5cf6;
  --primary-glow: rgba(139, 92, 246, 0.25);
  --secondary: #3b82f6;
  --accent: #06b6d4;
  --card-border: rgba(139, 92, 246, 0.15);
  --card-border-hover: rgba(139, 92, 246, 0.4);
}

[data-theme="retro"] {
  --primary: #059669;
  --primary-glow: rgba(5, 150, 105, 0.25);
  --secondary: #f59e0b;
  --accent: #10b981;
  --card-border: rgba(5, 150, 105, 0.15);
  --card-border-hover: rgba(5, 150, 105, 0.4);
}

[data-theme="luxe"] {
  --primary: #d97706;
  --primary-glow: rgba(217, 119, 6, 0.25);
  --secondary: #f59e0b;
  --accent: #fbbf24;
  --card-border: rgba(217, 119, 6, 0.15);
  --card-border-hover: rgba(217, 119, 6, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Utility Hierarchy */
.type-display {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  line-height: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.type-h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.type-h2 {
  font-family: var(--font-main);
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
}

.type-body-lg {
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--text-body);
}

.type-body {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-body);
}

.type-caption {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Hide scrollbars cleanly across browsers */
.no-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Framer Light Spotlight Glass Card */
.framer-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  box-shadow: 0 25px 60px -15px rgba(244, 63, 94, 0.08), 0 0 0 1px rgba(244, 63, 94, 0.08), 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: border-color 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.framer-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(244, 63, 94, 0.06), transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.framer-card:hover::before {
  opacity: 1;
}

.framer-card:hover {
  border-color: var(--card-border-hover);
  transform: translateY(-2px);
  box-shadow: 0 35px 70px -15px rgba(244, 63, 94, 0.14), 0 0 35px -5px var(--primary-glow);
}

/* Glass Navigation Bar */
.framer-nav {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* Gradient Text Clipping */
.framer-gradient-text {
  background: linear-gradient(135deg, #0f172a 0%, #e11d48 55%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Framer Pill Badge */
.framer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(244, 63, 94, 0.2);
  box-shadow: 0 4px 15px rgba(244, 63, 94, 0.08);
  backdrop-filter: blur(12px);
}

.framer-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Shimmer Buttons */
.btn-framer-primary {
  position: relative;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-weight: 700;
  border: none;
  border-radius: 16px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 25px -5px var(--primary-glow);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.btn-framer-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.7s ease;
}

.btn-framer-primary:hover::after {
  transform: rotate(30deg) translateY(100%);
}

.btn-framer-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px -5px var(--primary-glow);
}

.btn-framer-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(244, 63, 94, 0.2);
  font-weight: 600;
  border-radius: 16px;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.btn-framer-secondary:hover {
  background: #ffffff;
  border-color: rgba(244, 63, 94, 0.4);
  transform: translateY(-1px);
}

/* Standardized Framer Form Inputs */
.framer-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(244, 63, 94, 0.2);
  background-color: #ffffff;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 600;
  transition: all var(--duration-fast) var(--ease-spring);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.framer-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow), 0 2px 8px rgba(244, 63, 94, 0.08);
  background-color: #ffffff;
}

.framer-input::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
  font-weight: 500;
}

/* Wax Seal Envelope Unboxing */
.envelope-wrapper {
  position: relative;
  width: 320px;
  max-width: 100%;
  height: 200px;
  margin: 60px auto 30px auto;
  cursor: pointer;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.envelope-wrapper:hover {
  transform: translateY(-4px) scale(1.02);
}

.envelope {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(244, 63, 94, 0.35), inset 0 2px 4px rgba(255, 255, 255, 0.3);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  overflow: visible;
}

.envelope-card-letter {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: 280px;
  height: 135px;
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
  z-index: 2;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  pointer-events: none;
}

.envelope.open .envelope-card-letter {
  transform: translateX(-50%) translateY(-115px);
  z-index: 4;
}

.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 160px solid transparent;
  border-right: 160px solid transparent;
  border-top: 110px solid #e11d48;
  transform-origin: top;
  transition: transform 0.6s ease 0.1s;
  z-index: 5;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.envelope.open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

.wax-seal {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: radial-gradient(circle, #fbbf24 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(217, 119, 6, 0.6), inset 0 2px 4px rgba(255, 255, 255, 0.5);
  z-index: 6;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.1);
}

.envelope.open .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(0.2);
  pointer-events: none;
}

/* Scratch Card Overlay - Sleek Full-Width Digital Pass Ticket */
.scratch-card {
  position: relative;
  width: 100%;
  min-height: 120px;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  user-select: none;
  border: 1px solid rgba(244, 63, 94, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.scratch-content {
  position: relative;
  width: 100%;
  min-height: 120px;
  background: #ffffff;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  border-radius: 20px;
  z-index: 1;
}

.scratch-content button {
  position: relative;
  z-index: 30 !important;
  pointer-events: auto !important;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 10;
  border-radius: 20px;
}

/* Birthday Candle Flame Animation */
.cake-container {
  position: relative;
  width: 200px;
  height: 160px;
  margin: 0 auto;
}

.candle-flame {
  width: 18px;
  height: 28px;
  background: radial-gradient(ellipse at bottom, #fef08a 0%, #f97316 60%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.1s infinite alternate;
  box-shadow: 0 0 25px #f97316, 0 0 50px #fef08a;
  cursor: pointer;
}

@keyframes flicker {
  0% { transform: scale(1) rotate(-2deg); opacity: 0.9; }
  100% { transform: scale(1.15) rotate(2deg); opacity: 1; }
}

.candle-flame.blown-out {
  display: none;
}

.smoke {
  width: 10px;
  height: 28px;
  background: rgba(148, 163, 184, 0.4);
  border-radius: 50%;
  filter: blur(5px);
  animation: smokeRise 1.5s forwards ease-out;
}

@keyframes smokeRise {
  0% { opacity: 0.8; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(3); }
}

/* Polaroids */
.polaroid {
  background: #ffffff;
  border: 1px solid rgba(244, 63, 94, 0.15);
  padding: 12px 12px 24px 12px;
  border-radius: 16px;
  transform: rotate(-1.5deg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: #0f172a;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.polaroid:hover {
  transform: rotate(0deg) scale(1.03) translateY(-4px);
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 20px 40px rgba(244, 63, 94, 0.15);
}

.polaroid:nth-child(even) {
  transform: rotate(1.5deg);
}

.handwriting {
  font-family: var(--font-handwriting);
  font-size: 1.7rem;
  line-height: 1.4;
}

/* 3D Polaroid Card Flip Animation */

/* 3D POLAROID FLIP CARD SYSTEM FIXED */
.polaroid-3d-card {
  perspective: 1000px;
  cursor: pointer;
  width: 100%;
  min-height: 280px;
  position: relative;
}

.polaroid-3d-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.polaroid-3d-card.flipped .polaroid-3d-inner {
  transform: rotateY(180deg);
}

.polaroid-front, .polaroid-back {
  width: 100%;
  min-height: 280px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  box-sizing: border-box;
}

.polaroid-front {
  position: relative;
  z-index: 2;
  transform: rotateY(0deg);
  background: #ffffff;
  border: 1px solid #fecdd3;
  padding: 12px;
  box-shadow: 0 10px 25px -5px rgba(244, 63, 94, 0.1);
}

.polaroid-back {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  transform: rotateY(180deg);
  background: #fffbeb !important;
  border: 2px dashed #fcd34d !important;
  color: #78350f !important;
  padding: 20px;
  box-shadow: inset 0 0 20px rgba(245, 158, 11, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 1;
}


/* Floating Particles */
#particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

@keyframes particleRise {
  0% { transform: translateY(100vh) scale(0.5); opacity: 0; }
  50% { opacity: 0.8; }
  100% { transform: translateY(-10vh) scale(1.2); opacity: 0; }
}

/* Lovetale 6-Step Modern Stepper & Focused Wizard System */
.lovetale-wizard-container {
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.stepper-header-wrapper {
  position: relative;
  width: 100%;
  padding: 16px 8px;
}

.stepper-progress-track {
  position: absolute;
  top: 34px;
  left: 36px;
  right: 36px;
  height: 4px;
  background: #ffe4e6;
  border-radius: 999px;
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #e11d48, #9333ea);
  border-radius: 999px;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.stepper-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.stepper-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fecdd3;
  color: #9f1239;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stepper-node.active .stepper-circle {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  border-color: #f43f5e;
  color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35);
}

.stepper-node.completed .stepper-circle {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.stepper-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.stepper-node.active .stepper-label {
  color: #e11d48;
  font-weight: 800;
}

.stepper-node.completed .stepper-label {
  color: #475569;
}

/* Quick Select Pill Chips - Premium Tactile Polish */
.pill-chip {
  padding: 7px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(253, 164, 175, 0.6);
  color: #e11d48;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pill-chip:hover {
  background: #fff1f2;
  border-color: #f43f5e;
  color: #be123c;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 16px rgba(244, 63, 94, 0.15);
}

.pill-chip.selected {
  background: linear-gradient(135deg, #f43f5e, #be123c);
  color: #ffffff;
  border-color: #9f1239;
  box-shadow: 0 6px 18px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.04);
}

/* Glowing Icon Badge */
.glowing-icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff1f2, #ffe4e6);
  border: 2px solid #fecdd3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin: 0;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.2);
  animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Bottom Helper Avatar Tooltip */
.helper-avatar-tooltip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #fecdd3;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(244, 63, 94, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: #9f1239;
}



/* 3D POLAROID CARD FLIP VISIBILITY FIX */
.polaroid-3d-card.flipped .polaroid-front {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.polaroid-3d-card.flipped .polaroid-back {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 10 !important;
  transform: rotateY(180deg) !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 21st.dev Inspired Micro-Animations on Framer Light Aesthetic */
.font-serif-italic {
  font-family: 'Dancing Script', cursive;
  font-style: italic;
}

/* Ambient Mesh Spotlight Glow Animations */
@keyframes lpGlowPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
  50% { transform: translate(-48%, -52%) scale(1.08); opacity: 0.75; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.9; }
}

.lp-glow-pulse {
  animation: lpGlowPulse 12s ease-in-out infinite;
}

/* 21st.dev Dark Spotlight Card */
.framer-card-21st {
  position: relative;
  background: rgba(18, 18, 22, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 250ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.framer-card-21st::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(500px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(244, 63, 94, 0.15), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.framer-card-21st:hover::before {
  opacity: 1;
}

.framer-card-21st:hover {
  border-color: rgba(244, 63, 94, 0.45);
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 30px 60px -15px rgba(244, 63, 94, 0.25), 0 0 30px rgba(244, 63, 94, 0.2);
}

/* 21st Badge Pill */
.badge-21st {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  color: #f43f5e;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================================================
   SHADER SHOWCASE & GOOEY FILTER CSS UTILITIES
   ========================================================================= */

.filter-glass {
  filter: url(#glass-effect);
}

.filter-gooey {
  filter: url(#gooey-filter);
}

.filter-text-glow {
  filter: url(#text-glow);
}

.filter-logo-glow {
  filter: url(#logo-glow);
}

.animate-spin-slow {
  animation: spinSlow 20s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #06b6d4 30%, #f43f5e 70%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientTextShift 8s linear infinite;
}

@keyframes gradientTextShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* =========================================================================
   RESPONSIVE DEVICE MEDIA QUERIES (Mobile, iPhone, Android, iPad & Tablets)
   ========================================================================= */

/* Smartphones (iPhone, Android - <= 640px) */
@media (max-width: 640px) {
  body {
    font-size: 14px;
  }
  .framer-card {
    border-radius: 20px;
    padding: 16px !important;
  }
  .stepper-circle {
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
  }
  .stepper-label {
    font-size: 9px !important;
  }
  .stepper-header-wrapper {
    padding: 12px 4px !important;
  }
  .type-display {
    font-size: 1.6rem;
    line-height: 2rem;
  }
  .btn-framer-primary {
    padding: 12px 20px;
    font-size: 12px;
  }
}

/* Tablets & iPads (641px - 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
  .framer-card {
    border-radius: 24px;
    padding: 24px !important;
  }
  .stepper-circle {
    width: 35px !important;
    height: 35px !important;
    font-size: 12px !important;
  }
  .stepper-label {
    font-size: 10px !important;
  }
}

/* Touch Friendly Minimum Tap Targets for Finger Taps on Touch Devices */
@media (pointer: coarse) {
  button, .cursor-pointer, input, select {
    min-height: 44px;
  }
}

/* Glassmorphic Toast Notification System */
@keyframes toastSlideIn {
  0% { transform: translateX(120%) scale(0.9); opacity: 0; }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  100% { transform: translateX(120%) scale(0.9); opacity: 0; }
}

.toast-animate-in {
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-animate-out {
  animation: toastSlideOut 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================================================
   🌙 MIDNIGHT CYBER-ROMANTIC DARK MODE SYSTEM
   ========================================================================= */
body {
  transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-romantic-mode {
  background-color: #020617 !important;
  color: #f8fafc !important;
}

body.dark-romantic-mode header {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark-romantic-mode .framer-nav {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(28px) !important;
  -webkit-backdrop-filter: blur(28px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.15) !important;
}

body.dark-romantic-mode .framer-nav h1,
body.dark-romantic-mode .framer-nav .text-slate-900 {
  color: #ffffff !important;
}

body.dark-romantic-mode .framer-nav p,
body.dark-romantic-mode .framer-nav .text-slate-500 {
  color: #94a3b8 !important;
}

body.dark-romantic-mode .framer-nav nav {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

body.dark-romantic-mode .framer-nav nav button {
  color: #cbd5e1 !important;
}

body.dark-romantic-mode .framer-nav nav button:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-romantic-mode .framer-nav nav button.bg-gradient-to-r {
  color: #ffffff !important;
}

body.dark-romantic-mode #global-audio-btn {
  background-color: rgba(30, 41, 59, 0.8) !important;
  color: #f472b6 !important;
  border-color: rgba(244, 114, 182, 0.3) !important;
}

body.dark-romantic-mode #global-audio-btn:hover {
  background-color: rgba(244, 114, 182, 0.2) !important;
  color: #ffffff !important;
}

/* =========================================================================
   ☀️ DAY VIBE vs 🌙 NIGHT MODE FOOTER & FAQ SYSTEM
   ========================================================================= */

/* DAY MODE (DEFAULT) FOOTER */
footer {
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: #1e293b !important;
  border-top: 1px solid rgba(244, 63, 94, 0.2) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
}

footer h3,
footer h4 {
  color: #0f172a !important;
}

footer p,
footer span:not(.animate-bounce),
footer li,
footer button {
  color: #334155 !important;
}

footer button:hover,
footer a:hover {
  color: #e11d48 !important;
}

#footer-email-input {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(244, 63, 94, 0.3) !important;
}

#footer-email-input::placeholder {
  color: #94a3b8 !important;
}

/* DAY MODE VIBE THEME TOGGLE BUTTON */
.vibe-theme-btn {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
.vibe-theme-btn:hover {
  background-color: #e2e8f0 !important;
  border-color: #94a3b8 !important;
}

/* DAY MODE LOVE & SUPPORT ICON BADGES */
.footer-icon-badge {
  background-color: #f1f5f9 !important;
  color: #0284c7 !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

/* DAY MODE SOCIAL MEDIA CIRCLE BUTTONS */
.footer-social-btn {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08) !important;
}
.footer-social-btn:hover {
  background-color: #fff1f2 !important;
  border-color: #f43f5e !important;
  color: #e11d48 !important;
}
.footer-social-btn svg {
  fill: currentColor !important;
}

/* DAY MODE (DEFAULT) FAQ PILLS & CARDS - EYE NEUTRAL */
.faq-pill-trigger {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.06) !important;
  backdrop-filter: blur(16px) !important;
}

.faq-pill-trigger:hover {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.6) !important;
}

.faq-pill-trigger.is-active-trigger {
  background: #0f172a !important;
  color: #ffffff !important;
  border: 1.5px solid #334155 !important;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25) !important;
}

.faq-pill-trigger.is-active-trigger .faq-plus-minus,
.faq-pill-trigger.is-active-trigger span {
  color: #ffffff !important;
}

.faq-plus-minus {
  color: #475569 !important;
}

.faq-answer-card {
  background: rgba(255, 255, 255, 0.97) !important;
  color: #0f172a !important;
  border: 1px solid rgba(203, 213, 225, 0.8) !important;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
  backdrop-filter: blur(28px) !important;
}

/* 🌙 NIGHT MODE (dark-romantic-mode) OVERRIDES - EYE NEUTRAL */
body.dark-romantic-mode footer {
  background-color: #020617 !important;
  color: #cbd5e1 !important;
  border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
}

body.dark-romantic-mode footer h3,
body.dark-romantic-mode footer h4,
body.dark-romantic-mode footer .text-gray-900,
body.dark-romantic-mode footer .text-slate-900 {
  color: #ffffff !important;
}

body.dark-romantic-mode footer p,
body.dark-romantic-mode footer span:not(.animate-bounce),
body.dark-romantic-mode footer li,
body.dark-romantic-mode footer button,
body.dark-romantic-mode footer .text-slate-300,
body.dark-romantic-mode footer .text-slate-400 {
  color: #cbd5e1 !important;
}

body.dark-romantic-mode footer button:hover,
body.dark-romantic-mode footer a:hover {
  color: #ffffff !important;
}

body.dark-romantic-mode #footer-email-input {
  background-color: rgba(15, 23, 42, 0.9) !important;
  color: #ffffff !important;
  border-color: rgba(71, 85, 105, 0.5) !important;
}

body.dark-romantic-mode #footer-email-input::placeholder {
  color: #64748b !important;
}

body.dark-romantic-mode .vibe-theme-btn {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important;
}
body.dark-romantic-mode .vibe-theme-btn:hover {
  background-color: #1e293b !important;
  border-color: #475569 !important;
}

body.dark-romantic-mode .footer-icon-badge {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  border: 1px solid #334155 !important;
}

body.dark-romantic-mode .footer-social-btn {
  background-color: rgba(30, 41, 59, 0.9) !important;
  border: 1.5px solid rgba(71, 85, 105, 0.8) !important;
  color: #cbd5e1 !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3) !important;
}
body.dark-romantic-mode .footer-social-btn:hover {
  background-color: rgba(51, 65, 85, 1) !important;
  border-color: #38bdf8 !important;
  color: #38bdf8 !important;
}

body.dark-romantic-mode .faq-pill-trigger {
  background: rgba(15, 23, 42, 0.9) !important;
  color: #f8fafc !important;
  border-color: rgba(51, 65, 85, 0.6) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
}

body.dark-romantic-mode .faq-pill-trigger:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  border-color: rgba(100, 116, 139, 0.6) !important;
}

body.dark-romantic-mode .faq-pill-trigger.is-active-trigger {
  background: #1e293b !important;
  color: #ffffff !important;
  border-color: #64748b !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5) !important;
}

body.dark-romantic-mode .faq-plus-minus {
  color: #94a3b8 !important;
}

body.dark-romantic-mode .faq-answer-card {
  background: rgba(15, 23, 42, 0.96) !important;
  color: #f1f5f9 !important;
  border-color: rgba(51, 65, 85, 0.8) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6) !important;
}

/* =========================================================================
   ✨ SILKY-SMOOTH FAQ ACCORDION TRANSITIONS (CSS GRID AUTO-HEIGHT)
   ========================================================================= */
.faq-answer-wrapper {
  display: grid !important;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, margin-top 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  width: 100%;
}

.faq-answer-wrapper.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.75rem;
}

.faq-answer-inner {
  min-height: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(-8px);
  width: 100%;
}

.faq-answer-wrapper.is-open .faq-answer-inner {
  transform: translateY(0);
}

/* Modal Pop In Animation */
@keyframes modalPopIn {
  0% { transform: scale(0.92) translateY(12px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

.animate-modal-pop {
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
