/* ====== RESET & BASE ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* BACKGROUND */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(270deg, #00d4ff, #6b5cff, #0f172a, #0f172a);
  background-size: 600% 600%;
  animation: gradientMove 10s ease infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ================= NAVBAR ================= */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}


.bg-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
}

.bg-box img {
  width: 100%;
  transform: scale(2.5);
}

.navbar .logo {
  height: 30px;
  line-height: 1;
}

.navbar .brand {
  font-size: 1.125rem;
  font-weight: 600;
  color: white;
}



/* MENU BUTTON */

.menu-btn {

  width:50px;
  height:50px;

  border:none;

  border-radius:14px;

  background:
  rgba(255,255,255,0.08);

  color:white;

  font-size:22px;

  cursor:pointer;

  display:flex;
  align-items:center;
  justify-content:center;

}



/* ================= SIDE MENU ================= */


.side-menu {


  position:fixed;

  top:0;

  right:-320px;

  width:300px;

  height:100vh;


  background:

  rgba(0, 0, 0, 0.1);


  backdrop-filter:blur(20px);


  z-index:2000;


  padding:25px;


  transition:0.35s ease;


  box-shadow:-10px 0 30px rgba(0,0,0,.3);

}



.side-menu.active {

  right:0;

}



/* MENU HEADER */


.menu-header {

  display:flex;

  justify-content:space-between;

  align-items:center;

  margin-bottom:40px;

}


.menu-header h2 {

  color:white;

}



.menu-header button {

  border:none;

  background:none;

  color:white;

  font-size:24px;

}



/* LINKS */


.side-menu a {

  display:flex;

  align-items:center;

  gap:15px;


  padding:15px;

  margin-bottom:12px;


  color:white;

  text-decoration:none;


  border-radius:14px;


  transition:.2s;

}



.side-menu a:hover {

  background:rgba(255,255,255,0.1);

}



/* OVERLAY */


.menu-overlay {


  position:fixed;

  inset:0;


  background:rgba(0,0,0,.5);


  opacity:0;

  pointer-events:none;


  transition:.3s;


  z-index:1500;

}



.menu-overlay.active {


  opacity:1;

  pointer-events:auto;

}




/* MOBILE */

@media(max-width:600px){


.navbar{

padding:0 15px;

}


.brand{

font-size:16px;

}


.bg-box{

width:45px;
height:45px;

}


.bg-box img{

width:32px;

}

}

.hero-slider {
  position: relative;
  width: 100%;
  height: 850px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  color: #ffffff;
  max-width: 500px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 20px;
}

.hero-content button {
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366f1, rgba(99, 102, 241, 0.6));
  border: none;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
}

/* ARROWS */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10x;
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 3;
}

.hero-arrow.left {
  left: 10px;
}

.hero-arrow.right {
  right: 10px;
}

/* DOTS */
.hero-dots {
  position: absolute;
  bottom: 5px;
  width: 100%;
  text-align: center;
  z-index: 3;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 5px;
  background: rgb(0, 0, 0);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: rgb(255, 255, 255);
}

/* mobile */
@media (max-width: 768px) {
  .hero-slider {
    height: 350px;
  }

  .hero-content {
    left: 20px;
    right: 20px;
    bottom: 30px;
  }

  .hero-content h1 {
    font-size: 28px;
  }

  .hero-content p {
    font-size: 16px;
  }
}

.events-section {
  padding: 40px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 20px;
}

.events {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr; /* Mobile default */
}

.price-list {
  margin-top: 10px;
  font-size: 0.85rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  opacity: 0.9;
}

.ticket-select-row {
  display: flex;
  gap: 10px;
}

.ticket-select-row select {
  flex: 1;
}

/* Tablet */
@media (min-width: 600px) {
  .events {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .events {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop */
@media (min-width: 1400px) {
  .events {
    grid-template-columns: repeat(4, 1fr);
  }
}

/*  CARD DESIGN */
.event-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}

/* KEY CHANGE: POSTER STYLE */
.event-card img {
  width: 100%;
  aspect-ratio: 3 / 4; 
  object-fit: cover;
}

.event-card:hover {
  transform: translateY(-6px) scale(1.01);
}

.event-card .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(transparent, rgba(0,0,0,0.95));
  color: white;
}

.event-card {
  position: relative;
  overflow: hidden;
}

.event-top-badges {
  position: absolute;
  top: 15px;
  right: 15px;

  display: flex;
  z-index: 5;

  border-radius: 16px;
  overflow: hidden;
}

.event-category {
  background: white;
  color: black;

  padding: 8px 16px;

  font-size: 14px;
  font-weight: 700;
}

.event-date-badge {
  background: black;
  color: white;

  padding: 8px 16px;

  font-size: 14px;
  font-weight: 700;
}

.event-date-badge.past {
  background: #000000;
  color: white;
}

.ticket-btn {
  margin-top: 10px;
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  background: #6366f1;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.ticket-btn:hover {
  transform: scale(1.05);
}

.form-container {
  max-width: 500px;
  margin: 60px auto;
  padding: 30px;
  background: #0f172a;
  color: #fff;
  border-radius: 10px;
}

.form-container h2 {
  margin-bottom: 10px;
}

.form-container p {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 20px;
}

.form-container input,
.form-container textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border: none;
  border-radius: 6px;
  outline: none;
  font-size: 14px;
}

.form-container button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #6366f1, rgba(99, 102, 241, 0.6));
  border: none;
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.form-container button:hover {
  background: linear-gradient(135deg, #6366f1, rgba(99, 102, 241, 0.6));
}

/* ====== MAIN CONTENT ====== */
main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 500px;
  padding: 1rem;
}

/* TITLE */
.title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  animation: fadeIn 1s ease;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.stats-item h3 {
  font-size: 1.5rem;
  margin: 0;
}

.stats-item p {
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Ticket List */
.ticket-list {
  margin-top: 20px;
}

.ticket-list table {
  width: 100%;
  border-collapse: collapse;
}

.ticket-list th, .ticket-list td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: left;
}

.ticket-list th {
  background-color: #f9fafb;
}

/* ====== CARDS ====== */
.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 1s ease;
}

#reader video {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* ====== SCANNER RESULT FIX ====== */
#reader {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* RESULT(SCANNER) */
#result {
  width: 100%;
  margin-top: 1rem;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;

  display: block;
  word-wrap: break-word;
  line-height: 1.4;

  transition: all 0.3s ease;
}

/* STATES */
#result.valid {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}

#result.error {
  background: rgba(239,68,68,0.2);
  color: #ef4444;
}

#result.warning {
  background: rgba(234,179,8,0.2);
  color: #eab308;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  }
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

/* CARD CONTENT */
.card-content {
  padding: 1.5rem;
  text-align: center;
}

.card-content h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
}

.card-content p {
  color: #cbd5f5;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ====== BUTTONS ====== */
button {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1, rgba(99, 102, 241, 0.6));
  color: white;
  transition: all 0.3s ease;
  font-weight: 500;
  min-height: 2.75rem;
  touch-action: manipulation;
}

button:active {
  transform: scale(0.98);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

@media (hover: hover) {
  button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  }
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ====== INPUTS & SELECTS ====== */
input,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

input::placeholder,
select:invalid {
  color: #cbd5f5;
}

input:focus,
select:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

select option {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* ====== TICKET CARD ====== */
.ticket-card {
  position: relative;
  max-width: 400px;
  margin: auto;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: fadeIn 0.8s ease;
}

.ticket-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.3));
}

.ticket-content {
  position: relative;
  padding: 20px;
  text-align: center;
}

.ticket-content h2 {
  font-size: 1.5rem;
  margin-bottom: 5px;
}

.ticket-content p {
  margin: 5px 0;
  opacity: 0.9;
}

canvas {
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  background: white;
  padding: 10px;
}


.valid {
  background: rgba(34,197,94,0.2);
  color: #22c55e;
}
/* ====== TICKET CARD BUTTON ====== */
button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  transform: scale(1.05);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* QR BOX */
.qr-box {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  display: inline-block;
  margin-bottom: 1.5rem;
  max-width: 100%;
}

.qr-box canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

/* TICKET ID & NAME */
.ticket-id {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-top: 1rem;
  word-break: break-all;
}

.user-name {
  margin-top: 0.5rem;
  font-weight: 500;
  font-size: 1.1rem;
}


.status.valid {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ====== RESPONSIVE ====== */

/* Tablets - 768px and up */
@media (min-width: 768px) {
  main {
    padding: 2rem 1rem;
  }

  .container {
    max-width: 600px;
    padding: 2rem;
  }

  .card-content {
    padding: 2rem;
  }

  .ticket-card {
    padding: 2.5rem;
  }

  .navbar {
    padding: 1.25rem 2rem;
    gap: 2rem;
  }

  .card-content p {
    font-size: 1rem;
  }

  .promo-unlock-btn {
    margin-top: -1px;
  }
}

/* Desktops  */
@media (min-width: 1024px) {
  main {
    padding: 3rem 1rem;
  }

  .container {
    max-width: 700px;
    padding: 3rem;
  }

  .card-content {
    padding: 2.5rem;
  }

  .ticket-card {
    padding: 3rem;
  }

  button {
    margin-top: 0.5rem;
  }

  .navbar {
    padding: 1.5rem 3rem;
  }
}

/* Large Desktops  */
@media (min-width: 1440px) {
  .container {
    max-width: 800px;
  }

  main {
    padding: 4rem 2rem;
  }
}

/* Small phones - 360px */
@media (max-width: 359px) {
  .container {
    padding: 0.75rem;
  }

  .card-content {
    padding: 1rem;
  }

  .title {
    margin-bottom: 1rem;
  }

  .navbar {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .brand {
    font-size: 1rem;
  }
}

/* ========================================
   PROMO SECTION
======================================== */

.promo-section {

  display: flex;

  align-items: stretch;

  gap: 10px;

  margin-top: 15px;

  width: 100%;
}

.promo-unlock-btn {

  width: 40%;

  height: 50px;

  border: none;

  border-radius: 12px;

  background: linear-gradient(
    135deg,
    #6366f1,
    #9333ea
  );

  color: #ffffff;

  font-weight: bold;

  cursor: pointer;

  transition: 0.3s ease;

  display: flex;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
}

.promo-unlock-btn:hover {
  transform: scale(1.02);
}

.promo-input {

  width: 60%;

  height: 50px;

  padding: 0 15px;

  border-radius: 12px;

  box-sizing: border-box;
}

.promo-input.locked {
  opacity: 0.5;
  cursor: not-allowed;
}

.promo-input:disabled {

  background: rgba(255,255,255,0.04);

  color: rgba(255,255,255,0.4);
}

/* ========================================
   PROMO POPUP
======================================== */

.promo-popup {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.05);
  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;
}

.promo-popup.active {
  opacity: 1;
  visibility: visible;
}

.promo-popup-card {
  width: 90%;
  max-width: 500px;

  background: rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.08);
}

.promo-popup-image {
  height: 220px;
  background-size: cover;
  background-position: center;
}

.promo-popup-content {
  padding: 25px;
  text-align: center;
}

.promo-popup-content h2 {
  color: white;
  margin-bottom: 15px;
}

.promo-popup-content p {
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 20px;
}

.promo-popup-content button {
  width: 100%;
  padding: 14px;

  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: #ffffff;

  font-weight: bold;
  cursor: pointer;
}


@media (max-width: 425px) {

  .promo-section {
    flex-direction: column;
  }

  .promo-unlock-btn,
  .promo-input {
    width: 100%;
  }

}


/* =========================================
   UNIVERSAL POPUP
========================================= */

.custom-popup {

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.75);

  backdrop-filter: blur(8px);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 99999;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
}

.custom-popup.active {

  opacity: 1;
  pointer-events: auto;
}

.custom-popup-box {

  width: 90%;
  max-width: 380px;

  background: #111;

  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 24px;

  padding: 30px 25px;

  text-align: center;

  transform: scale(0.9);

  transition: 0.3s;
}

.custom-popup.active .custom-popup-box {

  transform: scale(1);
}

.popup-icon {

  width: 70px;
  height: 70px;

  margin: auto;

  border-radius: 50%;

  background: rgba(255, 80, 80, 0.12);

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 20px;
}

.popup-icon i {

  font-size: 30px;

  color: #ff0202;
}

.custom-popup-box h2 {

  color: white;

  margin-bottom: 10px;
}

.custom-popup-box p {

  color: rgba(255,255,255,0.7);

  font-size: 14px;

  line-height: 1.6;

  margin-bottom: 25px;
}

#closePopupBtn {

  width: 100%;

  height: 50px;

  border: none;

  border-radius: 14px;

  background: linear-gradient(135deg, #6366f1, #9333ea);

  color: black;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;
}

#closePopupBtn:hover {

  transform: translateY(-2px);
}


/* =========================
  POPUP FOR PAST EVENTS
========================= */


.custom-popup {

  position:fixed;
  inset:0;

  background:rgba(0,0,0,0.75);

  backdrop-filter:blur(8px);

  display:flex;
  align-items:center;
  justify-content:center;

  z-index:99999;

  opacity:0;
  visibility:hidden;

  transition:.3s;

}


.custom-popup.active {

  opacity:1;
  visibility:visible;

}



.custom-popup-box {


  width:90%;
  max-width:420px;


  background:#111;


  border-radius:24px;

  overflow:hidden;


  border:1px solid rgba(255,255,255,.1);


  transform:scale(.9);

  transition:.3s;

}


.custom-popup.active .custom-popup-box {

 transform:scale(1);

}



.past-event-image {

 height:220px;

 background-size:cover;
 background-position:center;

}



.past-event-content {

 padding:25px;

 text-align:center;

}



.past-event-content h2 {

 color:white;

}



.past-event-content p {

 color:rgba(255,255,255,.7);

 margin-bottom:25px;

}



#backHomeBtn {


 width:100%;

 height:50px;

 border:none;

 border-radius:14px;


 background:
 linear-gradient(270deg,#ff6b6b,#6b5cff,#00d4ff);


 color:white;

 font-weight:bold;

 cursor:pointer;

}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 600px) {
  main {
    padding: 1rem;
  }

  .container,
  .ticket-card {
    padding: 1rem;
  }

  .title {
    margin-bottom: 0.5rem;
  }

  .card-content {
    padding: 1rem;
  }

  button {
    min-height: 2.5rem;
  }
}

/* Print styles */
@media print {
  body {
    background: white;
  }

  .navbar,
  .title,
  button {
    display: none;
  }

  .ticket-card,
  .card {
    box-shadow: none;
    background: white;
    color: black;
  }
}


/* ==========================================================
   TICKET PAGE
========================================================== */

.ticket-page-container {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}


/* ==========================================================
   MAIN TICKET
========================================================== */

.ticket-card {

  position: relative;

  width: min(100%, 430px);

  margin: 0 auto;

  overflow: hidden;

  border-radius: 28px;

  color: #ffffff;

  background:
    linear-gradient(
      180deg,
      #0b1426 0%,
      #07101f 100%
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.13);

  box-shadow:

    0 30px 80px
    rgba(0, 0, 0, 0.48),

    0 0 45px
    rgba(84, 77, 255, 0.12),

    inset 0 1px 0
    rgba(255, 255, 255, 0.08);

  animation:
    fadeIn 0.8s ease;
}


/* ==========================================================
   EVENT ARTWORK
========================================================== */

.ticket-artwork {

  position: relative;

  min-height: 245px;

  background-color:
    #0b1426;

  background-size:
    cover;

  background-position:
    center;

  isolation: isolate;
}


/* ==========================================================
   ARTWORK OVERLAY
========================================================== */

.ticket-artwork-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            180deg,
            rgba(3, 7, 18, 0.08) 0%,
            rgba(3, 7, 18, 0.25) 35%,
            rgba(3, 7, 18, 0.94) 100%
        ),
        linear-gradient(
            135deg,
            rgba(47, 207, 255, 0.08),
            rgba(122, 75, 255, 0.18)
        );
}


/* ==========================================================
   ARTWORK CONTENT
========================================================== */

.ticket-artwork-content {
    position: relative;
    z-index: 1;

    min-height: 245px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding:
        26px
        24px
        24px;
}


/* ==========================================================
   LABELS (TICKET)
========================================================== */

.ticket-event-label,
.ticket-detail-label,
.ticket-section-label {

  display: block;

  font-size:
    0.66rem;

  line-height:
    1.2;

  font-weight:
    800;

  letter-spacing:
    0.14em;

  text-transform:
    uppercase;
}


/* EVENT LABEL */

.ticket-event-label {

  margin-bottom:
    9px;

  color:
    rgba(255, 255, 255, 0.72);
}


/* ==========================================================
   EVENT NAME
========================================================== */

.ticket-artwork h2 {

  margin:
    0;

  max-width:
    100%;

  font-size:
    clamp(
      1.75rem,
      6vw,
      2.35rem
    );

  line-height:
    1.05;

  letter-spacing:
    -0.04em;

  color:
    #ffffff;

  overflow-wrap:
    anywhere;
}


/* ==========================================================
   EVENT INFORMATION
========================================================== */

.ticket-event-meta {

  display:
    flex;

  flex-direction:
    column;

  gap:
    8px;

  margin-top:
    17px;
}


/* INDIVIDUAL EVENT INFO */

.ticket-meta-item {

  min-width:
    0;

  display:
    flex;

  align-items:
    flex-start;

  gap:
    9px;

  color:
    rgba(255, 255, 255, 0.86);

  font-size:
    0.82rem;

  line-height:
    1.35;
}


/* ICON */

.ticket-meta-item i {

  flex:
    0 0 15px;

  width:
    15px;

  margin-top:
    2px;

  color:
    #8ea6ff;

  text-align:
    center;
}


/* TEXT */

.ticket-meta-item span {

  overflow-wrap:
    anywhere;
}


/* ==========================================================
   QR SECTION
========================================================== */

.ticket-qr-section {

  position:
    relative;

  padding:
    25px
    20px
    22px;

  text-align:
    center;

  background:

    radial-gradient(
      circle at 50% 25%,
      rgba(103, 91, 255, 0.16),
      transparent 42%
    ),

    linear-gradient(
      180deg,
      #0b1629 0%,
      #091322 100%
    );
}


/* QR SECTION LABEL */

.ticket-section-label {

  margin-bottom:
    13px;

  color:
    rgba(170, 184, 255, 0.78);
}


/* ==========================================================
   QR WHITE SCAN ZONE
========================================================== */

.qr-box {

  display:
    inline-flex;

  align-items:
    center;

  justify-content:
    center;

  width:
    214px;

  height:
    214px;

  padding:
    12px;

  background:
    #ffffff;

  border-radius:
    20px;

  box-shadow:

    0 18px 45px
    rgba(0, 0, 0, 0.28),

    0 0 35px
    rgba(101, 87, 255, 0.15);
}


/* QR CANVAS */

.qr-box canvas {

  display:
    block;

  width:
    190px !important;

  height:
    190px !important;

  margin:
    0;

  padding:
    0;

  border-radius:
    0;

  background:
    #ffffff;
}


/* ==========================================================
   QR CAPTION
========================================================== */

.qr-caption {

  margin:
    14px 0 0;

  color:
    #ffffff;

  font-size:
    0.72rem;

  font-weight:
    800;

  letter-spacing:
    0.15em;
}


/* SMALL QR DESCRIPTION */

.qr-subcaption {

  margin:
    6px auto 0;

  max-width:
    260px;

  color:
    rgba(255, 255, 255, 0.45);

  font-size:
    0.72rem;

  line-height:
    1.45;
}


/* ==========================================================
   PHYSICAL TICKET PERFORATION METAPHOR
========================================================== */

.ticket-perforation {

  position:
    relative;

  display:
    flex;

  align-items:
    center;

  gap:
    7px;

  height:
    18px;

  padding:
    0 18px;

  background:
    #091322;

  overflow:
    hidden;
}


/* LEFT / RIGHT NOTCHES */

.ticket-perforation::before,
.ticket-perforation::after {

  content:
    "";

  position:
    absolute;

  top:
    50%;

  width:
    20px;

  height:
    20px;

  border-radius:
    50%;

  background:
    #0b1426;

  transform:
    translateY(-50%);

  z-index:
    2;
}


.ticket-perforation::before {

  left:
    -11px;
}


.ticket-perforation::after {

  right:
    -11px;
}


/* DASHED LINE */

.ticket-perforation span {

  flex:
    1;

  height:
    1px;

  background:

    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.22) 0 5px,
      transparent 5px 10px
    );
}


/* ==========================================================
   TICKET DETAILS
========================================================== */

.ticket-details {

  padding:
    23px
    24px
    21px;

  background:

    radial-gradient(
      circle at 100% 0%,
      rgba(108, 75, 255, 0.12),
      transparent 35%
    ),

    #091322;
}


/* ==========================================================
   ATTENDEE
========================================================== */

.ticket-attendee {

  padding-bottom:
    20px;
}


/* DETAIL LABEL */

.ticket-detail-label {

  margin-bottom:
    7px;

  color:
    rgba(150, 165, 192, 0.7);
}


/* ATTENDEE NAME */

.ticket-attendee strong {

  display:
    block;

  color:
    #ffffff;

  font-size:
    1.08rem;

  line-height:
    1.35;

  font-weight:
    700;

  overflow-wrap:
    anywhere;
}


/* ==========================================================
   TYPE / TICKET NUMBER
========================================================== */

.ticket-detail-grid {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    20px;

  padding:
    18px 0;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.07);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}


/* RIGHT COLUMN */

.ticket-detail-block-right {

  text-align:
    right;
}


/* VALUES */

.ticket-detail-block strong {

  display:
    block;

  color:
    #ffffff;

  font-size:
    1rem;

  line-height:
    1.3;

  font-weight:
    700;

  overflow-wrap:
    anywhere;
}


/* ==========================================================
   TICKET ID
========================================================== */

.ticket-id-block {

  padding-top:
    18px;
}


/* FORMATTED TICKET ID */

.ticket-id-value {

  display:
    block;

  max-width:
    100%;

  color:
    rgba(218, 225, 241, 0.72);

  font-family:

    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size:
    0.66rem;

  line-height:
    1.55;

  letter-spacing:
    0.02em;

  overflow-wrap:
    anywhere;

  word-break:
    break-word;
}


/* ==========================================================
   STATUS
========================================================== */

.ticket-status-row {

  display:
    flex;

  align-items:
    center;

  justify-content:
    space-between;

  gap:
    12px;

  margin-top:
    18px;
}


/* COMMON STATUS */

.status.valid,
.status.used,
.status.invalid {

  display:
    inline-flex;

  align-items:
    center;

  width:
    fit-content;

  margin:
    0;

  padding:
    7px 10px;

  border-radius:
    999px;

  font-size:
    0.69rem;

  line-height:
    1;

  font-weight:
    700;
}


/* VALID */

.status.valid {

  background:
    rgba(34, 197, 94, 0.12);

  border:
    1px solid
    rgba(34, 197, 94, 0.18);

  color:
    #6ee7a1;
}


/* USED */

.status.used {

  background:
    rgba(245, 158, 11, 0.12);

  border:
    1px solid
    rgba(245, 158, 11, 0.18);

  color:
    #fbbf24;
}


/* INVALID */

.status.invalid {

  background:
    rgba(239, 68, 68, 0.12);

  border:
    1px solid
    rgba(239, 68, 68, 0.18);

  color:
    #f87171;
}


/* ==========================================================
   DIGITAL BADGE
========================================================== */

.ticket-digital-badge {

  display:
    inline-flex;

  align-items:
    center;

  gap:
    6px;

  color:
    rgba(184, 196, 220, 0.58);

  font-size:
    0.68rem;

  white-space:
    nowrap;
}


.ticket-digital-badge i {

  color:
    #9b8cff;
}


/* ==========================================================
   DOWNLOAD SECTION
========================================================== */

.ticket-actions {

  padding:
    0
    24px
    24px;

  background:
    #091322;
}


/* DOWNLOAD BUTTON */

.ticket-download {

  width:
    100%;

  min-height:
    48px;

  margin:
    0;

  padding:
    12px
    18px;

  display:
    flex;

  align-items:
    center;

  justify-content:
    center;

  gap:
    9px;

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  border-radius:
    15px;

  background:
    linear-gradient(
      135deg,
      #6659f4,
      #9338e8
    );

  color:
    #ffffff;

  font-size:
    0.92rem;

  font-weight:
    700;

  box-shadow:
    0 12px 30px
    rgba(99, 82, 236, 0.22);
}


/* HOVER */

.ticket-download:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 15px 34px
    rgba(99, 82, 236, 0.32);
}


/* ACTIVE */

.ticket-download:active {

  transform:
    translateY(0)
    scale(0.99);
}


/* ==========================================================
   REMOVE OLD TICKET STRUCTURE
========================================================== */

.ticket-card > .overlay,
.ticket-content {

  display:
    none;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 600px) {

  .ticket-page-container {

    padding:
      0.5rem;
  }


  .ticket-card {

    width:
      100%;

    border-radius:
      24px;
  }


  .ticket-artwork,
  .ticket-artwork-content {

    min-height:
      225px;
  }


  .ticket-artwork-content {

    padding:
      22px
      20px
      21px;
  }


  .ticket-qr-section {

    padding:
      22px
      16px
      20px;
  }


  .qr-box {

    width:
      min(214px, 72vw);

    height:
      min(214px, 72vw);
  }


  .qr-box canvas {

    width:
      calc(
        min(214px, 72vw) - 24px
      ) !important;

    height:
      calc(
        min(214px, 72vw) - 24px
      ) !important;
  }


  .ticket-details {

    padding:
      21px
      20px
      19px;
  }


  .ticket-actions {

    padding:
      0
      20px
      20px;
  }


  .ticket-status-row {

    align-items:
      flex-start;

    flex-direction:
      column;
  }

}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 359px) {

  .ticket-artwork h2 {

    font-size:
      1.55rem;
  }


  .ticket-meta-item {

    font-size:
      0.76rem;
  }


  .ticket-detail-grid {

    gap:
      12px;
  }


  .ticket-detail-block strong {

    font-size:
      0.9rem;
  }

}


/* ==========================================================
   TICKET ANIMATION
========================================================== */

@keyframes ticketFadeIn {

  from {

    opacity:
      0;

    transform:
      translateY(12px)
      scale(0.985);

  }

  to {

    opacity:
      1;

    transform:
      translateY(0)
      scale(1);

  }

}

.event-availability {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.availability-label {
  text-align: left;
}

.availability-count {
  text-align: right;
  font-weight: 600;
}

/*  SEARCH OVERLAY */

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  padding: 100px 20px 20px;

  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);

  z-index: 999;

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  max-width: 700px;
  margin: auto;

  background: rgba(0, 0, 0, 0.1);

  border: 1px solid rgb(255, 255, 255);

  border-radius: 20px;

  display: flex;
  align-items: center;

  overflow: hidden;
}

.search-box i {
  color: #fffdfd;
  padding-left: 20px;
  font-size: 18px;
}

.search-box input {
  flex: 1;

  height: 60px;

  background: transparent;
  border: none;
  outline: none;

  color: rgb(255, 255, 255);
  font-size: 16px;

  padding: 0 20px;
}

.search-box input::placeholder {
  color: #ffffff;
}

.search-box button {
  width: 60px;
  height: 60px;

  border: none;
  background: transparent;

  color: white;
  cursor: pointer;

  font-size: 20px;
}

/*  MOBILE */
@media (max-width: 425px) {

  .search-overlay {
    padding: 80px 15px 15px;
  }

  .search-box input {
    font-size: 14px;
  }

}

.footer {
  background: rgba(0, 0, 0, 0.1);
  color: #ffffff;
  padding: 50px 20px 20px;
  font-family: 'Roboto', sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-col h2.logo {
  font-size: 22px;
  color: #fff;
  margin-bottom: 10px;
}

.footer-col h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #fff;
}

.footer-desc {
  font-size: 14px;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-link {
  display: block;
  margin: 8px 0;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.footer-link:hover {
  color: #fff;
}

.socials {
  margin-top: 10px;
}

.socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 13px;
  color: #ffffff;
  text-decoration: none;
}

.socials a:hover {
  color: #fff;
}

/* Newsletter */
.newsletter {
  display: flex;
  flex-direction: column;
  gap: 10px; 
  max-width: 280px;
}


.newsletter input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  outline: none;
  font-size: 14px;
}


.newsletter button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.newsletter button:hover {
  opacity: 0.9;
}

.form-container button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #9333ea);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.form-container button:hover {
  opacity: 0.9;
}
.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col:nth-child(2) {
  align-items: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin-right: 8px;
  background: #1e293b;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 14px;
  transition: 0.3s;
}

.socials a:hover {
  background: rgba(99, 102, 241, 0.6);
  color: #fff;
}

/* Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #ffffff;
  padding-top: 15px;
  font-size: 13px;
  color: #ffffff;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter {
    flex-direction: column;
  }

  .newsletter input,
  .newsletter button {
    border-radius: 6px;
    margin-bottom: 10px;
  }
}

/* =====================================================
   PAYMENT INFORMATION POPUP
===================================================== */

#paymentInfoPopup {
  background: rgba(3, 8, 24, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}


/* =====================================================
   GLASS CARD
===================================================== */

#paymentInfoPopup .payment-info-box {

  position: relative;

  width: min(92vw, 520px);

  max-height: 90vh;
  overflow-y: auto;

  padding: 32px 28px 24px;

  border-radius: 28px;

  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.13),
      rgba(255, 255, 255, 0.045)
    );

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);

  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);

  color: #ffffff;

  animation: paymentPopupIn 0.35s ease;
}


/* =====================================================
   SUBTLE GLASS LIGHT
===================================================== */

#paymentInfoPopup .payment-info-box::before {

  content: "";

  position: absolute;

  top: -80px;
  right: -80px;

  width: 220px;
  height: 220px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(128, 91, 255, 0.25),
      transparent 70%
    );

  pointer-events: none;
}


/* =====================================================
   ICON
===================================================== */

#paymentInfoPopup .payment-info-icon {

  width: 70px;
  height: 70px;

  margin: 0 auto 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background:
    linear-gradient(
      135deg,
      rgba(99, 91, 255, 0.28),
      rgba(210, 50, 220, 0.18)
    );

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    0 0 30px rgba(120, 80, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  color: #ffffff;

  font-size: 30px;
}


/* =====================================================
   TITLE
===================================================== */

#paymentInfoPopup h2 {

  margin: 0;

  text-align: center;

  font-size: 27px;
  font-weight: 700;

  letter-spacing: -0.4px;

  color: #ffffff;
}


/* =====================================================
   INTRO
===================================================== */

#paymentInfoPopup .payment-intro {

  margin: 9px 0 22px;

  text-align: center;

  font-size: 14px;

  color: rgba(255, 255, 255, 0.68);
}


/* =====================================================
   GUIDELINES
===================================================== */

#paymentInfoPopup .payment-guidelines {

  display: flex;
  flex-direction: column;
}


/* =====================================================
   INDIVIDUAL GUIDE
===================================================== */

#paymentInfoPopup .payment-guide-item {

  display: flex;

  align-items: flex-start;

  gap: 14px;

  padding: 13px 0;

  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}


#paymentInfoPopup .payment-guide-item:last-child {
  border-bottom: none;
}


/* =====================================================
   GUIDE ICON
===================================================== */

#paymentInfoPopup .guide-icon {

  flex: 0 0 48px;

  width: 48px;
  height: 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  background:
    linear-gradient(
      135deg,
      rgba(118, 91, 255, 0.23),
      rgba(191, 69, 220, 0.16)
    );

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.9);

  font-size: 18px;
}


/* =====================================================
   GUIDE TEXT
===================================================== */

#paymentInfoPopup .guide-text {

  display: flex;

  flex-direction: column;

  gap: 4px;

  padding-top: 2px;
}


#paymentInfoPopup .guide-text strong {

  font-size: 15px;

  font-weight: 650;

  line-height: 1.25;

  color: #ffffff;
}


#paymentInfoPopup .guide-text span {

  font-size: 13px;

  line-height: 1.45;

  color: rgba(255, 255, 255, 0.62);
}


/* =====================================================
   CONTINUE BUTTON
===================================================== */

#paymentInfoPopup .payment-continue-btn {

  width: 100%;

  margin-top: 22px;

  padding: 14px 18px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 12px;

  border: none;

  border-radius: 16px;

  background:
    linear-gradient(
      100deg,
      #6758f5,
      #9338e8
    );

  color: #ffffff;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 10px 28px rgba(105, 75, 235, 0.28);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}


#paymentInfoPopup .payment-continue-btn:hover {

  transform: translateY(-2px);

  box-shadow:
    0 14px 34px rgba(105, 75, 235, 0.38);

  filter: brightness(1.08);
}


#paymentInfoPopup .payment-continue-btn:active {

  transform: translateY(0);

}


/* =====================================================
   SECURITY NOTE
===================================================== */

#paymentInfoPopup .payment-security-note {

  margin: 13px 0 0;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 7px;

  text-align: center;

  font-size: 11px;

  color: rgba(255, 255, 255, 0.45);
}


#paymentInfoPopup .payment-security-note i {

  color: rgba(153, 112, 255, 0.9);

}


/* =====================================================
   POPUP ANIMATION
===================================================== */

@keyframes paymentPopupIn {

  from {

    opacity: 0;

    transform:
      translateY(14px)
      scale(0.97);

  }

  to {

    opacity: 1;

    transform:
      translateY(0)
      scale(1);

  }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

  #paymentInfoPopup .payment-info-box {

    width: calc(100vw - 24px);

    padding: 26px 20px 20px;

    border-radius: 24px;

  }


  #paymentInfoPopup .payment-info-icon {

    width: 60px;
    height: 60px;

    margin-bottom: 16px;

    font-size: 25px;

  }


  #paymentInfoPopup h2 {

    font-size: 23px;

  }


  #paymentInfoPopup .payment-intro {

    margin-bottom: 14px;

  }


  #paymentInfoPopup .payment-guide-item {

    gap: 11px;

    padding: 11px 0;

  }


  #paymentInfoPopup .guide-icon {

    flex-basis: 42px;

    width: 42px;
    height: 42px;

    border-radius: 11px;

    font-size: 16px;

  }


  #paymentInfoPopup .guide-text strong {

    font-size: 14px;

  }


  #paymentInfoPopup .guide-text span {

    font-size: 12px;

  }

}