/* EVENTS GRID */
.events {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .events { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .events { grid-template-columns: 1fr; }
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: auto; /* default cursor */
}

.event-image {
  aspect-ratio: 16/9;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: 1.3rem;
  flex: 1;
}

.event-content h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  display: box;
  box-orient: vertical;
  line-clamp: 2;

  overflow: hidden;
  min-height: 3em;
}


.event-meta {
  color: var(--text-muted);
  font-size: .9rem;
}

.event-card button {
  margin: 1rem;
  padding: .9rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 800;
  background: linear-gradient(120deg, var(--secondary), var(--primary));
  cursor: auto; /* default cursor */
}

/* LOAD MORE */
.load-more-wrapper {
  text-align: center;
  padding-bottom: 4rem;
}

.load-more-wrapper button {
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  cursor: auto; /* default cursor */
}

/* MODALS */
/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;             /* start hidden */
  pointer-events: none;   /* prevent clicks when hidden */
  transition: opacity 0.25s ease;
}

.modal.active {
  opacity: 1;
  pointer-events: auto;   /* allow clicks when visible */
}

.modal.active .modal-box {
  transform: translateY(0);
}

/* Optional: fade content inside slightly */

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  cursor: auto; /* default cursor */
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.modal-section { margin-top: 1.3rem; }

.tickets {
  display: grid;
  gap: .6rem;
}

.ticket {
  padding: .8rem;
  border-radius: var(--radius);
  border: 1px solid #2b3263;
  cursor: auto; /* default cursor */
}

.ticket.active {
  background: #ff8bd520;
  border-color: var(--accent);
}

iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: none;
  cursor: auto; /* default cursor */
}

#bookingModal {
  z-index: 2000; /* higher than navbar/profile wrapper */
}

/* ==================== MODAL CLOSE BUTTON ==================== */
.modal-box {
  position: relative;
}

/* Close (X) button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  border: 1px solid #2b3263;
  background: rgba(255, 255, 255, 0.04);

  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: #0b1020;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 139, 213, 0.35);
  transform: translateY(-1px);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-box h2 {
  padding-right: 3rem;
}

.modal-box h2 {
  padding-right: 3rem;
}

/* EVENTS GRID */
.events {
  max-width: 1200px;
  margin: auto;
  padding: 0 1.5rem 4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 1024px) {
  .events { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .events { grid-template-columns: 1fr; }
}

.event-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: auto; /* default cursor */
}

.event-image {
  aspect-ratio: 16/9;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-content {
  padding: 1.3rem;
  flex: 1;
}

.event-content h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;

  display: box;
  box-orient: vertical;
  line-clamp: 2;

  overflow: hidden;
  min-height: 3em;
}


.event-meta {
  color: var(--text-muted);
  font-size: .9rem;
}

.event-card button {
  margin: 1rem;
  padding: .9rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 800;
  background: linear-gradient(120deg, var(--secondary), var(--primary));
  cursor: pointer; 
}

/* LOAD MORE */
.load-more-wrapper {
  text-align: center;
  padding-bottom: 4rem;
}

.load-more-wrapper button {
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  border: none;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  cursor: auto; /* default cursor */
}

/* MODALS */
/* MODALS */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;

  overflow-y: auto;

  /* Firefox */
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.35) rgba(255,255,255,0.1);
}

/* WebKit (Chrome, Edge, Safari) */
.modal::-webkit-scrollbar {
  width: 8px;
}

.modal::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb {
  background-color: rgba(255,255,255,0.35);
  border-radius: 10px;
}

.modal::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255,255,255,0.55);
}

/* Explicitly remove scrollbar arrows (legacy safety) */
.modal::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}


.modal.active {
  opacity: 1;
  pointer-events: auto;   /* allow clicks when visible */
}

.modal.active .modal-box {
  transform: translateY(0);
}

/* Optional: fade content inside slightly */

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  cursor: auto; /* default cursor */
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.modal-section { margin-top: 1.3rem; }

.tickets {
  display: grid;
  gap: .6rem;
}

.ticket {
  padding: .8rem;
  border-radius: var(--radius);
  border: 1px solid #2b3263;
  cursor: auto; /* default cursor */
}

.ticket.active {
  background: #ff8bd520;
  border-color: var(--accent);
}

iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius);
  border: none;
  cursor: auto; /* default cursor */
}

#bookingModal {
  z-index: 2000; /* higher than navbar/profile wrapper */
}

/* ==================== MODAL CLOSE BUTTON ==================== */
.modal-box {
  position: relative;
}

/* Close (X) button */
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 38px;
  height: 38px;
  border-radius: 50%;

  border: 1px solid #2b3263;
  background: rgba(255, 255, 255, 0.04);

  color: var(--text-main);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--accent);
  color: #0b1020;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 139, 213, 0.35);
  transform: translateY(-1px);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-box h2 {
  padding-right: 3rem;
}

.modal-box h2 {
  padding-right: 3rem;
}

/* ==================== ALERT MODAL ==================== */
.alert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  padding: 1rem;
}

.alert-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  position: relative;
  animation: scaleIn 0.25s ease forwards;
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
  background: transparent;
  border: none;
}

.alert-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 1rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Success icon */
.alert-success {
  background-image: url('../images/icons/success-c.gif'); /* green check animated GIF */
}

/* Error icon */
.alert-error {
  background-image: url('../images/icons/close-c.gif'); /* red X animated GIF */
}

.alert-message {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 0.5rem;
}

/* Human finger cursor for all clickable items */
.alert-box .modal-close,
.alert-box .alert-message {
  cursor: pointer;
}


/* ============ VERIFY PAYMENT ===========*/
.payment-receipt {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: #111;
}

.receipt-header {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.receipt-header h3 {
  margin: 0.5rem 0 0;
  font-size: 1.2rem;
  color: var(--text-main);
}

.status-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.status-badge.success {
  background: var(--secondary);
  color: #000;
}

.status-badge.failed {
  background: var(--accent);
  color: #000;
}

.receipt-body {
  margin-top: 2rem;
}

.receipt-body .row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.9rem;
  color: var(--text-main);
}

.receipt-body .row span {
  color: var(--text-main);
}

.receipt-body hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 0.8rem 0;
}

.form-hint {
  display: block;
  margin-top: 6px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-main);
}



/* ==================== TICKET QUANTITY INPUT + BUTTONS ==================== */
/* ==================== TICKET QUANTITY INPUT + BUTTONS ==================== */
.ticket-qty-wrapper {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 140px;
  background: #101633;
  border-radius: var(--radius);
  padding: 0.2rem;
  border: 1px solid #2b3263;
}

.ticket-qty-wrapper input.ticket-qty {
  text-align: center;
  width: 50px;
  padding: 0.4rem;
  border-radius: 8px;
  border: 1px solid #2b3263;
  background: #0f142d;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.ticket-qty-wrapper input.ticket-qty:focus {
  outline: none;
  box-shadow: 0 0 6px var(--primary);
  background: #101633;
}

.ticket-qty-wrapper .qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #0b1020;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ticket-qty-wrapper .qty-btn:hover:not(:disabled) {
  transform: scale(1.15);
  box-shadow: 0 8px 18px rgba(124, 124, 255, 0.35);
}

.ticket-qty-wrapper .qty-btn:disabled {
  background: #2b3263;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Hide number input arrows - Chrome, Safari, Edge, Opera */
.ticket-qty-wrapper input.ticket-qty::-webkit-inner-spin-button,
.ticket-qty-wrapper input.ticket-qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide number input arrows - Firefox */
.ticket-qty-wrapper input.ticket-qty[type=number] {
  -moz-appearance: textfield;
}

/* Optional: subtle hover effect for input */
.ticket-qty-wrapper input.ticket-qty:hover {
  background: #12183b;
}

/* Fine-tune ticket-info spacing */
.ticket-info {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.ticket-info strong {
  color: var(--primary);
}

.ticket-info .remaining {
  color: var(--text-muted);
  font-size: 0.85rem;
}
