/* ============================================================
   HOT WHEELS 3RD BIRTHDAY DIGITAL INVITATION - MOBILE FIRST
   Aksara Adhitama Ladjo
   ============================================================ */

:root {
  --bg-deep: #040b1f;
  --bg-navy: #07163c;
  --bg-cobalt: #0d3ab8;
  --hw-orange: #ff5e00;
  --hw-orange-bright: #ff8c00;
  --hw-red: #e51923;
  --hw-yellow: #ffd500;
  --hw-cyan: #24d2ff;
  --text-white: #ffffff;
  --text-soft: #d7e5ff;
  --text-muted: #93b0e8;
  --card-bg: rgba(8, 22, 60, 0.86);
  --card-border: rgba(255, 140, 0, 0.45);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-glow-orange: 0 10px 30px rgba(255, 94, 0, 0.35);
  --shadow-card: 0 14px 36px rgba(0, 6, 24, 0.55);
  --font-display: 'Russo One', 'Bungee', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(circle at top, #0b266d 0%, #030817 70%);
  color: var(--text-white);
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

body.locked {
  overflow: hidden;
  height: 100dvh;
}

/* Desktop ambient backdrop */
.desktop-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.backdrop-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
}

.glow-orange {
  width: 460px;
  height: 460px;
  background: var(--hw-orange);
  top: -120px;
  right: -100px;
}

.glow-blue {
  width: 520px;
  height: 520px;
  background: #0e52ff;
  bottom: -140px;
  left: -120px;
}

.speed-lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -25deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 2px,
    transparent 2px,
    transparent 42px
  );
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

/* Mobile-First Shell */
.mobile-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  background: linear-gradient(180deg, #06153b 0%, #050f2b 50%, #040a1d 100%);
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 140, 0, 0.18);
  overflow-x: hidden;
}

/* Checkered racing bar */
.checkered-bar {
  width: 100%;
  height: 12px;
  background-image:
    linear-gradient(45deg, #111 25%, transparent 25%),
    linear-gradient(-45deg, #111 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111 75%),
    linear-gradient(-45deg, transparent 75%, #111 75%);
  background-size: 12px 12px;
  background-position: 0 0, 0 6px, 6px -6px, -6px 0;
  background-color: #f8faff;
  border-top: 2px solid var(--hw-orange);
  border-bottom: 2px solid var(--hw-orange);
  position: relative;
  z-index: 5;
}

/* ============================================================
   SECTION 0: COVER SCREEN
   ============================================================ */
.cover-screen {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #06143a;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
}

.cover-screen.opened {
  transform: translate(-50%, -105%);
  opacity: 0;
  pointer-events: none;
}

.cover-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.cover-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(3, 10, 30, 0.62) 0%,
    rgba(5, 16, 48, 0.42) 32%,
    rgba(4, 11, 32, 0.82) 72%,
    rgba(3, 8, 24, 0.96) 100%
  );
  z-index: 1;
}

.cover-inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 22px 14px;
  text-align: center;
  gap: 10px;
}

.cover-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(6, 19, 56, 0.82);
  border: 1.5px solid rgba(255, 213, 0, 0.6);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  color: var(--hw-yellow);
  backdrop-filter: blur(8px);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hw-red);
  box-shadow: 0 0 10px var(--hw-red);
  animation: pulseDot 1.3s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.cover-visual-stack {
  position: relative;
  width: 240px;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.cover-badge-3 {
  position: absolute;
  top: -10px;
  right: 12px;
  width: 112px;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
  animation: floatSlow 3.2s ease-in-out infinite;
  z-index: 2;
}

.cover-hero-car {
  position: relative;
  width: 210px;
  height: auto;
  object-fit: contain;
  transform: translate(-18px, 18px);
  filter: drop-shadow(0 14px 22px rgba(255, 94, 0, 0.5));
  animation: carHover 2.8s ease-in-out infinite;
  z-index: 3;
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

@keyframes carHover {
  0%, 100% { transform: translate(-18px, 18px) rotate(-2deg); }
  50% { transform: translate(-12px, 12px) rotate(1deg); }
}

.cover-title-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.cover-kicker {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--hw-yellow);
  text-shadow: 0 2px 10px rgba(255, 94, 0, 0.7);
}

.cover-name {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0.5px;
  font-style: italic;
  color: #ffffff;
  text-shadow:
    0 3px 0 #b81d00,
    0 6px 18px rgba(0, 0, 0, 0.8);
}

.cover-name span {
  display: block;
  font-size: 22px;
  text-shadow: none;
  background: linear-gradient(180deg, #ffffff 10%, #ffd500 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 rgba(168, 26, 0, 0.95)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.65));
}

.cover-age-ribbon {
  margin-top: 2px;
  padding: 5px 16px;
  background: linear-gradient(90deg, var(--hw-red), var(--hw-orange), var(--hw-yellow));
  color: #09132e;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.9px;
  transform: skewX(-12deg);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(255, 94, 0, 0.5);
}

.guest-pass-card {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: rgba(7, 20, 56, 0.82);
  border: 1.5px solid rgba(255, 140, 0, 0.6);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.guest-pass-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.guest-pass-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--hw-yellow);
  margin: 3px 0 2px;
  word-break: break-word;
}

.guest-pass-date {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

.btn-ignition {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 290px;
  padding: 15px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2222 0%, #ff6a00 52%, #ffc800 100%);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(255, 85, 0, 0.55),
    inset 0 2px 2px rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulseBtn 2s infinite;
}

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

.btn-ignition-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-25deg);
  animation: shineSweep 2.6s infinite;
}

@keyframes shineSweep {
  0% { left: -80%; }
  55%, 100% { left: 135%; }
}

@keyframes pulseBtn {
  0%, 100% { box-shadow: 0 10px 28px rgba(255, 85, 0, 0.5), 0 0 0 0 rgba(255, 140, 0, 0.55); }
  50% { box-shadow: 0 12px 32px rgba(255, 85, 0, 0.7), 0 0 0 12px rgba(255, 140, 0, 0); }
}

.cover-hint {
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.9;
}

/* ============================================================
   MAIN CONTENT & SHARED SECTIONS
   ============================================================ */
.main-content {
  padding-bottom: 86px;
}

.section {
  position: relative;
  padding: 46px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 94, 0, 0.18);
  border: 1px solid rgba(255, 140, 0, 0.55);
  color: var(--hw-yellow);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.15;
  font-style: italic;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff 20%, #ffd500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.5));
}

.section-desc {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SECTION 1: HERO SECTION
   ============================================================ */
.hero-section {
  min-height: 96dvh;
  padding: 0 0 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 12, 34, 0.52) 0%,
    rgba(6, 20, 58, 0.35) 35%,
    rgba(5, 14, 40, 0.85) 82%,
    #06153b 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 20px 8px;
}

.pit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(6, 20, 56, 0.84);
  border: 1.5px solid var(--hw-orange);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--hw-yellow);
  box-shadow: var(--shadow-glow-orange);
}

.hero-badge-wrap {
  margin-top: 12px;
}

.hero-badge-img {
  width: 148px;
  height: 148px;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6));
  animation: floatSlow 3.5s ease-in-out infinite;
}

.hero-name {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
  font-style: italic;
  color: #ffffff;
  text-shadow:
    0 4px 0 #c9180c,
    0 8px 24px rgba(0, 0, 0, 0.85);
}

.hero-name-sub {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  text-shadow: none;
  background: linear-gradient(180deg, #fff 15%, #ffd500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #b81d00) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.hero-ribbon {
  margin-top: 12px;
  padding: 7px 20px;
  background: linear-gradient(90deg, var(--hw-yellow), #ff9900);
  color: #08122b;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.6px;
  transform: skewX(-12deg);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(255, 138, 0, 0.55);
}

.hero-ribbon span {
  display: inline-block;
  transform: skewX(12deg);
}

.hero-subtitle {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 330px;
}

.hero-car-stage {
  position: relative;
  margin-top: 12px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.speed-aura {
  position: absolute;
  width: 240px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.6), transparent 70%);
  bottom: 34px;
  filter: blur(18px);
}

.hero-car-img {
  position: relative;
  z-index: 2;
  width: 260px;
  max-width: 85%;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.7));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-car-img.revving {
  animation: revShake 0.45s ease;
}

@keyframes revShake {
  0% { transform: scale(1) translateX(0); }
  20% { transform: scale(1.06) translateX(-8px) rotate(-2deg); }
  45% { transform: scale(1.08) translateX(8px) rotate(2deg); }
  70% { transform: scale(1.05) translateX(-5px) rotate(-1deg); }
  100% { transform: scale(1) translateX(0); }
}

.car-tap-pill {
  margin-top: 4px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 11.5px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.scroll-cue {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--hw-yellow);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.scroll-chevron {
  font-size: 20px;
  line-height: 1;
  animation: bounceY 1.6s infinite;
}

@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============================================================
   SECTION 2: DRIVER PROFILE (HOT WHEELS BLISTER PACK)
   ============================================================ */
.profile-section {
  background: linear-gradient(180deg, #06153b 0%, #091d52 100%);
}

.blister-card {
  position: relative;
  border-radius: 26px;
  padding: 22px 18px 20px;
  background: linear-gradient(160deg, #0f46d8 0%, #092062 55%, #061233 100%);
  border: 2.5px solid var(--hw-orange);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 0 4px rgba(255, 213, 0, 0.18);
  overflow: hidden;
}

.blister-hook {
  width: 58px;
  height: 16px;
  border-radius: 999px;
  background: #040b1f;
  border: 2px solid rgba(255, 255, 255, 0.25);
  margin: 0 auto 14px;
}

.blister-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.blister-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.flame-badge {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--hw-red), var(--hw-orange));
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  letter-spacing: 0.8px;
  color: #fff;
}

.edition-no {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-soft);
}

.blister-age-chip {
  padding: 6px 12px;
  border-radius: 12px;
  background: var(--hw-yellow);
  color: #071230;
  font-family: var(--font-display);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 213, 0, 0.4);
}

.blister-visual {
  position: relative;
  margin: 10px 0 14px;
  padding: 16px;
  border-radius: 20px;
  background: radial-gradient(circle at center, rgba(36, 210, 255, 0.22) 0%, rgba(4, 14, 42, 0.72) 72%);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 6px 20px rgba(255, 255, 255, 0.14);
}

.blister-car {
  width: 210px;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
}

.blister-info {
  text-align: center;
}

.blister-driver-name {
  font-family: var(--font-display);
  font-size: 21px;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.blister-driver-role {
  font-size: 13px;
  color: var(--hw-yellow);
  font-weight: 600;
  margin-top: 4px;
}

.driver-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat-item {
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(4, 12, 34, 0.72);
  border: 1px solid rgba(255, 140, 0, 0.35);
}

.stat-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 700;
}

.stat-value {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
}

.greeting-card {
  margin-top: 18px;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1.5px solid rgba(36, 210, 255, 0.25);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.greeting-salam {
  font-size: 15px;
  font-weight: 800;
  color: var(--hw-yellow);
  margin-bottom: 8px;
}

.greeting-body {
  font-size: 13.8px;
  line-height: 1.65;
  color: var(--text-soft);
}

.greeting-sign {
  margin-top: 12px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--hw-orange-bright);
}

/* ============================================================
   SECTION 3: COUNTDOWN SCOREBOARD
   ============================================================ */
.countdown-section {
  background: linear-gradient(180deg, #091d52 0%, #050f2e 100%);
}

.track-divider {
  width: 90px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hw-red), var(--hw-orange), var(--hw-yellow));
  margin: 0 auto 24px;
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 12px;
  border-radius: var(--radius-xl);
  background: #03091a;
  border: 2px solid var(--hw-orange);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.65),
    inset 0 0 24px rgba(255, 94, 0, 0.16);
}

.score-box {
  flex: 1;
  padding: 12px 4px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0c1f52 0%, #06102d 100%);
  border: 1px solid rgba(255, 213, 0, 0.28);
  text-align: center;
}

.score-num {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
  color: var(--hw-yellow);
  text-shadow: 0 0 14px rgba(255, 140, 0, 0.7);
}

.score-label {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: var(--text-muted);
}

.score-sep {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--hw-orange);
}

.countdown-cta {
  margin-top: 18px;
  text-align: center;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.btn-secondary,
.btn-outline,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-primary:active,
.btn-secondary:active,
.btn-outline:active,
.btn-whatsapp:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--hw-red) 0%, var(--hw-orange) 60%, var(--hw-orange-bright) 100%);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(255, 94, 0, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #ffd500, #ff9500);
  color: #071331;
  box-shadow: 0 8px 22px rgba(255, 174, 0, 0.35);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #1ea952, #128c45);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(30, 169, 82, 0.35);
}

.full {
  width: 100%;
}

.sm {
  padding: 10px 14px;
  font-size: 13px;
}

/* ============================================================
   SECTION 4: EVENT DETAILS & LOCATION
   ============================================================ */
.event-section {
  background: linear-gradient(180deg, #050f2e 0%, #091e55 100%);
}

.loop-showcase {
  display: flex;
  justify-content: center;
  margin: -8px 0 -22px;
  position: relative;
  z-index: 2;
}

.loop-img {
  width: 245px;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.65));
}

.event-card {
  position: relative;
  z-index: 3;
  padding: 26px 18px 20px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.event-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.event-row:last-of-type {
  border-bottom: none;
}

.event-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.28), rgba(255, 213, 0, 0.18));
  border: 1px solid rgba(255, 140, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.event-detail {
  flex: 1;
}

.event-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--hw-yellow);
}

.event-value {
  display: block;
  margin-top: 2px;
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
}

.event-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.45;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-soft);
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.swatch-dot.red { background: #ff2c2c; }
.swatch-dot.blue { background: #1e78ff; }
.swatch-dot.yellow { background: #ffd500; }

.event-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   SECTION 5: RUNDOWN ORANGE TRACK TIMELINE
   ============================================================ */
.rundown-section {
  background: linear-gradient(180deg, #091e55 0%, #050f2d 100%);
}

.track-timeline {
  position: relative;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.track-timeline::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 12px;
  bottom: 12px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hw-yellow), var(--hw-orange), var(--hw-red));
  box-shadow: 0 0 14px rgba(255, 94, 0, 0.65);
}

.timeline-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.timeline-node {
  position: relative;
  z-index: 2;
  margin-left: -24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7b00, #ff2a00);
  border: 3px solid #ffd500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 94, 0, 0.6);
}

.timeline-card {
  flex: 1;
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(255, 140, 0, 0.3);
}

.timeline-time {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(255, 213, 0, 0.16);
  color: var(--hw-yellow);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 5px;
}

.timeline-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.timeline-card p {
  margin-top: 4px;
  font-size: 12.8px;
  line-height: 1.5;
  color: var(--text-soft);
}

/* ============================================================
   SECTION 6: GARAGE GALLERY & GIFT
   ============================================================ */
.gallery-section {
  background: linear-gradient(180deg, #050f2d 0%, #091d52 100%);
}

.garage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.garage-card {
  background: linear-gradient(160deg, rgba(16, 56, 168, 0.55), rgba(6, 17, 48, 0.92));
  border: 1.5px solid rgba(255, 140, 0, 0.45);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #ffffff;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.garage-card:active {
  transform: scale(0.96);
}

.garage-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(36, 210, 255, 0.18), rgba(4, 10, 28, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
}

.garage-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.garage-thumb.cover-fit {
  padding: 0;
}

.garage-thumb.cover-fit img {
  object-fit: cover;
}

.garage-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--hw-yellow);
  text-align: center;
}

.gift-card {
  margin-top: 22px;
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 1.5px dashed rgba(255, 213, 0, 0.5);
  text-align: center;
}

.gift-icon {
  font-size: 30px;
  margin-bottom: 6px;
}

.gift-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--hw-yellow);
}

.gift-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.gift-address-box {
  margin: 14px 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(4, 12, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gift-address-box strong {
  font-size: 13.5px;
  color: #ffffff;
}

.gift-address-box span {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 7: RSVP & WISHES WALL
   ============================================================ */
.rsvp-section {
  background: linear-gradient(180deg, #091d52 0%, #040c22 100%);
}

.rsvp-card {
  padding: 20px 18px;
  border-radius: var(--radius-xl);
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--hw-yellow);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(4, 11, 31, 0.85);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--hw-orange);
}

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

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.rsvp-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.summary-pill {
  padding: 12px 8px;
  border-radius: 14px;
  background: rgba(8, 22, 60, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

.summary-pill strong {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--hw-yellow);
}

.summary-pill.hadir strong { color: #39e58c; }
.summary-pill.ragu strong { color: #ffba33; }

.summary-pill span {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.wishes-wall {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wish-item {
  padding: 14px 15px;
  border-radius: var(--radius-lg);
  background: rgba(8, 22, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.14);
  animation: fadeInWish 0.4s ease;
}

@keyframes fadeInWish {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wish-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wish-author {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.wish-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.wish-badge.Hadir { background: rgba(57, 229, 140, 0.2); color: #54f5a3; }
.wish-badge.Masih\ Ragu { background: rgba(255, 186, 51, 0.2); color: #ffd066; }
.wish-badge.Tidak\ Hadir { background: rgba(255, 92, 92, 0.2); color: #ff8c8c; }

.wish-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.wish-meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================================
   SECTION 8: CLOSING FOOTER
   ============================================================ */
.closing-section {
  background: linear-gradient(180deg, #040c22 0%, #091d52 100%);
  text-align: center;
}

.closing-inner {
  padding: 36px 22px 40px;
}

.closing-badge {
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}

.closing-inner h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-style: italic;
  color: var(--hw-yellow);
}

.closing-inner p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-soft);
}

.closing-family {
  margin-top: 14px;
  color: #ffffff !important;
}

.btn-share-helper {
  margin-top: 20px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 213, 0, 0.55);
  background: rgba(255, 213, 0, 0.12);
  color: var(--hw-yellow);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}

/* ============================================================
   FLOATING CONTROLS & STICKY BOTTOM NAV
   ============================================================ */
.floating-controls {
  position: fixed;
  right: max(12px, calc(50% - 203px));
  top: 22px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.floating-controls.visible {
  opacity: 1;
  pointer-events: auto;
}

.fab-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 213, 0, 0.65);
  background: rgba(7, 20, 56, 0.88);
  color: #ffffff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
}

.fab-btn.playing {
  animation: spinSlow 4s linear infinite;
  border-color: #39e58c;
}

.fab-btn.orange {
  background: linear-gradient(135deg, var(--hw-red), var(--hw-orange));
  border-color: var(--hw-yellow);
}

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

.bottom-nav {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 406px;
  z-index: 130;
  padding: 7px 6px;
  border-radius: 20px;
  background: rgba(5, 14, 42, 0.92);
  border: 1.5px solid rgba(255, 140, 0, 0.55);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.bottom-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon {
  font-size: 16px;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(255, 94, 0, 0.35), rgba(255, 213, 0, 0.2));
  color: var(--hw-yellow);
}

/* ============================================================
   MODALS & TOAST
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(2, 7, 22, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 22px 18px 20px;
  border-radius: var(--radius-xl);
  background: #081842;
  border: 2px solid var(--hw-orange);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 16px;
  cursor: pointer;
}

.lightbox-card img {
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
  border-radius: 14px;
  margin-top: 10px;
}

.lightbox-card p {
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hw-yellow);
}

.share-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--hw-yellow);
}

.share-desc {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.share-card input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: #040b1f;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 14px;
}

.share-preview-url {
  margin: 12px 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(4, 11, 31, 0.85);
  font-size: 11.5px;
  color: var(--hw-cyan);
  word-break: break-all;
}

.share-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -24px);
  z-index: 400;
  padding: 11px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5e00, #ff9900);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  white-space: nowrap;
}

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