.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 30px;
  width: 95%;
  max-width: 550px;
  position: relative;
  color: #fff;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #fff;
}

.modal-input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: none;
  border-radius: 6px;
}

.verify-btn,
.buy-ticket-btn {
  background-color: #E91E63;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
}

.carousel-container {
  display: flex;
  align-items: center;
  position: relative;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ticket-img {
  max-width: 450px; /* Increased from 180px */
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s ease;
}
@keyframes ticketGlow {
  0%, 100% {
    box-shadow: 0 0 15px silver, 0 0 30px silver;
  }
  50% {
    box-shadow: 0 0 25px #c0c0c0, 0 0 45px #dcdcdc;
  }
}

.ticket-img.glow {
  animation: ticketGlow 1.5s infinite alternate;
}


.ticket-img.glow {
  animation: ticketGlow 1.5s infinite alternate;
}


.arrow-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.9);}
  to {opacity: 1; transform: scale(1);}
}
.modal-result-text {
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
  color: #fff;
  padding: 15px;
}
.ticket-img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ticket-img.slide-left {
  transform: translateX(-100px);
  opacity: 0;
}

.ticket-img.slide-right {
  transform: translateX(100px);
  opacity: 0;
}
.modal-box h2 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
}
/* Default modal box */
.modal-box {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  color: #fff;
  text-align: center;
  animation: fadeIn 0.3s ease;
  width: 90%;
  max-width: 400px; /* Default (used by verify and result) */
}

/* Buy Ticket Modal - Wider version */
.modal-box.buy-ticket-box {
  max-width: 700px;
}
.modal-box.buy-ticket-box {
  max-width: 700px;
}
/* Sliding Out */
.slide-left {
  animation: slideLeft 0.4s forwards;
}

.slide-right {
  animation: slideRight 0.4s forwards;
}

@keyframes slideLeft {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(-100%); opacity: 0; }
}

@keyframes slideRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* Sliding In */
.slide-in-left {
  animation: slideInLeft 0.4s forwards;
}

.slide-in-right {
  animation: slideInRight 0.4s forwards;
}

@keyframes slideInLeft {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
.ticket-img.glow {
  animation: ticketGlow 1.5s infinite alternate;
}

.arrow-btn.left {
  margin-left: -40px; /* shift more left */
}

.arrow-btn.right {
  margin-right: -40px; /* shift more right */
}
/* Position arrows farther left and right */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
}

.arrow-btn.left {
  left: 8px;  /* 👈 Reduced from 20px to 8px */
}

.arrow-btn.right {
  right: 8px; /* 👉 Reduced from 20px to 8px */
}
.arrow-btn.left {
  left: calc(50% - 260px); /* 👈 Adjust to be just left of ticket */
}

.arrow-btn.right {
  right: calc(50% - 260px); /* 👉 Adjust to be just right of ticket */
}
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.arrow-btn img {
  width: 40px;       /* Adjust size as needed */
  height: auto;
  filter: drop-shadow(0 0 3px #000); /* Optional glow */
}
.arrow-btn img {
  width: 40px;
  height: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 5px #fff); /* Soft white glow */
}

/* Optional: Stronger glow on hover */
.arrow-btn:hover img {
  filter: drop-shadow(0 0 8px #ff4081) drop-shadow(0 0 12px #ff4081);
  transform: scale(1.1); /* Slight zoom effect */
}
@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-header {
  animation: fadeSlideDown 0.8s ease-out forwards;
  opacity: 0; /* Ensures it starts invisible */
}
.modal-box.buy-ticket-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* ✅ MODAL RESPONSIVE FIXES */
@media screen and (max-width: 768px) {
  .modal-box {
    width: 95% !important;
    padding: 20px;
    max-width: 90% !important;
  }

  .modal-box h2 {
    font-size: 18px;
  }

  .modal-result-text {
    font-size: 16px;
    padding: 10px;
  }

  .modal-input {
    padding: 8px;
    font-size: 14px;
  }

  .verify-btn,
  .buy-ticket-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .ticket-img {
    max-width: 100%;
    height: auto;
  }

  .arrow-btn.left,
  .arrow-btn.right {
    display: none; /* hide arrows on small screens */
  }

  .carousel-container {
    gap: 15px;
  }

  .close-btn {
    font-size: 18px;
    top: 8px;
    right: 10px;
  }
}

/* Extra small devices (phones < 480px) */
@media screen and (max-width: 480px) {
  .modal-box {
    padding: 15px;
  }

  .modal-box h2 {
    font-size: 16px;
  }

  .verify-btn,
  .buy-ticket-btn {
    font-size: 13px;
    padding: 8px;
  }

  .modal-input {
    font-size: 13px;
    padding: 8px;
  }

  .ticket-img {
    border-radius: 8px;
  }
}

/* Keep animation + backdrop unchanged */

.carousel-container {
  position: relative;
  width: 100%;
  text-align: center;
  margin-top: 20px;
}

/* Arrow Buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  z-index: 5;
}

.arrow-btn.left {
  left: 12%;
}

.arrow-btn.right {
  right: 12%;
}


.arrow-btn img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.4));
}

/* Ticket Image */
.ticket-img {
  width: 80%;
  height: auto;
  display: inline-block;
  z-index: 1;
}

/* Mobile Tweaks */
@media (max-width: 576px) {
  .arrow-btn.left {
    left: 40px;
  }
  .arrow-btn.right {
    right: 40px;
  }

  .arrow-btn img {
    width: 24px;
    height: 24px;
  }
}

.modal-box .arrow-btn {
  display: block !important;
}
/* Fix for Carousel Arrow Visibility & Position in Mobile */
.modal-box .arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  z-index: 10;
  padding: 0;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.modal-box .arrow-btn img {
  width: 100%;
  height: auto;
}

/* Left arrow inside box */
.modal-box .arrow-btn.left {
  left: 40px;
}

/* Right arrow inside box */
.modal-box .arrow-btn.right {
  right: 40px;
}

/* Ensure ticket image container is relative */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Ensure arrows are always visible and inside the modal ticket box */
.modal-box .arrow-btn {
  display: block !important;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 30px;
  height: 30px;
}

/* Position left arrow */
.modal-box .arrow-btn.left {
  left: 12%;
}

/* Position right arrow */
.modal-box .arrow-btn.right {
  right: 12%;
}

/* Optional: adjust on very small devices */
@media (max-width: 480px) {
  .modal-box .arrow-btn.left {
    left: 8%;
  }
  .modal-box .arrow-btn.right {
    right: 8%;
  }
}
@media (max-width: 768px) {
  .carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 10px;
    position: relative;
  }

  .ticket-img {
    max-width: 60%;
    height: auto;
  }

  .arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 30px;
    height: 30px;
    padding: 0;
    background: none;
    border: none;
  }

  .arrow-btn.left {
    left: 0;
  }

  .arrow-btn.right {
    right: 0;
  }
}
/* Make ticket image responsive on small screens */
@media screen and (max-width: 768px) {
  #ticketImage {
    width: 60%;
    height: auto;
  }

  .carousel-container {
    align-items: center;
  }

  .arrow-btn {
    margin: 10px 0;
    position: static !important;
    transform: none !important;
  }
}
/* ✅ FINAL CLEAN FIXES */

/* Ticket image and arrow container */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

/* Ticket Image */
.ticket-img {
  width: 80%;
  height: auto;
  display: inline-block;
  z-index: 1;
  transition: transform 0.3s ease;
}

/* Arrow Buttons */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  z-index: 10;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.arrow-btn img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
  transition: transform 0.2s ease;
}

.arrow-btn:hover img {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px #ff4081);
}

/* Left and Right arrow spacing inside modal */
.modal-box .arrow-btn.left {
  left: 12%;
}
.modal-box .arrow-btn.right {
  right: 12%;
}

/* 👇 Mobile Specific Adjustments */
@media (max-width: 768px) {
  .ticket-img {
    width: 60%; /* Ticket shrinks */
  }

  .modal-box .arrow-btn.left {
    left: 8%;  /* Closer inward*
/* ✅ Force Arrows Side-by-Side on All Screens */

.carousel-container {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* ✅ Ensure ticket image is centered and responsive */
.ticket-img {
  max-width: 70%;
  height: auto;
  z-index: 1;
}

/* ✅ Arrow styling and positioning */
.arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  z-index: 10;
  width: 36px;
  height: 36px;
  padding: 0;
}

.arrow-btn img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 4px #000);
  transition: transform 0.3s ease;
}

.arrow-btn.left {
  left: 10px;
}

.arrow-btn.right {
  right: 10px;
}

/* ✅ Remove mobile override that pushed arrows vertically */
@media (max-width: 768px) {
  .carousel-container {
    flex-direction: row !important;
  }

  .arrow-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .arrow-btn.left {
    left: 8px !important;
  }

  .arrow-btn.right {
    right: 8px !important;
  }
}
/* ✅ Universal Carousel Container */
.carousel-container {
  position: relative;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}

/* ✅ Ticket Image */
.ticket-img {
  max-width: 70%;
  width: 100%;
  height: auto;
  z-index: 1;
}

/* ✅ Arrows Style */
.arrow-btn {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none;
  border: none;
  padding: 0;
  z-index: 10;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.arrow-btn img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 4px #000);
  transition: transform 0.3s ease;
}

.arrow-btn:hover img {
  transform: scale(1.1);
}

/* ✅ Arrow Position Left/Right */
.arrow-btn.left {
  left: 10px;
}

.arrow-btn.right {
  right: 10px;
}

/* ✅ Mobile Fix: Force Horizontal Layout */
@media screen and (max-width: 768px) {
  .carousel-container {
    flex-direction: row !important;
  }

  .arrow-btn {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
  }

  .arrow-btn.left {
    left: 8px !important;
  }

  .arrow-btn.right {
    right: 8px !important;
  }
}
