/* =============================================================================
   55th UAE NATIONAL DAY CELEBRATION — OFFICIAL VIP REGISTRATION & INVITATION
   Pure Black & Diplomatic Theme (Frameless & Clean)
   ============================================================================= */

:root {
  /* UAE National Colors */
  --uae-red: #cf142b;
  --uae-green: #00732f;
  --uae-white: #ffffff;
  --uae-black: #000000;

  /* Royal Gold Palette */
  --gold-primary: #d4af37;
  --gold-light: #f5e49e;
  --gold-bright: #ffd700;
  --gold-dark: #8e6f14;
  --gold-gradient: linear-gradient(135deg, #d4af37 0%, #fff2b2 35%, #d4af37 60%, #997510 100%);

  /* Deep Black Surfaces (Pure Black per User Request) */
  --bg-pure-black: #000000;
  --bg-card: #090909;
  --bg-input: #040404;

  /* Typography */
  --font-serif: 'Cinzel', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-accent: 'Montserrat', sans-serif;

  /* Shadows */
  --card-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-pure-black);
}

body.black-theme {
  font-family: var(--font-sans);
  background-color: var(--bg-pure-black) !important;
  color: #ffffff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Particles */
.ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Footer badge removed – replaced by inline tower text styling */


/* =============================================================================
   PHASE 1: FULL SCREEN BURJ KHALIFA & SIDE TITLES
   ============================================================================= */
.cinematic-tower-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.cinematic-tower-stage.active {
  opacity: 1;
  pointer-events: all;
}

.cinematic-tower-stage.fade-out {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Full Screen Tower Frame (Center, No Drop Shadow) */
.full-tower-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 21;
}

.tower-fullscreen-img {
  height: 100vh;
  width: auto;
  max-width: 100vw;
  object-fit: contain;
  display: block;
  filter: none !important;
  transform: translateY(100vh);
  animation: towerRiseFullscreen 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Flanking Side Titles (In empty space on left & right of tower) */
.tower-side-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 25;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5vw;
  pointer-events: none;
}

.side-panel {
  max-width: 400px;
  opacity: 0;
  transform: translateY(25px);
  animation: sideTitlesAppear 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.side-panel.left-side {
  text-align: left;
}

.side-panel.right-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Diplomatic badge with angled/slanted professional style */
.badge-diplomatic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  margin-bottom: 14px;
  background: transparent;
  padding: 7px 0px;
  border: none !important;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9), 0 0 30px rgba(0,0,0,0.8);
}

.badge-gem {
  color: var(--gold-bright);
}

/* Main heading – large, italic Cinzel with UAE styled */
.side-main-heading {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 2px;
  font-style: italic;
  text-transform: uppercase;
}

/* UAE word: colored with flag gradient (red → green → white) */
.uae-flag-word {
  display: inline-block;
  font-style: italic;
  font-size: 4.4rem;
  font-weight: 900;
  background: linear-gradient(135deg,
    #cf142b 0%,
    #cf142b 30%,
    #00732f 55%,
    #ffffff 80%,
    #f5f5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 18px rgba(207,20,43,0.45));
  letter-spacing: 4px;
}

/* "National Day" part – gold gradient */
.nat-day-word {
  display: block;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
  font-style: italic;
}

.gold-gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  filter: drop-shadow(0 4px 15px rgba(212, 175, 55, 0.4));
}

/* Right panel sub-heading */
.side-sub-heading {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-style: italic;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* Slanted date pill */
.side-date-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  padding: 6px 0px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-light);
  border: none !important;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 12px rgba(0,0,0,1), 0 0 25px rgba(0,0,0,0.9);
}

.pill-dot {
  color: var(--gold-bright);
}

/* =============================================================================
   PHASE 2: CONGRATULATORY MESSAGE CINEMATIC STAGE
   ============================================================================= */
.cinematic-message-stage {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 30;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.cinematic-message-stage.active {
  opacity: 1;
  pointer-events: all;
}

.cinematic-message-stage.fade-out {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.message-card-box {
  max-width: 820px;
  width: 100%;
  background: #080808;
  border-radius: var(--radius-lg);
  padding: 48px 52px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  position: relative;
  overflow: hidden;
  transform: translateY(30px);
  animation: messageBoxEntrance 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  /* NO gold border per user instruction */
  border: none !important;
}

.message-crest {
  margin-bottom: 16px;
}

.crest-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
}

.message-kicker {
  font-family: var(--font-accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.message-lead-text {
  font-family: var(--font-serif);
  font-size: 1.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #fff6cc 40%, #e2c058 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.message-gold-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.25) 50%, transparent 100%);
  margin: 18px auto 22px;
  max-width: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.div-diamond {
  color: var(--gold-bright);
  font-size: 12px;
  background: #080808;
  padding: 0 10px;
}

.message-body-text {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 28px;
}

.message-venue-block {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: #030303;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  color: var(--gold-light);
  /* NO gold border */
  border: none !important;
}

.venue-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.venue-separator {
  color: var(--gold-primary);
  opacity: 0.6;
}

/* =============================================================================
   PHASE 3: OFFICIAL GUEST REGISTRATION FORM (WITH SOFT UAE FLAG BACKDROP)
   ============================================================================= */
.portal-screen {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #000000;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.portal-screen.active {
  opacity: 1;
  transform: translateY(0);
}

/* Watermarked Soft UAE National Flag Backdrop (علم الإمارات بشكل مخفف) */
.portal-flag-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.88)), url('assets/Dubai Skyline with UAE Flag Ribbon.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 1;
  filter: blur(10px);
  transform: scale(1.06);
  pointer-events: none;
  z-index: 0;
}

.portal-container {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Card: Luxury Dark Blur Glassmorphism for crystal-clear readability */
.registration-card {
  position: relative;
  background: rgba(10, 14, 22, 0.90) !important;
  backdrop-filter: blur(32px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(32px) saturate(200%) !important;
  border-radius: 28px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 1px rgba(255, 255, 255, 0.15) !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* UAE 4-Stripe Line */
.uae-stripe-line {
  display: flex;
  height: 6px;
  width: 100%;
}

.u-red { flex: 1; background: var(--uae-red); }
.u-green { flex: 1; background: var(--uae-green); }
.u-white { flex: 1; background: var(--uae-white); }
.u-black { flex: 1; background: #222222; }

.card-inner-box {
  padding: 40px 44px;
  background: rgba(0, 0, 0, 0.5) !important;
}

/* Form Titles */
.form-title-group {
  text-align: center;
  margin-bottom: 30px;
}

.emblem-wrapper {
  margin-bottom: 12px;
}

.form-emblem-gold {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.event-diplomatic-label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #f59e0b;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-title-heading {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.form-subtitle-heading {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 12px;
}

.form-description {
  font-size: 0.92rem;
  color: #cbd5e1;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* Form Groups */
.guest-entry-form .form-group {
  margin-bottom: 22px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.req {
  color: var(--uae-red);
  font-weight: 800;
}

.input-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  pointer-events: none;
}

/* Clean Form Controls with subtle minimal border (NO gold frame) */
.form-control {
  width: 100%;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 15px 18px 15px 48px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #ffffff;
  transition: all 0.25s ease;
}

.form-control::placeholder {
  color: rgba(148, 163, 184, 0.45);
}

.form-control:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
  background: #000000 !important;
}

.form-control.has-error {
  border-color: var(--uae-red);
  box-shadow: 0 0 15px rgba(207, 20, 43, 0.4);
}

.error-msg {
  font-size: 0.8rem;
  color: #ff6b7b;
  margin-top: 5px;
  min-height: 18px;
  display: none;
}

.error-msg.visible {
  display: block;
}

/* Segmented Picker */
.segmented-wrapper {
  display: flex;
  gap: 12px;
}

.segmented-item {
  flex: 1;
  cursor: pointer;
}

.segmented-item input[type="radio"] {
  display: none;
}

.segmented-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  background: #000000 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  color: #94a3b8;
  transition: all 0.25s ease;
}

.segmented-item:hover .segmented-content {
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.segmented-item.active .segmented-content {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

/* Companion Accordion */
.companion-accordion {
  overflow: hidden;
  max-height: 260px;
  opacity: 1;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.companion-accordion.collapsed {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
  pointer-events: none;
}

/* Checkbox */
.confirm-wrapper {
  margin-top: 14px;
  margin-bottom: 28px;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.custom-checkbox {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background: #030303;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.check-mark {
  width: 14px;
  height: 14px;
  stroke: #000000;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox {
  background: var(--gold-gradient);
  border-color: var(--gold-bright);
}

.checkbox-container input[type="checkbox"]:checked + .custom-checkbox .check-mark {
  opacity: 1;
  transform: scale(1);
}

.confirm-label-text {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.45;
}

.checkbox-container:hover .confirm-label-text {
  color: #ffffff;
}

/* Submit Button */
.btn-royal-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--gold-gradient);
  color: #000000;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 17px 26px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-royal-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(212, 175, 55, 0.4);
}

.btn-royal-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(0, 0, 0, 0.3);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* =============================================================================
   PHASE 4: VIP INVITATION PASS & REVEAL (WITH LIVE QR)
   ============================================================================= */
.invitation-screen {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 20px 60px;
  background: #000000;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.invitation-screen.active {
  opacity: 1;
  transform: scale(1);
}

.celebration-headline {
  max-width: 680px;
  width: 100%;
  text-align: center;
  margin-bottom: 26px;
}

.vip-confirmed-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.congrats-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.congrats-sub {
  font-size: 0.98rem;
  color: #94a3b8;
  max-width: 580px;
  margin: 0 auto;
}

/* Pass */
.pass-wrapper {
  max-width: 760px;
  width: 100%;
  margin-bottom: 30px;
}

.diplomatic-invitation-card {
  position: relative;
  width: 100%;
  background: #080808;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.98);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-flag-top {
  display: flex;
  height: 8px;
  width: 100%;
}

.c-red { flex: 1; background: var(--uae-red); }
.c-green { flex: 1; background: var(--uae-green); }
.c-white { flex: 1; background: var(--uae-white); }
.c-black { flex: 1; background: #1a1a1a; }

.card-header-section {
  padding: 30px 36px 18px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.crest-frame {
  flex-shrink: 0;
}

.card-emblem-img {
  width: 82px;
  height: 82px;
  object-fit: cover;
  border-radius: 50%;
}

.mission-titles {
  display: flex;
  flex-direction: column;
}

.mission-name {
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.event-title-card {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.8px;
  line-height: 1.2;
}

.diplomatic-gala-tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.card-gold-divider {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
  margin: 4px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-diamond {
  color: var(--gold-bright);
  font-size: 10px;
  background: #080808;
  padding: 0 10px;
}

.card-content-grid {
  padding: 24px 36px 28px;
  display: grid;
  grid-template-columns: 1fr 250px;
  gap: 30px;
  align-items: start;
}

.guest-info-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.guest-name-block {
  border-left: 3px solid var(--gold-primary);
  padding-left: 14px;
}

.field-meta-title {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.guest-display-name {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 6px;
  word-break: break-word;
}

.vip-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-bright);
}

.guest-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #030303;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
}

.cell-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 2px;
}

.cell-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

.companion-box-pass {
  background: rgba(0, 115, 47, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.gold-lbl {
  color: #58e291 !important;
}

.companion-val {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.itinerary-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.itin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.itin-item strong {
  display: block;
  color: var(--gold-light);
}

.itin-item span {
  color: #94a3b8;
  font-size: 0.78rem;
}

/* QR Code */
.qr-code-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #040404;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}

.qr-box-inner {
  position: relative;
  padding: 10px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8);
  margin-bottom: 12px;
  overflow: hidden;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qr-render-area {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

/* Hide duplicate canvas generated by qrcodejs */
.qr-render-area canvas {
  display: none !important;
}

/* If only canvas exists (e.g. fallback mode) */
.qr-render-area canvas:only-child {
  display: block !important;
  width: 145px !important;
  height: 145px !important;
  margin: 0 auto;
}

.qr-render-area img {
  display: block !important;
  width: 145px !important;
  height: 145px !important;
  margin: 0 auto;
  object-fit: contain;
  flex-shrink: 0;
}

.qr-scan-badge {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #000000;
  margin-top: 4px;
  text-align: center;
}

.reference-code-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.ref-title {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  color: #94a3b8;
  font-weight: 700;
}

.ref-digits {
  font-family: monospace;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-bright);
}

.card-footer-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030303;
  padding: 14px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #94a3b8;
}

.security-stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  font-weight: 600;
}

.issue-timestamp {
  font-family: monospace;
}

.pass-actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 760px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn-save {
  background: var(--gold-gradient);
  color: #000000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(212, 175, 55, 0.4);
}

.btn-print {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.btn-print:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.btn-reset {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-reset:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  background: #080808;
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastSlide 0.35s ease forwards;
}

.hidden {
  display: none !important;
}

/* Keyframes */
@keyframes towerRiseFullscreen {
  0% { transform: translateY(100vh); }
  100% { transform: translateY(0); }
}

@keyframes sideTitlesAppear {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes messageBoxEntrance {
  0% { opacity: 0; transform: translateY(35px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Responsiveness */
@media (max-width: 992px) {
  /* Tower image: fill the bottom 62% of the screen */
  .full-tower-frame {
    top: auto;
    bottom: 0;
    height: 62vh;
    align-items: flex-end;
    justify-content: center;
  }

  .tower-fullscreen-img {
    height: 62vh;
    width: auto;
    max-width: 100%;
  }

  /* Text panels: sit only at the top, above the tower */
  .tower-side-overlay {
    height: auto;
    bottom: auto;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 46px 24px 20px;
    gap: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,1) 55%, rgba(0,0,0,0) 100%);
  }

  .side-panel {
    max-width: 100%;
  }
  .side-panel.left-side {
    text-align: center;
  }
  .side-panel.right-side {
    text-align: center;
    align-items: center;
  }
  .side-main-heading {
    font-size: 2.2rem;
  }
  .message-card-box {
    padding: 32px 24px;
  }
  .message-lead-text {
    font-size: 1.5rem;
  }
  .message-body-text {
    font-size: 1rem;
  }
  .message-venue-block {
    flex-direction: column;
    gap: 8px;
  }
  .venue-separator {
    display: none;
  }
}

@media (max-width: 680px) {
  .card-inner-box {
    padding: 28px 18px;
  }
  .card-header-section {
    flex-direction: column;
    text-align: center;
    padding: 22px 18px 14px;
  }
  .card-content-grid {
    grid-template-columns: 1fr;
    padding: 20px 18px;
    gap: 22px;
  }
  .guest-details-row {
    grid-template-columns: 1fr;
  }
  .card-gold-divider {
    margin: 4px 18px;
  }
  .card-footer-strip {
    flex-direction: column;
    gap: 8px;
    padding: 12px 18px;
    text-align: center;
  }
  .pass-actions-bar {
    flex-direction: column;
  }
  .action-btn {
    width: 100%;
    justify-content: center;
  }
  .bottom-corner-anniversary-badge {
    bottom: 14px;
    left: 14px;
  }
}

/* Print */
@media print {
  body {
    background: #000000 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ambient-canvas,
  .bottom-corner-anniversary-badge,
  .cinematic-tower-stage,
  .cinematic-message-stage,
  .portal-screen,
  .celebration-headline,
  .pass-actions-bar,
  .toast-container {
    display: none !important;
  }
  .invitation-screen {
    padding: 0 !important;
    min-height: auto !important;
  }
  .diplomatic-invitation-card {
    border: 1px solid #333333 !important;
    page-break-inside: avoid;
  }
}

/* Floating Mission Staff Dashboard Access */
.floating-dashboard-pill {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 10, 10, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: #f5e49e;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  transition: all 0.25s ease;
}

.floating-dashboard-pill:hover {
  background: #d4af37;
  color: #000000;
  border-color: #ffd700;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.pill-dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}