/* ==========================================================================
   جشن تولد امیررضا - Amir Reza Birthday Celebration Microsite
   Design System & Styling
   Pure Modern CSS - Mobile First, Fully Responsive, RTL
   ========================================================================== */

:root {
  /* Color Palette: Midnight Indigo, Electric Violet, Champagne Gold & Rose */
  --bg-dark: #070a12;
  --bg-card: rgba(18, 24, 38, 0.72);
  --bg-card-hover: rgba(26, 34, 54, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(245, 158, 11, 0.45);

  --accent-gold: #f59e0b;
  --accent-gold-light: #fcd34d;
  --accent-gold-glow: rgba(245, 158, 11, 0.35);
  --accent-violet: #8b5cf6;
  --accent-violet-light: #a78bfa;
  --accent-cyan: #38bdf8;
  --accent-rose: #f43f5e;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-gold: #fbbf24;

  /* Typography */
  --font-main: "Vazirmatn", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, sans-serif;
  --font-display: "Vazirmatn", system-ui, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.38);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.22);
  --shadow-gold: 0 0 35px rgba(245, 158, 11, 0.28);

  /* Radius */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Animation Timings */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  direction: rtl;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-dark);
  line-height: 1.65;
  padding-bottom: env(safe-area-inset-bottom, 24px);
}

/* Canvas Confetti Layer */
#celebrationCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  contain: strict;
}

/* Atmospheric Ambient Background */
.ambient-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  overflow: hidden;
  contain: strict;
}

.ambient-scene.is-paused .aurora-mesh {
  animation-play-state: paused;
}

.aurora-mesh {
  position: absolute;
  inset: -20%;
  background: 
    radial-gradient(circle at 75% 15%, rgba(139, 92, 246, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 20% 40%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 85%, rgba(245, 158, 11, 0.11) 0%, transparent 55%),
    radial-gradient(circle at 35% 85%, rgba(244, 63, 94, 0.1) 0%, transparent 45%);
  filter: blur(50px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  animation: auroraFlow 22s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
  0% { transform: scale(1) rotate(0deg) translate3d(0, 0, 0); }
  50% { transform: scale(1.08) rotate(2.5deg) translate3d(0, 0, 0); }
  100% { transform: scale(0.96) rotate(-2deg) translate3d(0, 0, 0); }
}

.ambient-stars {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(1px 1px at 15% 20%, rgba(255, 255, 255, 0.5) 100%, transparent),
    radial-gradient(1.5px 1.5px at 45% 10%, rgba(253, 224, 71, 0.6) 100%, transparent),
    radial-gradient(1px 1px at 75% 35%, rgba(255, 255, 255, 0.4) 100%, transparent),
    radial-gradient(1.5px 1.5px at 85% 65%, rgba(216, 180, 254, 0.5) 100%, transparent),
    radial-gradient(1px 1px at 25% 75%, rgba(255, 255, 255, 0.45) 100%, transparent),
    radial-gradient(1.5px 1.5px at 60% 80%, rgba(254, 240, 138, 0.5) 100%, transparent);
  background-size: 280px 280px;
  opacity: 0.7;
  transform: translateZ(0);
}

/* ==========================================================================
   Festive Party Bunting / Garland (Hanging Pennants)
   Fixed to top of viewport; stays attached to screen ceiling when scrolling
   ========================================================================== */
.bunting-wrapper {
  position: fixed;
  top: 0;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  width: 100%;
  height: 72px;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  opacity: 0;
  animation: buntingWrapperFade 1.2s var(--ease-smooth) 0.3s forwards;
}

@media (min-width: 640px) {
  .bunting-wrapper {
    height: 82px;
  }
}

@keyframes buntingWrapperFade {
  to {
    opacity: 1;
  }
}

.bunting-wrapper.is-paused .bunting-flag-poly {
  animation-play-state: paused;
}

.bunting-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
  transform-origin: top center;
  transform: translateY(-8px);
  animation: buntingSvgDrop 1.2s var(--ease-smooth) 0.3s forwards;
}

@keyframes buntingSvgDrop {
  to {
    transform: translateY(0);
  }
}

.bunting-rope-path {
  fill: none;
  stroke: rgba(245, 158, 11, 0.45);
  stroke-width: 1.5;
  stroke-dasharray: 4 2;
}

.bunting-flag-poly {
  transform-box: fill-box;
  transform-origin: top center;
  transition: transform 0.3s ease;
}

.flag-anim-1 { animation: flagSway1 3.2s ease-in-out infinite alternate; }
.flag-anim-2 { animation: flagSway2 2.8s ease-in-out infinite alternate 0.4s; }
.flag-anim-3 { animation: flagSway3 3.5s ease-in-out infinite alternate 0.8s; }

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

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

@keyframes flagSway3 {
  0% { transform: rotate(-2.5deg); }
  100% { transform: rotate(2deg); }
}

/* Top Action Bar (Sound & Celebration Burst) */
.header-actions {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 60;
  pointer-events: auto;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.action-pill:hover {
  background: rgba(30, 41, 64, 0.85);
  border-color: rgba(245, 158, 11, 0.35);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.action-pill:active {
  transform: scale(0.96);
}

.action-pill svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.action-pill.active {
  color: var(--accent-gold);
  border-color: var(--accent-gold-glow);
}

/* ==========================================================================
   Page Layout & Container
   ========================================================================== */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 96vh;
  min-height: 96dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 95px 0 45px;
  position: relative;
}

.hero-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* VIP Ribbon Badge */
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(245, 158, 11, 0.32);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 0.4px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.12);
  margin-bottom: 20px;
  position: relative;
}

.vip-badge::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 4px 28px rgba(245, 158, 11, 0.28);
  opacity: 0;
  pointer-events: none;
  animation: badgeGlowComposite 4s ease-in-out infinite alternate;
}

@keyframes badgeGlowComposite {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.vip-badge-icon {
  display: inline-block;
  color: var(--accent-gold);
  transform: translateZ(0);
  animation: starSpin 6s linear infinite;
}

@keyframes starSpin {
  0% { transform: rotate(0deg) scale(1) translateZ(0); }
  50% { transform: rotate(180deg) scale(1.15) translateZ(0); }
  100% { transform: rotate(360deg) scale(1) translateZ(0); }
}

/* Hero Title - Name */
.hero-title-wrap {
  position: relative;
  margin-bottom: 12px;
}

.hero-title-name {
  font-size: clamp(48px, 14vw, 86px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 0;
  background: linear-gradient(135deg, #ffffff 15%, #fde68a 50%, #c084fc 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  display: inline-block;
}

.hero-title-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.25) 0%, transparent 68%);
  filter: blur(28px);
  z-index: -1;
  pointer-events: none;
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(17px, 4.2vw, 21px);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto 28px;
}

/* Date Pill in Hero */
.hero-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  margin-bottom: 34px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.hero-date-pill:hover {
  border-color: var(--border-focus);
  background: rgba(255, 255, 255, 0.08);
}

.hero-date-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-date-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.hero-date-divider {
  width: 1px;
  height: 18px;
  background: var(--border-subtle);
}

/* ==========================================================================
   Countdown Section (Integrated in Hero)
   ========================================================================== */
.countdown-container {
  width: 100%;
  max-width: 540px;
  background: linear-gradient(180deg, rgba(26, 34, 54, 0.65) 0%, rgba(15, 21, 36, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 20px 20px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.countdown-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent-violet), transparent);
}

.countdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 0 4px;
}

.countdown-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold-light);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseLive 2s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
}

.countdown-target-note {
  font-size: 12px;
  color: var(--text-muted);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.countdown-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 6px 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.countdown-cell:hover {
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.countdown-number {
  font-size: clamp(26px, 6.5vw, 36px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}

.countdown-cell:first-child .countdown-number {
  color: var(--accent-gold-light);
}

.countdown-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.countdown-expired-msg {
  display: none;
  padding: 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1.7;
}

/* Scroll Down Prompt */
.scroll-indicator {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
  cursor: pointer;
}

.scroll-indicator:hover {
  color: var(--accent-gold);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  position: relative;
}

.scroll-dot {
  width: 4px;
  height: 6px;
  background: var(--accent-gold);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0% { transform: translate(-50%, 0); opacity: 1; }
  75% { transform: translate(-50%, 12px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 0; }
}

/* ==========================================================================
   Sections & Cards Styling
   ========================================================================== */
.section {
  margin: 36px 0;
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
}

.section-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease-smooth), transform 0.75s var(--ease-smooth);
}

.section-reveal:not(.is-visible) {
  will-change: opacity, transform;
}

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

.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  contain: paint;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card-corner-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  pointer-events: none;
  contain: strict;
  transform: translateZ(0);
}

.card-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.card-title {
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 18px;
}

/* ==========================================================================
   Invitation Note Card (Editorial style)
   ========================================================================== */
.invitation-card {
  border-right: 3px solid var(--accent-gold);
}

.invitation-quote {
  font-size: 16px;
  line-height: 2.15;
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.invitation-quote p {
  margin-bottom: 14px;
}

.invitation-quote p:last-child {
  margin-bottom: 0;
}

.invitation-highlight {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.invitation-author-row {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.author-sig {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Interactive Wax Seal / Easter Egg Button */
.wax-seal-btn {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
  border: 2px solid rgba(254, 243, 199, 0.4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s ease;
  position: relative;
}

.wax-seal-btn:hover {
  transform: scale(1.12) rotate(8deg);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.6);
}

.wax-seal-btn:active {
  transform: scale(0.92);
}

.wax-seal-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ==========================================================================
   Event Details Section (Editorial Timeline & Visual Blocks)
   ========================================================================== */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.detail-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.detail-box:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 158, 11, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.detail-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-light);
  flex-shrink: 0;
}

.detail-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.detail-content {
  display: flex;
  flex-direction: column;
}

.detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.detail-sub {
  font-size: 12px;
  color: var(--accent-gold-light);
  margin-top: 3px;
}

/* ==========================================================================
   Location Section
   ========================================================================== */
.location-preview-card {
  position: relative;
  background: linear-gradient(180deg, rgba(30, 41, 64, 0.4) 0%, rgba(15, 23, 42, 0.7) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.location-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.location-radar {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
  position: relative;
}

.location-radar::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 1px dashed rgba(56, 189, 248, 0.3);
  will-change: transform;
  transform: translateZ(0);
  animation: radarRotate 12s linear infinite;
}

.location-radar.is-paused::after {
  animation-play-state: paused;
}

@keyframes radarRotate {
  to { transform: rotate(360deg) translateZ(0); }
}

.location-radar svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

.location-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.location-text span {
  font-size: 13px;
  color: var(--text-muted);
}

.copy-coords-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-coords-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

.copy-coords-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */
.btn-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  flex: 1;
  min-width: 170px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  outline: none;
  user-select: none;
  transition: all 0.25s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.4);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(1px) scale(0.98);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

/* ==========================================================================
   RSVP Section (Strong Call to Action)
   ========================================================================== */
.rsvp-card {
  background: linear-gradient(145deg, rgba(26, 32, 54, 0.85) 0%, rgba(17, 22, 38, 0.95) 100%);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-md), 0 0 45px rgba(245, 158, 11, 0.15);
}

.rsvp-question-tag {
  display: inline-block;
  font-size: clamp(34px, 8.5vw, 44px);
  font-weight: 900;
  color: var(--accent-gold-light);
  line-height: 1.1;
  margin-bottom: 10px;
}

.rsvp-contact-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.rsvp-phone-badge {
  direction: ltr;
  font-family: monospace, var(--font-main);
  font-weight: 800;
  font-size: 15px;
  color: var(--accent-gold);
}

/* ==========================================================================
   Modal / Bottom Sheet (Navigation Chooser)
   ========================================================================== */
.map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-smooth);
}

.map-modal-overlay.is-active,
.map-modal-overlay:target {
  opacity: 1;
  pointer-events: auto;
}

.map-sheet {
  width: 100%;
  max-width: 480px;
  background: #111726;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  padding: 24px 22px calc(24px + env(safe-area-inset-bottom, 12px));
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.65);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease-spring);
  position: relative;
  direction: rtl;
}

.map-modal-overlay.is-active .map-sheet,
.map-modal-overlay:target .map-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  margin: 0 auto 18px;
}

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.modal-title-group h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.modal-title-group p {
  font-size: 13px;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  transform: scale(1.05);
}

.map-app-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-app-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.map-app-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(245, 158, 11, 0.35);
  transform: translateX(-4px);
}

.map-app-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.map-app-badge.google {
  background: linear-gradient(135deg, #1a73e8, #4285f4);
  box-shadow: 0 4px 14px rgba(66, 133, 244, 0.35);
}

.map-app-badge.waze {
  background: linear-gradient(135deg, #00d2d3, #33d9b2);
  box-shadow: 0 4px 14px rgba(0, 210, 211, 0.35);
}

.map-app-details {
  flex: 1;
}

.map-app-card.primary-map-app-card {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.map-app-card.primary-map-app-card:hover {
  border-color: rgba(245, 158, 11, 0.7);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14), rgba(255, 255, 255, 0.06));
}

.map-app-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.map-app-title-row strong {
  margin-bottom: 0;
}

.primary-map-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: var(--accent-gold-light);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.map-app-details strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 3px;
}

.map-app-details small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.map-app-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transform: scaleX(-1); /* RTL arrow */
}

/* Modal Desktop Centering */
@media (min-width: 640px) {
  .map-modal-overlay {
    align-items: center;
    padding: 24px;
  }
  .map-sheet {
    border-radius: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transform: scale(0.95) translateY(20px);
    padding-bottom: 24px;
  }
  .map-modal-overlay.is-active .map-sheet,
  .map-modal-overlay:target .map-sheet {
    transform: scale(1) translateY(0);
  }
  .sheet-handle {
    display: none;
  }
}

/* ==========================================================================
   Toast Notification & Easter Egg Banner
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--accent-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-gold);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10001;
  pointer-events: none;
  opacity: 0;
  transition: all 0.35s var(--ease-spring);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 50px 20px 40px;
  position: relative;
  z-index: 10;
}

.footer-burst-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--accent-gold-light);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 24px;
  transition: all 0.25s ease;
}

.footer-burst-btn:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

.footer-text {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
}

.footer-sparkle {
  color: var(--accent-gold);
  margin: 0 4px;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .hero-section {
    padding-top: 85px;
    min-height: auto;
  }
  .countdown-container {
    padding: 18px 14px 16px;
  }
  .countdown-grid {
    gap: 6px;
  }
  .countdown-cell {
    padding: 12px 4px 10px;
  }
  .countdown-number {
    font-size: 24px;
  }
  .countdown-unit {
    font-size: 11px;
  }
  .card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .details-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .btn {
    min-width: 100%;
  }
  .hero-date-pill {
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius-md);
    padding: 14px 18px;
  }
  .hero-date-divider {
    display: none;
  }
}

/* Fallback for older browsers without hardware backdrop-filter support */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :root {
    --bg-card: rgba(18, 24, 38, 0.94);
  }
  .action-pill {
    background: rgba(22, 30, 48, 0.92);
  }
  .hero-date-pill {
    background: rgba(26, 34, 52, 0.92);
  }
  .countdown-container {
    background: rgba(20, 27, 44, 0.96);
  }
  .map-modal-overlay {
    background: rgba(4, 7, 14, 0.92);
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .section-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
