/* ===== Hero Video Transition Animations ===== */
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroContentReveal {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

#hero-video-overlay {
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 1.8s cubic-bezier(0.4, 0, 0.2, 1),
              filter 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#hero-video-overlay.hero-video-exiting {
  opacity: 0;
  transform: scale(1.05);
  filter: blur(8px);
  pointer-events: none !important;
}

#hero-content.hero-content-visible {
  animation: heroContentReveal 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ===== Original Styles ===== */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #ddd;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
.fade-in {
  animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 0 !important;
  }

  body, html {
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    color: black !important;
    overflow: hidden !important; 
    box-sizing: border-box !important;
  }

  /* Hide everything at the top level except the success view */
  body > *:not(#success-view) {
    display: none !important;
  }

  /* Reset success-view so it fills the screen perfectly for 1 page */
  #success-view {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    padding: 0 !important;
    margin: 0 !important;
    background: white !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    page-break-after: avoid !important;
    page-break-before: avoid !important;
  }

  /* Hide particles and any irrelevant siblings of print-area */
  #success-view > *:not(#print-area) {
    display: none !important;
  }

  /* Make print area behave nicely */
  #print-area {
    display: block !important;
    position: relative !important;
    margin: 0 auto !important;
    padding: 10mm !important;
    width: 100% !important;
    max-width: 160mm !important; /* restrict width so it's compact */
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    page-break-inside: avoid !important;
  }

  /* Compact margins for print to avoid spill-over */
  #print-area .mb-12 { margin-bottom: 1rem !important; }
  #print-area .space-y-8 > * + * { margin-top: 0.75rem !important; }
  #print-area .space-y-4 > * + * { margin-top: 0.5rem !important; }
  #print-area .pt-8 { padding-top: 0.5rem !important; }
  #print-area .mt-4 { margin-top: 0.5rem !important; }
  #print-area .p-12 { padding: 0.5rem !important; }

  /* Adjust typography & images slightly for perfect fit */
  #print-area img {
    max-width: 130px !important;
    max-height: 130px !important;
  }
  
  #print-area h2 {
    font-size: 1.5rem !important;
    line-height: 1.2 !important;
  }
  
  #print-area .text-xs {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
  }

  /* Hide ONLY decorative absolute lines */
  #print-area .bg-emerald-500.absolute {
    display: none !important;
  }

  /* Fix for ticket ID positioned absolute */
  #print-area .absolute.-bottom-3 {
    position: static !important;
    transform: none !important;
    background: transparent !important;
    margin-top: 8px !important;
    padding: 0 !important;
    display: block !important;
  }

  /* Hide the info box border and background for a cleaner print */
  #print-area .bg-\[\#0d1f22\]\/80,
  #print-area div.rounded-xl.border.shadow-lg {
    background: transparent !important;
    border: 1px dashed #ccc !important;
    padding: 10px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
  }

  /* Force text colors to black/dark for print */
  #print-area .text-white,
  #print-area .text-emerald-accent,
  #print-area .text-white\/80,
  #print-area p,
  #print-area h2,
  #print-area span {
    color: #000 !important;
  }
  
  #print-area .border-emerald-500\/30 {
    border-color: #ccc !important;
  }
}

/* Hide Google Translate UI */
.goog-te-gadget-icon { display: none !important; }
body { top: 0px !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* Hide decorative images */
.goog-te-gadget-simple img {
    display: none !important;
}

/* Remove Google default widget styling */
.goog-te-gadget-simple {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Keep language text visible */
.goog-te-gadget-simple span {
    border: none !important;
}

/* Prevent layout push */
html {
    margin-top: 0 !important;
}

/* ===== Watermark Blur Shield ===== */
#watermark-blur-shield {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  pointer-events: none;
  z-index: 30;
  border-radius: 9999px;
  background: linear-gradient(to top left, rgba(255,255,255,0.1), rgba(255,255,255,0.05), transparent);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  -webkit-mask-image: radial-gradient(ellipse at bottom right, black 35%, rgba(0,0,0,0.8) 60%, transparent 100%);
  mask-image: radial-gradient(ellipse at bottom right, black 35%, rgba(0,0,0,0.8) 60%, transparent 100%);
}

@media (min-width: 1024px) {
  #watermark-blur-shield {
    display: block;
    width: 260px;
    height: 120px;
  }
}

@media (min-width: 1280px) {
  #watermark-blur-shield {
    width: 320px;
    height: 150px;
  }
}

