/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --saffron: #FF9933;
  --white: #FFFFFF;
  --green: #138808;
  --navy: #000080;
  --gold: #FFD700;
  --gold-light: #FFE566;
  --dark-bg: #0a0e1a;
  --dark-card: #0b1022;
  --glass: #0e162c;
  --glass-border: rgba(255, 215, 0, 0.45);
  --shadow-luxury: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 153, 51, 0.25);
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  overflow-x: hidden;
  min-height: 100dvh;
  background: var(--dark-bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video {
  display: block;
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== SHARED BACKGROUND LAYERS ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-intro {
  background: url('../FIRST PAGE INTRO BACKGROUND.png') center/cover no-repeat;
}

.bg-dark {
  background: linear-gradient(160deg, #0a0e1a 0%, #1a1040 35%, #0d1f3c 65%, #0a0e1a 100%);
}

.bg-decoration {
  background: url('../Floating Background Decoration.png') center/cover no-repeat;
  opacity: 0.6;
  animation: bgDrift 20s ease-in-out infinite alternate;
}

.bg-particles {
  background: url('../Floating Particles Overlay.png') center/cover no-repeat;
  opacity: 0.85;
  animation: particleFloat 8s ease-in-out infinite;
}

.bg-tricolor {
  background: url('../Tricolor Border.png') center top/contain no-repeat;
  opacity: 0.9;
  z-index: 1;
}

@keyframes bgDrift {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -1%); }
}

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-12px) scale(1.02); opacity: 1; }
}

/* ===== FLOATING LIGHTS (CSS particles) ===== */
.floating-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.light-dot {
  position: absolute;
  border-radius: 50%;
  animation: lightDrift linear infinite;
}

.light-dot.gold { background: radial-gradient(circle, rgba(255,215,0,0.8) 0%, transparent 70%); }
.light-dot.saffron { background: radial-gradient(circle, rgba(255,153,51,0.7) 0%, transparent 70%); }
.light-dot.white { background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%); }
.light-dot.green { background: radial-gradient(circle, rgba(19,136,8,0.6) 0%, transparent 70%); }

@keyframes lightDrift {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

/* ===== PAGE 1 — INTRO ===== */
.page1 {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
}

.intro-top-text {
  width: 100%;
  padding: 28px 20px 0;
  text-align: center;
  z-index: 20;
  animation: fadeSlideDown 1s ease-out both;
}

.intro-greeting {
  font-size: clamp(1rem, 4.5vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8), 0 0 30px rgba(255,153,51,0.4);
}

.intro-greeting .sender-name {
  color: var(--gold);
  font-weight: 800;
  animation: nameGlow 2s ease-in-out infinite alternate;
}

@keyframes nameGlow {
  from { text-shadow: 0 0 10px rgba(255,215,0,0.5); }
  to { text-shadow: 0 0 25px rgba(255,215,0,0.9), 0 0 50px rgba(255,153,51,0.5); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.gift-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  z-index: 20;
}

.gift-box-wrapper {
  position: relative;
  width: min(72vw, 320px);
  animation: giftFloat 3s ease-in-out infinite;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  will-change: transform;
}

.gift-box-wrapper.breathing {
  animation: giftFloat 3s ease-in-out infinite, giftBreathe 2.5s ease-in-out infinite;
}

.gift-glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle, rgba(255,153,51,0.35) 0%, rgba(255,215,0,0.15) 40%, transparent 70%);
  border-radius: 50%;
  animation: glowPulse 2s ease-in-out infinite alternate;
  z-index: -1;
}

.gift-shadow {
  position: absolute;
  bottom: -8%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
  filter: blur(8px);
  animation: shadowPulse 2.5s ease-in-out infinite alternate;
}

.gift-box-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.5)) drop-shadow(0 0 25px rgba(255,153,51,0.3));
}

@keyframes giftFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes giftBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-18px) scale(1.04); }
}

@keyframes glowPulse {
  from { opacity: 0.6; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1.05); }
}

@keyframes shadowPulse {
  from { opacity: 0.5; width: 65%; }
  to { opacity: 0.8; width: 75%; }
}

/* Gift zoom state */
.gift-box-wrapper.zoom-out {
  animation: none !important;
  transform: scale(8) !important;
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.6, 0, 0.8, 0.4), opacity 0.5s ease 0.4s;
}

.page1.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Open Button */
.open-btn-section {
  width: 100%;
  padding: 0 24px 40px;
  z-index: 20;
  animation: fadeSlideUp 1s ease-out 0.3s both;
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.btn-open-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  padding: 20px 36px;
  font-family: inherit;
  font-size: clamp(1.25rem, 6vw, 1.6rem);
  font-weight: 900;
  color: #FFFFFF;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 12px rgba(255, 215, 0, 0.8);
  background: linear-gradient(135deg, #FF9933 0%, #E65100 40%, #FFD700 70%, #FF9933 100%);
  background-size: 250% 250%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50px;
  box-shadow:
    0 10px 35px rgba(255, 153, 51, 0.65),
    0 0 45px rgba(255, 215, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.5),
    inset 0 -3px 6px rgba(0, 0, 0, 0.3);
  animation: btnGlow 2s ease-in-out infinite, btnShimmer 3s linear infinite, btnPulse 2.2s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  letter-spacing: 1px;
  cursor: pointer;
  transform-origin: center;
}

.btn-open-gift::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  animation: shimmerSweep 2.2s ease-in-out infinite;
}

.btn-open-gift:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 14px 45px rgba(255, 153, 51, 0.8),
    0 0 60px rgba(255, 215, 0, 0.6),
    inset 0 2px 6px rgba(255, 255, 255, 0.7);
}

.btn-open-gift:active {
  transform: scale(0.96);
}

@keyframes btnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}

@keyframes btnGlow {
  0%, 100% { box-shadow: 0 10px 35px rgba(255,153,51,0.65), 0 0 45px rgba(255,215,0,0.4); }
  50% { box-shadow: 0 12px 50px rgba(255,153,51,0.9), 0 0 75px rgba(255,215,0,0.7); }
}

@keyframes btnShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes shimmerSweep {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Fullscreen video overlay */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.video-overlay.active {
  display: flex;
  opacity: 1;
}

.video-overlay video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== PAGE 2 — CELEBRATION ===== */
.page2 {
  position: relative;
  min-height: 100dvh;
  z-index: 10;
  padding-bottom: 100px;
}

/* Header */
.celebration-header {
  position: relative;
  text-align: center;
  padding: 32px 20px 20px;
  z-index: 20;
  overflow: hidden;
}

.header-text {
  font-size: clamp(1.05rem, 4.8vw, 1.3rem);
  font-weight: 700;
  line-height: 1.65;
  position: relative;
  z-index: 2;
  animation: headerReveal 1s ease-out both;
}

.header-text .sender-name {
  color: var(--gold);
  font-weight: 800;
}

.header-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,215,0,0.15), rgba(255,215,0,0.3), rgba(255,215,0,0.15), transparent);
  animation: goldShine 4s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

.header-glow {
  position: absolute;
  inset: -10px;
  background: linear-gradient(90deg, var(--saffron), var(--white), var(--green));
  opacity: 0.08;
  filter: blur(20px);
  animation: tricolorGlow 3s ease-in-out infinite alternate;
  z-index: 1;
}

.header-rays {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg, transparent 0deg, rgba(255,215,0,0.03) 30deg, transparent 60deg, rgba(255,153,51,0.03) 90deg, transparent 120deg, rgba(255,255,255,0.02) 150deg, transparent 180deg, rgba(19,136,8,0.03) 210deg, transparent 240deg, rgba(255,215,0,0.03) 270deg, transparent 300deg, rgba(255,153,51,0.02) 330deg, transparent 360deg);
  animation: raysSpin 20s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes headerReveal {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes goldShine {
  0% { left: -100%; }
  50%, 100% { left: 150%; }
}

@keyframes tricolorGlow {
  from { opacity: 0.05; }
  to { opacity: 0.15; }
}

@keyframes raysSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hero Video Card */
.hero-video-section {
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
  z-index: 20;
  position: relative;
  animation: fadeSlideUp 1s ease-out 0.2s both;
}

.hero-video-card {
  width: 88%;
  max-width: 400px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    var(--shadow-luxury),
    0 0 0 2px rgba(255,153,51,0.3),
    0 0 0 4px rgba(255,255,255,0.08),
    0 0 0 6px rgba(19,136,8,0.2);
  background: #000;
}

.hero-video-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--saffron), var(--white), var(--green));
  z-index: -1;
  animation: borderGlow 3s ease-in-out infinite alternate;
}

@keyframes borderGlow {
  from { opacity: 0.5; }
  to { opacity: 1; }
}

.hero-video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #000;
}

/* Quote Slider */
.quote-slider-section {
  padding: 8px 20px 28px;
  z-index: 20;
  position: relative;
  animation: fadeSlideUp 1s ease-out 0.4s both;
}

.quote-slider {
  position: relative;
  overflow: hidden;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.quote-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.quote-slide {
  min-width: 100%;
  text-align: center;
  padding: 18px 16px;
  font-size: clamp(0.98rem, 4.2vw, 1.15rem);
  font-style: italic;
  line-height: 1.7;
  color: #FFFFFF;
  background: #0d152b;
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(255, 153, 51, 0.2);
}

.quote-slide::before {
  content: '❝';
  display: block;
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 4px;
}

/* Content Sections */
.content-sections {
  padding: 0 16px;
  z-index: 20;
  position: relative;
}

.section-card {
  margin-bottom: 24px;
  padding: 24px 20px;
  border-radius: 18px;
  background: #0b1022;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(255, 153, 51, 0.15);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-title {
  font-size: clamp(1.15rem, 5vw, 1.35rem);
  font-weight: 800;
  margin-bottom: 14px;
  background: linear-gradient(90deg, var(--saffron), var(--gold), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-text {
  font-size: clamp(0.9rem, 3.8vw, 1rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
}

/* Facts Grid */
.facts-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fact-card {
  padding: 16px 18px;
  border-radius: 14px;
  background: #111a34;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--saffron);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fact-card.revealed {
  opacity: 1;
  transform: translateX(0);
}

.fact-card:nth-child(2) { border-left-color: var(--white); transition-delay: 0.1s; }
.fact-card:nth-child(3) { border-left-color: var(--green); transition-delay: 0.2s; }
.fact-card:nth-child(4) { border-left-color: var(--gold); transition-delay: 0.3s; }
.fact-card:nth-child(5) { border-left-color: var(--saffron); transition-delay: 0.4s; }

.fact-card strong {
  color: var(--gold);
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.fact-card p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
}

/* Soldiers Section — Parallax */
.soldiers-section {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}

.soldiers-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,153,51,0.08) 0%, rgba(0,0,128,0.15) 50%, rgba(19,136,8,0.08) 100%);
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.1s linear;
  will-change: transform;
}

.soldiers-content {
  position: relative;
  z-index: 2;
}

.soldiers-content .section-text {
  text-align: center;
  font-size: clamp(0.95rem, 4vw, 1.05rem);
}

.salute-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 12px;
  animation: salutePulse 2s ease-in-out infinite;
}

@keyframes salutePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Celebration Section */
.celebration-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.celebration-section .section-text {
  margin-bottom: 16px;
}

.confetti-canvas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.sparkle-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 1.8rem;
  margin-top: 12px;
}

.sparkle-row span {
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-row span:nth-child(2) { animation-delay: 0.3s; }
.sparkle-row span:nth-child(3) { animation-delay: 0.6s; }
.sparkle-row span:nth-child(4) { animation-delay: 0.9s; }
.sparkle-row span:nth-child(5) { animation-delay: 1.2s; }

@keyframes sparkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(20deg); }
}

/* Floating Action Button */
.fab-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 360px;
}

.fab-btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  font-size: clamp(0.95rem, 4.2vw, 1.1rem);
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,153,51,0.2);
  animation: fabPulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fab-btn:active {
  transform: scale(0.96);
}

.fab-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: rgba(255,255,255,0.3);
  animation: fabPulseGreen 2.5s ease-in-out infinite;
}

@keyframes fabPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(255,153,51,0.2); }
  50% { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 35px rgba(255,215,0,0.35); }
}

@keyframes fabPulseGreen {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 20px rgba(37,211,102,0.3); }
  50% { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 35px rgba(37,211,102,0.5); }
}

/* Music Toggle */
.music-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  animation: fadeSlideDown 0.8s ease-out both;
}

.music-toggle.playing {
  background: rgba(255,153,51,0.25);
  box-shadow: 0 0 20px rgba(255,153,51,0.3);
}

.music-toggle:active {
  transform: scale(0.92);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-box {
  width: 100%;
  max-width: 360px;
  padding: 32px 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30,35,60,0.95) 0%, rgba(15,20,40,0.98) 100%);
  border: 1px solid rgba(255,215,0,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(255,153,51,0.15);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  animation: modalPop 0.4s ease forwards;
}

.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

@keyframes modalPop {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold);
}

.modal-input {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--white);
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 15px rgba(255,153,51,0.2);
}

.modal-input::placeholder {
  color: rgba(255,255,255,0.4);
}

.btn-generate {
  display: block;
  width: 100%;
  padding: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(135deg, var(--saffron), #e67e00);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(255,153,51,0.4);
  transition: transform 0.2s ease;
}

.btn-generate:active {
  transform: scale(0.97);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

.modal-box {
  position: relative;
}

/* Responsive tweaks */
@media (min-width: 768px) {
  .hero-video-card {
    max-width: 360px;
  }

  .content-sections {
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ===== PREMIUM UPDATE STYLES ===== */

/* Page 1 Hero Name */
/* Page 1 Hero Name & Header Combined Glass Card */
.intro-top-text, .celebration-header {
  width: min(92vw, 440px);
  margin: 18px auto 10px;
  padding: 24px 20px 20px;
  text-align: center;
  z-index: 20;
  background: #080d1e;
  border-radius: 26px;
  border: 1.5px solid rgba(255, 215, 0, 0.5);
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.95),
    0 0 35px rgba(255, 153, 51, 0.3),
    inset 0 1px 2px rgba(255, 255, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  animation: fadeSlideDown 1s ease-out both;
}

.hero-name-wrapper, .p2-hero-name-wrapper {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 auto 8px;
  text-align: center;
}

.hero-sender-name, .p2-hero-name {
  font-size: clamp(2rem, 10vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FFD700;
  -webkit-text-fill-color: #FFD700;
  opacity: 1;
  visibility: visible;
  animation: heroGoldGlow 2.5s ease-in-out infinite;
  text-shadow:
    0 0 12px rgba(255, 215, 0, 0.9),
    0 0 28px rgba(255, 153, 51, 0.6),
    0 0 48px rgba(255, 215, 0, 0.35),
    0 3px 6px rgba(0, 0, 0, 0.95);
  position: relative;
  z-index: 2;
  line-height: 1.2;
  display: block;
  width: 100%;
  text-align: center;
}

@keyframes heroGoldGlow {
  0%, 100% {
    text-shadow:
      0 0 12px rgba(255, 215, 0, 0.9),
      0 0 28px rgba(255, 153, 51, 0.6),
      0 0 48px rgba(255, 215, 0, 0.35),
      0 3px 6px rgba(0, 0, 0, 0.9);
    transform: scale(1);
  }
  50% {
    text-shadow:
      0 0 18px rgba(255, 215, 0, 1),
      0 0 40px rgba(255, 153, 51, 0.8),
      0 0 60px rgba(255, 215, 0, 0.5),
      0 3px 6px rgba(0, 0, 0, 0.9);
    transform: scale(1.02);
  }
}

.hero-name-shimmer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 80%;
  height: 100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 50%, transparent 60%);
  animation: nameShimmerSweep 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

.name-particles {
  position: absolute;
  inset: -20px;
  pointer-events: none;
  z-index: 1;
}

.name-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
  animation: nameParticleFloat 3s ease-in-out infinite;
  box-shadow: 0 0 6px var(--gold);
}

@keyframes heroGoldPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes heroShimmerBg {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

@keyframes nameShimmerSweep {
  0% { transform: translateX(-120%) skewX(-15deg); }
  50%, 100% { transform: translateX(220%) skewX(-15deg); }
}

@keyframes nameParticleFloat {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-8px) scale(1.2); }
}

.intro-subtitle, .fade-in-text {
  font-size: clamp(0.95rem, 4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  animation: fadeInUp 1.2s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Gift box alive */
.gift-box-wrapper.alive {
  animation: giftAlive 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite !important;
}

.gift-box-wrapper.alive .gift-glow {
  animation: glowPulse 1.4s ease-in-out infinite alternate;
}

.gift-ribbon-shine {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 12%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: ribbonShine 3s ease-in-out infinite;
  pointer-events: none;
  z-index: 4;
  border-radius: 4px;
}

.gift-light-rays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.gift-light-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #FFD700;
  border-radius: 50%;
  box-shadow: 0 0 8px #FFD700, 0 0 16px rgba(255,153,51,0.6);
  animation: lightRise 1.8s ease-out forwards;
}

@keyframes giftAlive {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
  30% {
    transform: translateY(-28px) scale(1.15) rotate(-3deg);
  }
  50% {
    transform: translateY(2px) scale(0.92) rotate(1deg);
  }
  75% {
    transform: translateY(-14px) scale(1.08) rotate(2deg);
  }
}

@keyframes ribbonShine {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scaleX(0.8); }
  50% { opacity: 0.8; transform: translateX(-50%) scaleX(1.1); }
}

@keyframes lightRise {
  0% { opacity: 0.9; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-80px) scale(0.3); }
}

.gift-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.gift-sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: sparklePop 1.2s ease-out forwards;
  box-shadow: 0 0 10px var(--gold), 0 0 20px var(--saffron);
}

@keyframes sparklePop {
  0% { opacity: 1; transform: scale(0); }
  50% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(0) translateY(-20px); }
}

/* Gold flash */
.gold-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: radial-gradient(circle, rgba(255,215,0,0.95) 0%, rgba(255,153,51,0.8) 40%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.gold-flash.active {
  opacity: 1;
}

/* Mode 1 landing */
.mode1-landing {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
  position: relative;
}

.mode1-content {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.mode1-title {
  font-size: clamp(2.2rem, 10vw, 3rem);
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.6), 0 2px 8px rgba(0,0,0,0.8);
  margin-bottom: 6px;
  letter-spacing: 0.05em;
}

.mode1-title-sub {
  font-size: clamp(1rem, 4.5vw, 1.2rem);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
}

.mode1-subtitle {
  margin: 0 0 24px;
  font-size: clamp(1rem, 4.5vw, 1.15rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
}

.mode1-form.glass-card, .glass-message-card {
  padding: 20px;
  border-radius: 16px;
  background: #111a34;
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.glass-message-card {
  margin-top: 16px;
  font-size: clamp(0.88rem, 3.8vw, 0.98rem);
  color: rgba(255,255,255,0.85);
  opacity: 1;
  animation: none;
}

.hero-name-display {
  display: none;
}

/* Page 2 premium header */
.p2-tricolor-bar {
  width: 48px;
  height: 6px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--saffron), var(--white), var(--green));
  box-shadow: 0 0 12px rgba(255,153,51,0.4);
}

.p2-hero-from {
  font-size: clamp(1rem, 4.5vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.p2-hero-wishes {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #FFD700;
  -webkit-text-fill-color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.5), 0 2px 8px rgba(0,0,0,0.8);
  animation: heroGoldGlow 2.5s ease-in-out infinite;
  margin-bottom: 12px;
}

/* Floating FAB — bottom center, brown */
.fab-float {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  max-width: 240px;
  padding: 14px 28px;
  font-size: clamp(0.88rem, 3.8vw, 1rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #8B4513 0%, #A0522D 40%, #6B3410 100%);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px rgba(139,69,19,0.5);
  animation: fabPulseBrown 2.5s ease-in-out infinite;
  transition: box-shadow 0.2s ease;
  line-height: 1.3;
  text-align: center;
  white-space: nowrap;
}

.fab-float:active {
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.fab-center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

@keyframes fabPulseBrown {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,0.5), 0 0 24px rgba(139,69,19,0.5); }
  50% { box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 40px rgba(160,82,45,0.7); }
}

.page-footer {
  text-align: center;
  padding: 24px 20px 100px;
  color: rgba(255,255,255,0.5);
  font-size: 0.88rem;
}

.modal-share-hint, .mode1-share-hint {
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.mode1-share {
  margin-top: 0;
}

.intro-from-line, .p2-hero-from {
  font-size: clamp(1.1rem, 5vw, 1.4rem);
  font-weight: 800;
  color: #FF9933;
  text-shadow: 0 0 16px rgba(255, 153, 51, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
  margin-top: 4px;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  line-height: 1.35;
  background: none;
  padding: 0;
  border-radius: 0;
  display: block;
  width: 100%;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
}

.intro-subtitle, .p2-hero-wishes {
  font-size: clamp(1.2rem, 5.5vw, 1.55rem);
  font-weight: 900;
  line-height: 1.35;
  color: #FFD700;
  text-shadow: 0 0 22px rgba(255, 215, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.95);
  margin-top: 4px;
  margin-bottom: 6px;
  display: block;
  width: 100%;
  animation: subtitlePulse 2.2s ease-in-out infinite alternate;
}

@keyframes subtitlePulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 20px rgba(255,215,0,0.8);
  }
  100% {
    transform: scale(1.06);
    text-shadow: 0 0 35px rgba(255,215,0,1), 0 0 50px rgba(255,153,51,0.7);
  }
}

/* Voice toggle Page 1 */
.voice-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.voice-toggle.muted {
  opacity: 0.6;
}

/* Expandable Share FAB */
.share-fab-wrap {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.share-fab-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.share-fab-items.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.share-fab-item {
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.share-fab-item.whatsapp { background: linear-gradient(135deg, #25D366, #128C7E); }
.share-fab-item.telegram { background: linear-gradient(135deg, #0088cc, #006699); }
.share-fab-item.copy { background: linear-gradient(135deg, #FF9933, #e67e00); color: #1a1a1a; }
.share-fab-item.more { background: rgba(255,255,255,0.15); }

.share-fab-main {
  padding: 14px 22px;
  font-size: clamp(0.9rem, 3.8vw, 1rem);
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(37,211,102,0.4);
  animation: fabPulseGreen 2.5s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.share-fab-main.open {
  background: linear-gradient(135deg, #FF9933, #e67e00);
  box-shadow: 0 8px 32px rgba(255,153,51,0.4);
}

/* Quote nav */
.quote-nav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.quote-nav-btn {
  flex: 1;
  padding: 10px 8px;
  font-size: clamp(0.75rem, 3.2vw, 0.85rem);
  font-weight: 600;
  color: var(--white);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  backdrop-filter: blur(8px);
  transition: background 0.2s, transform 0.2s;
}

.quote-nav-btn:active {
  transform: scale(0.97);
  background: rgba(255,153,51,0.2);
}

/* Military section */
.military-section {
  position: relative;
  overflow: hidden;
}

.military-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(0,0,128,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.military-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(0,50,0,0.15);
  border: 1px solid rgba(19,136,8,0.25);
}

.military-quote {
  margin: 16px 0;
  padding: 14px;
  text-align: center;
  font-style: italic;
  color: var(--gold);
  border-left: 3px solid var(--saffron);
  background: rgba(255,215,0,0.05);
  border-radius: 0 10px 10px 0;
}

.military-salute {
  text-align: center;
  font-weight: 700;
  color: var(--saffron);
  margin-top: 12px;
}

/* Info expandable */
.info-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  color: inherit;
  text-align: left;
  gap: 12px;
}

.info-toggle .section-title {
  margin-bottom: 0;
}

.toggle-icon {
  font-size: 0.9rem;
  color: var(--gold);
  flex-shrink: 0;
}

.info-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s ease, opacity 0.4s ease;
  opacity: 0;
}

.info-expand.open {
  max-height: 3000px;
  opacity: 1;
  margin-top: 16px;
}

.info-block {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.info-block h3 {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 8px;
}

.symbol-cards {
  display: grid;
  gap: 10px;
}

.symbol-card {
  padding: 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border-left: 3px solid var(--green);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.symbol-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.symbol-card strong {
  display: block;
  color: var(--gold);
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.symbol-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
}

/* Freedom fighters gallery */
.fighters-intro {
  margin-bottom: 16px;
  text-align: center;
}

.fighters-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fighter-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.fighter-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.fighter-card:hover, .fighter-card:active {
  box-shadow: 0 8px 30px rgba(255,153,51,0.15);
}

.fighter-photo-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255,215,0,0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.fighter-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fighter-info {
  flex: 1;
  min-width: 0;
}

.fighter-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.fighter-bio, .fighter-contrib {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  margin-bottom: 6px;
}

.fighter-expand-btn {
  background: none;
  color: var(--saffron);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 0;
}

.fighter-more {
  max-height: 0;
  overflow: hidden;
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.65);
  transition: max-height 0.4s ease, margin 0.3s ease;
}

.fighter-more.open {
  max-height: 120px;
  margin-top: 8px;
}

/* Viral CTA & Share area */
.viral-cta-section {
  padding: 32px 20px 120px;
  text-align: center;
  display: none;
}

.viral-cta-section.visible {
  display: block;
  animation: fadeInUp 0.8s ease-out both;
}

.viral-cta-text {
  font-size: clamp(1rem, 4.5vw, 1.15rem);
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.9);
}

.viral-create-btn {
  max-width: 340px;
  margin: 0 auto;
}

.share-area {
  padding: 32px 20px 120px;
  text-align: center;
  display: none;
}

.share-area.visible {
  display: block;
  animation: fadeInUp 0.8s ease-out both;
}

.share-ready-title {
  font-size: clamp(1.15rem, 5vw, 1.35rem);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 340px;
  margin: 0 auto;
}

.share-btn {
  padding: 14px 20px;
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  font-weight: 700;
  color: var(--white);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease;
  animation: fabPulse 2.5s ease-in-out infinite;
}

.share-btn:active { transform: scale(0.97); }

.share-btn.whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
}

.share-btn.copy {
  background: linear-gradient(135deg, rgba(255,153,51,0.8), rgba(255,215,0,0.6));
  color: #1a1a1a;
}

.share-btn.telegram {
  background: linear-gradient(135deg, #0088cc, #006699);
}

.share-btn.more {
  background: rgba(255,255,255,0.12);
}

.page2 {
  padding-bottom: 40px;
}

#fabContainer {
  z-index: 100;
}

@media (min-width: 768px) {
  .fighters-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .symbol-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== SUCCESS POPUP ===== */
.success-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.success-popup-overlay.active {
  opacity: 1;
}

.success-popup-box {
  background: linear-gradient(160deg, #1a1040 0%, #0d1f3c 60%, #0a0e1a 100%);
  border: 1px solid rgba(255, 215, 0, 0.35);
  border-radius: 24px;
  padding: 32px 28px 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(255,215,0,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
  animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes successPop {
  from { transform: scale(0.7) translateY(30px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.success-popup-emoji {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 14px;
  animation: emojiDance 1.2s ease-in-out infinite alternate;
}

@keyframes emojiDance {
  from { transform: scale(1) rotate(-3deg); }
  to { transform: scale(1.12) rotate(3deg); }
}

.success-popup-title {
  font-size: clamp(1.5rem, 6.5vw, 2rem);
  font-weight: 900;
  color: #FFD700;
  text-shadow: 0 0 20px rgba(255,215,0,0.6);
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.success-popup-sub {
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 700;
  color: #FF9933;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.success-popup-msg {
  font-size: clamp(0.95rem, 4vw, 1.05rem);
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
  margin-bottom: 24px;
}

.success-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 20px;
  font-size: clamp(1rem, 4.5vw, 1.15rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50px;
  border: none;
  box-shadow: 0 8px 30px rgba(37,211,102,0.45);
  animation: waPulse 2s ease-in-out infinite;
  transition: transform 0.2s ease;
  cursor: pointer;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.success-whatsapp-btn:active {
  transform: scale(0.97);
}

.wa-icon {
  font-size: 1.4rem;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 8px 45px rgba(37,211,102,0.7); }
}

.success-popup-close {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: clamp(0.82rem, 3.5vw, 0.9rem);
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.success-popup-close:hover,
.success-popup-close:active {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.12);
}

/* ============================================================
   TRICOLOR NAME — letter-by-letter flag colour effect
============================================================ */
.tricolor-name-host {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 2px;
  line-height: 1.1;
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tc-letter {
  display: inline-block;
  position: relative;
  color: var(--tc-color, #FF9933);
  -webkit-text-fill-color: var(--tc-color, #FF9933);
  text-shadow:
    0 0 14px var(--tc-glow, rgba(255,153,51,0.95)),
    0 0 32px var(--tc-glow, rgba(255,153,51,0.7)),
    0 2px 8px rgba(0,0,0,0.95);
  background: rgba(8, 12, 24, 0.7);
  border-radius: 10px;
  padding: 3px 7px;
  min-width: 0.7em;
  text-align: center;
  animation:
    tcBounce 0.75s cubic-bezier(0.45, 0.05, 0.55, 0.95) var(--tc-delay, 0s) infinite alternate,
    tcColorCycle 2.4s ease-in-out var(--tc-shift, 0s) infinite,
    tcRotate 3.6s ease-in-out var(--tc-delay, 0s) infinite alternate;
  will-change: transform;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}

.tc-space {
  display: inline-block;
  width: 0.4em;
}

@keyframes tcBounce {
  0%   { transform: translateY(0) scale(1); }
  50%  { transform: translateY(-12px) scale(1.12); }
  100% { transform: translateY(4px) scale(0.95); }
}

@keyframes tcColorCycle {
  0%   { color: #FF9933; -webkit-text-fill-color: #FF9933;
         text-shadow: 0 0 16px rgba(255,153,51,1), 0 0 35px rgba(255,153,51,0.75), 0 2px 8px rgba(0,0,0,0.95); }
  33%  { color: #FFFFFF; -webkit-text-fill-color: #FFFFFF;
         text-shadow: 0 0 16px rgba(255,255,255,1), 0 0 35px rgba(255,255,255,0.75), 0 2px 8px rgba(0,0,0,0.95); }
  66%  { color: #138808; -webkit-text-fill-color: #138808;
         text-shadow: 0 0 16px rgba(19,136,8,1), 0 0 35px rgba(19,136,8,0.75), 0 2px 8px rgba(0,0,0,0.95); }
  100% { color: #FF9933; -webkit-text-fill-color: #FF9933;
         text-shadow: 0 0 16px rgba(255,153,51,1), 0 0 35px rgba(255,153,51,0.75), 0 2px 8px rgba(0,0,0,0.95); }
}

@keyframes tcRotate {
  0%   { transform: translateY(0) rotate(-5deg) scale(1); }
  50%  { transform: translateY(-10px) rotate(0deg) scale(1.09); }
  100% { transform: translateY(3px) rotate(5deg) scale(0.96); }
}

.tricolor-name-bg {
  position: absolute;
  inset: -10px;
  border-radius: 20px;
  background: radial-gradient(ellipse at center,
    rgba(255,153,51,0.15) 0%,
    rgba(255,255,255,0.05) 40%,
    rgba(19,136,8,0.1) 70%,
    transparent 100%);
  animation: tricolorBgPulse 3s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes tricolorBgPulse {
  from { opacity: 0.6; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.06); }
}

/* ============================================================
   FLOATING SHARE BANNER — bottom right with close button
============================================================ */
.share-banner {
  position: fixed;
  bottom: 24px;
  right: 16px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(10,14,26,0.96), rgba(20,8,60,0.96));
  border: 1px solid rgba(255,215,0,0.4);
  border-radius: 18px;
  padding: 12px 14px 12px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 0 24px rgba(37,211,102,0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: bannerSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  max-width: calc(100vw - 32px);
}

@keyframes bannerSlideIn {
  from { opacity: 0; transform: translateY(60px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.share-banner-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.share-banner-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

.share-banner-emoji {
  font-size: 1.3rem;
  animation: bannerEmoji 1s ease-in-out infinite alternate;
}

@keyframes bannerEmoji {
  from { transform: scale(1) rotate(-8deg); }
  to   { transform: scale(1.2) rotate(8deg); }
}

.share-banner-msg {
  font-size: clamp(0.8rem, 3.2vw, 0.9rem);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
}

.share-banner-wa {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: clamp(0.82rem, 3.4vw, 0.92rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 18px rgba(37,211,102,0.5);
  animation: waBannerPulse 2s ease-in-out infinite;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.share-banner-wa:active { transform: scale(0.95); }

@keyframes waBannerPulse {
  0%, 100% { box-shadow: 0 4px 18px rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 4px 28px rgba(37,211,102,0.8); }
}

.share-banner-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.share-banner-close:hover,
.share-banner-close:active {
  background: rgba(255,80,80,0.3);
  color: #fff;
}

/* ============================================================
   PAGE 3 — WHATSAPP SHARE FAB (centered at middle of bottom)
============================================================ */
.wa-share-fab {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  animation: waFabIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.3s both;
  width: auto;
  max-width: 90vw;
}

@keyframes waFabIn {
  from { opacity: 0; transform: translate(-50%, 60px) scale(0.8); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.wa-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: clamp(1rem, 4.2vw, 1.15rem);
  font-weight: 800;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 50%, #075E54 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50px;
  box-shadow: 0 10px 32px rgba(37,211,102,0.6), 0 0 25px rgba(37,211,102,0.4);
  cursor: pointer;
  white-space: nowrap;
  animation: waBounceGlow 2.4s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: 0.03em;
}

.wa-share-btn:active {
  transform: scale(0.95);
}

@keyframes waBounceGlow {
  0%, 100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 10px 32px rgba(37,211,102,0.55), 0 0 20px rgba(37,211,102,0.4);
  }
  50% {
    transform: translateY(-9px) scale(1.05);
    box-shadow: 0 16px 45px rgba(37,211,102,0.85), 0 0 35px rgba(37,211,102,0.6);
  }
}

.wa-share-icon {
  font-size: 1.4rem;
  animation: waIconBounce 0.9s ease-in-out infinite alternate;
}

@keyframes waIconBounce {
  from { transform: scale(1) rotate(0deg); }
  to   { transform: scale(1.3) rotate(-10deg); }
}

.wa-share-text {
  letter-spacing: 0.03em;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}


/* ============================================================
   PAGE 2 — BOTTOM INPUT NAME BAR
============================================================ */
.bottom-input-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 12px 16px 16px;
  background: linear-gradient(180deg, rgba(10,14,26,0) 0%, rgba(10,14,26,0.95) 30%, #0a0e1a 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,215,0,0.25);
  display: flex;
  justify-content: center;
}

.input-bar-inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  padding: 8px 10px;
  border-radius: 50px;
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 15px rgba(255,153,51,0.2);
}

.bottom-name-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 14px;
  font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  font-weight: 600;
  color: #ffffff;
  font-family: inherit;
}

.bottom-name-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.bottom-create-btn {
  padding: 12px 20px;
  font-size: clamp(0.85rem, 3.6vw, 0.98rem);
  font-weight: 800;
  font-family: inherit;
  color: #ffffff;
  background: linear-gradient(135deg, #FF9933 0%, #e67e00 100%);
  border: none;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(255,153,51,0.5);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: btnPulse 2.5s ease-in-out infinite;
}

.bottom-create-btn:active {
  transform: scale(0.95);
}

/* ===== ADSTERRA AD CONTAINERS ===== */
.ad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 15;
  text-align: center;
}

.ad-container iframe {
  max-width: 100%;
  border: none;
  margin: 0 auto;
}

.ad-top-320 {
  margin: 14px auto 18px;
  min-height: 50px;
}

.ad-middle-320 {
  margin: 24px auto;
  min-height: 50px;
}

.ad-bottom-300 {
  margin: 28px auto 36px;
  min-height: 250px;
}

