/* ==========================================================================
   CELESTIAL NOCTURNE / STARRY GALA — DESIGN SYSTEM
   Primary Background : #060E20 (Deep Navy)
   Surface / Card     : #0B1B3D (Midnight Blue)
   Primary Accent     : #D4AF37 (Champagne Gold)
   Text & Soft Surface: #F3E5AB (Soft Cream)
   ========================================================================== */

:root {
  --bg-deep-navy: #060E20;
  --surface-midnight: #0B1B3D;
  --surface-midnight-glass: rgba(11, 27, 61, 0.78);
  --surface-midnight-solid: #0D2047;
  --accent-gold: #D4AF37;
  --accent-gold-light: #F3DC86;
  --accent-gold-dark: #9B7B1E;
  --soft-cream: #F3E5AB;
  --soft-cream-muted: rgba(243, 229, 171, 0.76);
  --soft-cream-dim: rgba(243, 229, 171, 0.52);

  --border-gold: rgba(212, 175, 55, 0.4);
  --border-gold-strong: rgba(212, 175, 55, 0.75);
  --border-gold-subtle: rgba(212, 175, 55, 0.18);

  --status-success: #34D399;
  --status-warning: #F59E0B;
  --status-danger: #F87171;
  --status-info: #60A5FA;

  --radius-card: 16px;
  --radius-pill: 999px;

  --font-display: 'Cinzel Decorative', 'Cormorant Garamond', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Alex Brush', 'Pinyon Script', cursive;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-celestial: 0 20px 60px rgba(2, 6, 18, 0.72), 0 0 0 1px rgba(212, 175, 55, 0.16);
  --shadow-gold-glow: 0 0 28px rgba(212, 175, 55, 0.28);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep-navy);
  color: var(--soft-cream);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(20, 44, 96, 0.55) 0%, rgba(6, 14, 32, 0) 70%),
    linear-gradient(180deg, #060E20 0%, #091633 48%, #0B1B3D 78%, #060E20 100%);
  color: var(--soft-cream);
  line-height: 1.65;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #050B19;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.65);
}

/* Canvas Starfield Background */
#celestial-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Silk / Velvet Wave Overlay */
.velvet-wave {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 15% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 55%),
    radial-gradient(90% 50% at 85% 75%, rgba(24, 58, 128, 0.32) 0%, transparent 60%),
    linear-gradient(125deg, rgba(255, 255, 255, 0.02) 0%, transparent 35%, rgba(212, 175, 55, 0.03) 65%, transparent 100%);
  mix-blend-mode: screen;
}

/* Main Content Layer */
.page-layer {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
.font-display {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
}

.font-serif {
  font-family: var(--font-serif);
}

.font-script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.25;
}

.text-gold {
  color: var(--accent-gold);
}

.text-cream {
  color: var(--soft-cream);
}

.text-cream-muted {
  color: var(--soft-cream-muted);
}

.text-cream-dim {
  color: var(--soft-cream-dim);
}

/* Shimmering Gold Heading */
.gold-shimmer {
  background: linear-gradient(
    110deg,
    #B89022 0%,
    #D4AF37 22%,
    #FFF3C4 48%,
    #D4AF37 72%,
    #B0871D 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmerFlow 6s linear infinite;
}

@keyframes shimmerFlow {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.eyebrow-label::before,
.eyebrow-label::after {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* ==========================================================================
   CARDS, ARCH FRAMES & ORNAMENTS
   ========================================================================== */
.celestial-card {
  background: linear-gradient(160deg, rgba(13, 32, 72, 0.88) 0%, rgba(8, 20, 46, 0.92) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-celestial);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}

.celestial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.08), transparent 55%);
  pointer-events: none;
}

/* Arch / Dome Luxury Frame with Subtle Celestial Constellation & Velvet Texture */
.arch-frame {
  border-radius: 220px 220px 18px 18px;
  border: 1px solid var(--border-gold);
  position: relative;
  overflow: hidden;
  background-color: #081530;
  background-image:
    radial-gradient(ellipse 75% 42% at 50% 10%, rgba(36, 78, 156, 0.34) 0%, transparent 65%),
    radial-gradient(circle at 18% 82%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 84% 24%, rgba(212, 175, 55, 0.07) 0%, transparent 42%),
    linear-gradient(175deg, rgba(16, 38, 84, 0.88) 0%, rgba(9, 22, 52, 0.94) 55%, rgba(6, 14, 32, 0.98) 100%);
  box-shadow: var(--shadow-celestial), inset 0 0 64px rgba(212, 175, 55, 0.07);
}

/* Subtle Celestial Arcs, Constellation Lines & Quiet Stardust Watermark */
.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 840' fill='none'%3E%3Ccircle cx='300' cy='210' r='175' stroke='%23D4AF37' stroke-opacity='0.09' stroke-width='0.9' stroke-dasharray='3 7'/%3E%3Ccircle cx='300' cy='210' r='235' stroke='%23D4AF37' stroke-opacity='0.06' stroke-width='0.8'/%3E%3Cpath d='M58 290 L132 235 L188 265 M412 248 L478 212 L538 272 M78 655 L146 692 L112 758 M454 680 L520 638 L544 714' stroke='%23D4AF37' stroke-opacity='0.11' stroke-width='0.85'/%3E%3Cg fill='%23F3E5AB'%3E%3Ccircle cx='58' cy='290' r='1.6' fill-opacity='0.35'/%3E%3Ccircle cx='132' cy='235' r='1.8' fill-opacity='0.32'/%3E%3Ccircle cx='188' cy='265' r='1.3' fill-opacity='0.26'/%3E%3Ccircle cx='412' cy='248' r='1.4' fill-opacity='0.26'/%3E%3Ccircle cx='478' cy='212' r='1.9' fill-opacity='0.34'/%3E%3Ccircle cx='538' cy='272' r='1.5' fill-opacity='0.3'/%3E%3Ccircle cx='78' cy='655' r='1.5' fill-opacity='0.3'/%3E%3Ccircle cx='146' cy='692' r='1.7' fill-opacity='0.28'/%3E%3Ccircle cx='112' cy='758' r='1.4' fill-opacity='0.32'/%3E%3Ccircle cx='454' cy='680' r='1.4' fill-opacity='0.26'/%3E%3Ccircle cx='520' cy='638' r='1.8' fill-opacity='0.32'/%3E%3Ccircle cx='544' cy='714' r='1.5' fill-opacity='0.28'/%3E%3Ccircle cx='215' cy='96' r='1.2' fill-opacity='0.3'/%3E%3Ccircle cx='392' cy='104' r='1.3' fill-opacity='0.28'/%3E%3Ccircle cx='96' cy='460' r='1.2' fill-opacity='0.24'/%3E%3Ccircle cx='504' cy='470' r='1.2' fill-opacity='0.24'/%3E%3Ccircle cx='252' cy='778' r='1.1' fill-opacity='0.24'/%3E%3Ccircle cx='366' cy='790' r='1.2' fill-opacity='0.24'/%3E%3C/g%3E%3Cg fill='%23D4AF37' fill-opacity='0.26'%3E%3Cpath d='M110 156 l2.2 6.8 6.8 2.2 -6.8 2.2 -2.2 6.8 -2.2 -6.8 -6.8 -2.2 6.8 -2.2z'/%3E%3Cpath d='M492 162 l2 6 6 2 -6 2 -2 6 -2 -6 -6 -2 6 -2z'/%3E%3Cpath d='M84 736 l1.8 5.2 5.2 1.8 -5.2 1.8 -1.8 5.2 -1.8 -5.2 -5.2 -1.8 5.2 -1.8z'/%3E%3Cpath d='M516 742 l1.8 5.2 5.2 1.8 -5.2 1.8 -1.8 5.2 -1.8 -5.2 -5.2 -1.8 5.2 -1.8z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
}

.arch-frame > * {
  position: relative;
  z-index: 1;
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 210px 210px 12px 12px;
  border: 1px solid rgba(212, 175, 55, 0.24);
  pointer-events: none;
  z-index: 2;
}

/* Ornamental Gold Divider */
.star-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px auto;
  max-width: 280px;
}

.star-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.65), transparent);
}

.star-divider svg {
  width: 18px;
  height: 18px;
  fill: var(--accent-gold);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.6));
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-gold-light);
  background: linear-gradient(135deg, #B89124 0%, #D4AF37 45%, #F0D678 100%);
  color: #060E20;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.26);
}

.btn-gold::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -120%;
  width: 65%;
  height: 200%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-24deg);
  transition: left 0.65s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.42);
  filter: brightness(1.06);
}

.btn-gold:hover::after {
  left: 145%;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-gold-strong);
  background: rgba(11, 27, 61, 0.55);
  color: var(--soft-cream);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.14);
  border-color: var(--accent-gold-light);
  color: #FFF4CC;
  box-shadow: 0 0 22px rgba(212, 175, 55, 0.22);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 10px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(6, 14, 32, 0.65);
  color: var(--soft-cream-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--soft-cream);
  background: rgba(212, 175, 55, 0.12);
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(6, 14, 32, 0.78);
  color: var(--soft-cream);
  font-family: var(--font-sans);
  font-size: 0.94rem;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(243, 229, 171, 0.38);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-gold);
  background: rgba(6, 14, 32, 0.94);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 46px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px 16px;
}

.form-select option {
  background: #0B1B3D;
  color: #F3E5AB;
}

[data-event-tagline],
[data-event-eyebrow] {
  white-space: pre-line;
}

.form-textarea {
  min-height: 108px;
  resize: vertical;
}

/* Radio Pill Selector */
.attendance-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.attendance-pill label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.34);
  background: rgba(6, 14, 32, 0.65);
  color: var(--soft-cream-muted);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.22s ease;
}

.attendance-pill input:checked + label {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.24), rgba(212, 175, 55, 0.08));
  color: #FFF4CC;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.22);
}

/* ==========================================================================
   BADGES & STATUS PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(212, 175, 55, 0.16);
  color: var(--accent-gold-light);
  border: 1px solid rgba(212, 175, 55, 0.45);
}

.badge-success {
  background: rgba(52, 211, 153, 0.14);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.42);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.badge-danger {
  background: rgba(248, 113, 113, 0.14);
  color: #FCA5A5;
  border: 1px solid rgba(248, 113, 113, 0.42);
}

.badge-info {
  background: rgba(96, 165, 250, 0.14);
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

/* ==========================================================================
   LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-block {
  padding: 84px 0;
  position: relative;
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.25;
}

.section-subtitle {
  color: var(--soft-cream-muted);
  max-width: 560px;
  margin: 12px auto 0;
  font-size: 0.96rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 14, 32, 0.82);
  border-bottom: 1px solid rgba(212, 175, 55, 0.24);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--soft-cream);
  min-width: 0;
}

.nav-brand svg {
  flex-shrink: 0;
}

.nav-brand-title {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.top-nav .btn-ghost {
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  color: var(--soft-cream-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-gold);
}

@media (max-width: 768px) {
  .nav-links.hide-mobile {
    display: none;
  }
  .top-nav-inner {
    height: 60px;
    gap: 10px;
  }
  .nav-brand-title {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
  }
  .top-nav .btn-ghost {
    padding: 7px 12px;
    font-size: 0.74rem;
    gap: 6px;
  }
  .section-block {
    padding: 58px 0;
  }
  .eyebrow-label {
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    line-height: 1.65;
  }
  .eyebrow-label::before,
  .eyebrow-label::after {
    display: none;
  }
  .floating-music-btn {
    width: 42px;
    height: 42px;
    right: 14px;
    bottom: 14px;
  }
}

/* ==========================================================================
   OPENING CURTAIN COVER (HERO)
   ========================================================================== */
.invitation-curtain {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 42%, #112859 0%, #060E20 74%);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.9s;
}

.invitation-curtain.opened {
  opacity: 0;
  transform: translateY(-40px) scale(1.03);
  visibility: hidden;
  pointer-events: none;
}

.curtain-card {
  width: 100%;
  max-width: 520px;
  padding: 64px 38px 56px;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: auto;
  background-color: #07132C;
  background-image:
    radial-gradient(ellipse 75% 42% at 50% 10%, rgba(36, 78, 156, 0.34) 0%, transparent 65%),
    radial-gradient(circle at 50% 48%, rgba(212, 175, 55, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 16% 84%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    linear-gradient(175deg, #0E234E 0%, #09183A 55%, #060E20 100%);
}

.curtain-envelope-wrap {
  position: relative;
  margin: 22px auto 26px;
  padding: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Soft Champagne-Gold Halo behind the Velvet Envelope */
.curtain-envelope-wrap::before {
  content: "";
  position: absolute;
  width: min(255px, 64vw);
  height: min(210px, 52vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(243, 229, 171, 0.28) 0%,
    rgba(212, 175, 55, 0.14) 42%,
    rgba(212, 175, 55, 0) 72%
  );
  filter: blur(14px);
  pointer-events: none;
  z-index: 0;
  animation: auraPulse 4.5s ease-in-out infinite;
}

.curtain-sparkle {
  position: absolute;
  fill: #F3E5AB;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.85));
  animation: sparkleTwinkle 3.2s ease-in-out infinite;
}

.curtain-sparkle.sp-1 { top: 8%; left: 10%; width: 16px; animation-delay: 0s; }
.curtain-sparkle.sp-2 { top: 18%; right: 8%; width: 12px; animation-delay: 1.1s; }
.curtain-sparkle.sp-3 { bottom: 12%; left: 12%; width: 11px; animation-delay: 2s; }
.curtain-sparkle.sp-4 { bottom: 18%; right: 11%; width: 15px; animation-delay: 0.6s; }

@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.82) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

@keyframes auraPulse {
  0%, 100% { opacity: 0.78; transform: scale(0.96); }
  50% { opacity: 1; transform: scale(1.06); }
}

.curtain-envelope-img {
  position: relative;
  z-index: 1;
  width: min(252px, 64vw);
  height: auto;
  display: block;
  transform: rotate(-3deg);
  filter:
    drop-shadow(0 20px 34px rgba(2, 6, 18, 0.78))
    drop-shadow(0 0 26px rgba(212, 175, 55, 0.28));
  cursor: pointer;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), filter 0.38s ease;
  animation: envelopeFloat 4.6s ease-in-out infinite;
}

.curtain-envelope-img:hover {
  transform: rotate(-1deg) scale(1.045);
  filter:
    drop-shadow(0 24px 40px rgba(2, 6, 18, 0.84))
    drop-shadow(0 0 36px rgba(212, 175, 55, 0.45));
}

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

@media (max-width: 480px) {
  .curtain-card { padding: 48px 22px 44px; }
  .curtain-envelope-img { width: min(226px, 66vw); }
}

/* ==========================================================================
   CONSTELLATION COUNTDOWN CIRCLES
   ========================================================================== */
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

.constellation-ring {
  position: relative;
  aspect-ratio: 1;
  max-width: 148px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.constellation-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.constellation-ring .ring-track {
  fill: rgba(11, 27, 61, 0.65);
  stroke: rgba(212, 175, 55, 0.22);
  stroke-width: 2;
  stroke-dasharray: 4 5;
}

.constellation-ring .ring-progress {
  fill: none;
  stroke: var(--accent-gold);
  stroke-width: 2.6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.65));
  transition: stroke-dashoffset 0.6s ease;
}

.constellation-value {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.8vw, 2.2rem);
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1;
  z-index: 2;
}

.constellation-unit {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--soft-cream-muted);
  margin-top: 6px;
  z-index: 2;
}

/* ==========================================================================
   OFFICIAL E-TICKET QR PASS CARD (Soft Cream Double-Border Luxury Ticket)
   ========================================================================== */
.epass-wrapper {
  max-width: 430px;
  margin: 0 auto;
}

.epass-card {
  background: linear-gradient(180deg, #F8EDC8 0%, #F3E5AB 52%, #ECD995 100%);
  color: #060E20;
  border-radius: 22px;
  padding: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72), 0 0 36px rgba(212, 175, 55, 0.25);
  position: relative;
}

.epass-outer-frame {
  border: 1.5px solid rgba(176, 141, 44, 0.65);
  border-radius: 16px;
  padding: 6px;
}

.epass-inner-frame {
  border: 1px solid rgba(176, 141, 44, 0.42);
  border-radius: 12px;
  padding: 24px 22px 22px;
  text-align: center;
}

.epass-eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9E7D28;
}

.epass-org {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0B1B3D;
  line-height: 1.45;
  margin-top: 10px;
}

.epass-main-title {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #060E20;
  line-height: 1.1;
  margin-top: 8px;
}

.epass-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 600;
  color: #9E7D28;
  margin-top: 2px;
}

.epass-dashed-divider {
  border: none;
  border-top: 1px dashed rgba(168, 134, 42, 0.48);
  margin: 18px 0;
}

.epass-qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: #FFFFFF;
  border: 1.5px solid rgba(184, 147, 46, 0.65);
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(6, 14, 32, 0.08);
}

.epass-qr-box canvas,
.epass-qr-box img {
  display: block;
}

.epass-code-pill {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 22px;
  border-radius: 10px;
  background: rgba(186, 154, 64, 0.24);
  border: 1px solid rgba(168, 134, 42, 0.42);
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #060E20;
}

.epass-details-block {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.epass-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  text-align: left;
}

.epass-meta-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9E7D28;
}

.epass-meta-val {
  font-size: 0.96rem;
  font-weight: 700;
  color: #060E20;
  line-height: 1.38;
  margin-top: 3px;
}

.epass-footer-note {
  font-size: 0.78rem;
  color: #1A243B;
  line-height: 1.55;
  text-align: center;
}

/* ==========================================================================
   WISHES WALL
   ========================================================================== */
.wishes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.wish-card {
  background: #0B1B3D;
  border: 1px solid rgba(212, 175, 55, 0.34);
  border-radius: 16px;
  padding: 20px 22px;
  color: #F3E5AB;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.wish-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
}

.wish-message {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--soft-cream);
}

/* ==========================================================================
   SCANNER VIEWFINDER & LASER ANIMATION (PANITIA)
   ========================================================================== */
.scanner-stage {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #040A17;
  border: 1px solid var(--border-gold);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qr-reader {
  width: 100%;
  border: none !important;
}

#qr-reader video {
  border-radius: 14px;
  object-fit: cover !important;
}

/* Gold Corner Reticle Overlay */
.scanner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.scanner-reticle {
  position: relative;
  width: min(260px, 68%);
  aspect-ratio: 1;
}

.reticle-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border-color: #D4AF37;
  border-style: solid;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.75));
}
.reticle-tl { top: 0; left: 0; border-width: 4px 0 0 4px; border-top-left-radius: 12px; }
.reticle-tr { top: 0; right: 0; border-width: 4px 4px 0 0; border-top-right-radius: 12px; }
.reticle-bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-bottom-left-radius: 12px; }
.reticle-br { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-bottom-right-radius: 12px; }

.scanner-laser {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #FFF3B0, #D4AF37, #FFF3B0, transparent);
  box-shadow: 0 0 14px 3px rgba(212, 175, 55, 0.85);
  border-radius: 99px;
  animation: laserSweep 2.4s ease-in-out infinite;
}

@keyframes laserSweep {
  0%, 100% { top: 12px; opacity: 0.85; }
  50% { top: calc(100% - 14px); opacity: 1; }
}

/* ==========================================================================
   REAL-TIME CHECK-IN FEEDBACK BANNERS & STAR BURST
   ========================================================================== */
.scan-result-card {
  border-radius: 16px;
  padding: 20px 22px;
  border: 1px solid var(--border-gold);
  background: rgba(11, 27, 61, 0.9);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.scan-result-card.state-valid {
  border-color: #D4AF37;
  background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(11, 27, 61, 0.96));
  box-shadow: 0 0 36px rgba(212, 175, 55, 0.34);
  animation: pulseGold 0.65s ease;
}

.scan-result-card.state-duplicate {
  border-color: #F59E0B;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.16), rgba(11, 27, 61, 0.96));
  box-shadow: 0 0 28px rgba(245, 158, 11, 0.25);
}

.scan-result-card.state-invalid {
  border-color: #F87171;
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.16), rgba(11, 27, 61, 0.96));
  box-shadow: 0 0 28px rgba(248, 113, 113, 0.25);
}

@keyframes pulseGold {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.015); }
  100% { transform: scale(1); }
}

/* Starburst Particles for Successful Check-in */
.star-burst-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  overflow: hidden;
}

.burst-star {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, #FFF6C8 0%, #D4AF37 65%, transparent 100%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: starFly 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes starFly {
  0% { transform: translate(0, 0) scale(0.4) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.25) rotate(240deg); opacity: 0; }
}

/* ==========================================================================
   DATA TABLE (DASHBOARD BUKU TAMU)
   ========================================================================== */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.26);
}

.celestial-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
  font-size: 0.87rem;
}

.celestial-table thead th {
  text-align: left;
  padding: 14px 16px;
  background: rgba(6, 14, 32, 0.88);
  color: var(--accent-gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.celestial-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
  color: var(--soft-cream);
  vertical-align: middle;
}

.celestial-table tbody tr {
  background: rgba(11, 27, 61, 0.55);
  transition: background 0.18s ease;
}

.celestial-table tbody tr:hover {
  background: rgba(212, 175, 55, 0.08);
}

/* ==========================================================================
   MODAL & FLOATING CONTROLS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 9, 22, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-panel {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
}

.floating-music-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-gold);
  background: rgba(11, 27, 61, 0.88);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.5), 0 0 16px rgba(212, 175, 55, 0.25);
  transition: all 0.25s ease;
}

.floating-music-btn:hover {
  transform: scale(1.08);
  background: rgba(212, 175, 55, 0.18);
}

.floating-music-btn.playing {
  animation: musicSpin 8s linear infinite;
}

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

/* Toast Notification */
.toast-stack {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 180;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.toast-item {
  padding: 13px 18px;
  border-radius: 12px;
  background: rgba(11, 27, 61, 0.96);
  border: 1px solid var(--accent-gold);
  color: var(--soft-cream);
  font-size: 0.86rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Utility Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* Reveal Animations */
.fade-up {
  animation: fadeUp 0.7s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
