:root{
  --bg:#050505;
  --bg2:#111111;
  --gold:#d4af37;
  --gold-light:#f5d76e;
  --white:#ffffff;
  --gray:#bdbdbd;
  --shadow:0 0 20px rgba(212,175,55,.35);
  --radius:18px;
  --transition:.35s ease;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  scroll-behavior:smooth;
}

html{
  overflow-x:hidden;
}

body{
  font-family:Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--white);
  overflow-x:hidden;
}

body::-webkit-scrollbar{
  width:8px;
}

body::-webkit-scrollbar-thumb{
  background:var(--gold);
  border-radius:20px;
}

a{
  text-decoration:none;
  color:inherit;
}

button{
  font-family:inherit;
  cursor:pointer;
  border:none;
}

img{
  display:block;
  width:100%;
}

.background-overlay{
  position:fixed;
  inset:0;
  background:
    linear-gradient(rgba(0,0,0,.72),rgba(0,0,0,.82)),
    url("https://images.unsplash.com/photo-1493225457124-a3eb161ffa5f?auto=format&fit=crop&w=1600&q=80");
  background-size:cover;
  background-position:center;
  z-index:-2;
}

.background-overlay::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}

.navbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  padding:16px 22px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(212,175,55,.25);
  z-index:999;
}

.nav-logo{
  display:flex;
  align-items:center;
  gap:12px;
}

.nav-logo img{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--gold);
  box-shadow:var(--shadow);
}

.nav-logo span{
  font-size:20px;
  font-weight:700;
  color:var(--gold-light);
}

.menu-toggle{
  display:block;
  background:none;
  color:var(--gold);
  font-size:32px;
}

.nav-links{
  list-style:none;
  position:absolute;
  top:78px;
  left:0;
  width:100%;
  display:flex;
  flex-direction:column;
  background:#090909;
  max-height:0;
  overflow:hidden;
  transition:var(--transition);
}

.nav-links.active{
  max-height:500px;
}

.nav-links li{
  border-bottom:1px solid rgba(255,255,255,.08);
}

.nav-links a,
.nav-buy-btn{
  display:block;
  width:100%;
  padding:18px;
  text-align:center;
  background:none;
  color:#fff;
  font-size:16px;
}

.nav-links a:hover,
.nav-buy-btn:hover{
  background:rgba(212,175,55,.12);
  color:var(--gold-light);
}

.hero{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:120px 22px 70px;
  text-align:center;
}

.hero-content{
  width:100%;
  max-width:900px;
}

.logo-circle{
  width:120px;
  height:120px;
  margin:auto;
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  font-size:58px;
  background:rgba(212,175,55,.12);
  border:2px solid var(--gold);
  box-shadow:0 0 35px rgba(212,175,55,.45);
}

.hero h1{
  margin-top:28px;
  font-size:48px;
  color:var(--gold-light);
}

.tagline{
  margin-top:18px;
  color:var(--gray);
  font-size:19px;
  line-height:1.7;
}

.countdown{
  margin-top:45px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}

.time-box{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(212,175,55,.25);
  border-radius:var(--radius);
  padding:24px 10px;
  box-shadow:var(--shadow);
}

.time-box span{
  display:block;
  font-size:36px;
  font-weight:bold;
  color:var(--gold);
}

.time-box small{
  display:block;
  margin-top:10px;
  color:#d7d7d7;
  letter-spacing:1px;
}

.hero-button{
  margin-top:45px;
  padding:18px 40px;
  background:var(--gold);
  color:#000;
  border-radius:50px;
  font-size:17px;
  font-weight:bold;
  transition:var(--transition);
  box-shadow:0 0 25px rgba(212,175,55,.45);
}

.hero-button:hover{
  transform:translateY(-4px);
  background:var(--gold-light);
}

.about,
.gallery{
  padding:90px 22px;
  max-width:1200px;
  margin:auto;
}

.about h2,
.gallery h2{
  text-align:center;
  color:var(--gold-light);
  font-size:34px;
  margin-bottom:28px;
}

.about p{
  max-width:850px;
  margin:auto;
  text-align:center;
  line-height:1.9;
  color:#dddddd;
}

.gallery-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:22px;
}

.gallery-item{
  overflow:hidden;
  border-radius:20px;
  border:2px solid rgba(212,175,55,.22);
  box-shadow:var(--shadow);
}

.gallery-item img{
  height:260px;
  object-fit:cover;
  transition:.45s;
}

.gallery-item:hover img{
  transform:scale(1.08);
}

footer{
  padding:50px 20px;
  text-align:center;
  background:#090909;
  border-top:1px solid rgba(212,175,55,.2);
}

footer h3{
  color:var(--gold);
  margin-bottom:12px;
}

footer p{
  color:#bfbfbf;
  margin:6px 0;
}

.modal{
  position:fixed;
  inset:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.82);
  z-index:9999;
}

.hidden{
  display:none;
}

@keyframes glow{
  0%{
    box-shadow:0 0 12px rgba(212,175,55,.25);
  }
  50%{
    box-shadow:0 0 32px rgba(212,175,55,.55);
  }
  100%{
    box-shadow:0 0 12px rgba(212,175,55,.25);
  }
}

.logo-circle,
.hero-button,
.time-box{
  animation:glow 3s infinite;
}

@media(min-width:768px){

  .menu-toggle{
    display:none;
  }

  .nav-links{
    position:static;
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:8px;
    background:none;
    max-height:none;
    width:auto;
    overflow:visible;
  }

  .nav-links li{
    border:none;
  }

  .nav-links a,
  .nav-buy-btn{
    padding:10px 18px;
  }

  .hero h1{
    font-size:72px;
  }

  .countdown{
    grid-template-columns:repeat(4,1fr);
  }

  .gallery-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(min-width:1100px){

  .gallery-grid{
    grid-template-columns:repeat(4,1fr);
  }

  .hero{
    padding-top:140px;
  }
}

.purchase-modal{
  width:92%;
  max-width:420px;
  background:#101010;
  border:2px solid #d4af37;
  border-radius:20px;
  padding:28px 22px;
  position:relative;
  box-shadow:0 0 30px rgba(212,175,55,.35);
  animation:popup .3s ease;
}

.close-modal{
  position:absolute;
  top:12px;
  right:14px;
  width:36px;
  height:36px;
  border:none;
  border-radius:50%;
  background:#d4af37;
  color:#000;
  font-size:24px;
  font-weight:bold;
  cursor:pointer;
}

.purchase-modal h2{
  text-align:center;
  color:#d4af37;
  margin-bottom:25px;
}

.form-group{
  margin-bottom:18px;
}

.form-group label{
  display:block;
  margin-bottom:8px;
  color:#fff;
  font-weight:600;
}

.form-group input,
.form-group select{
  width:100%;
  padding:14px;
  background:#1b1b1b;
  border:1px solid #333;
  border-radius:12px;
  color:#fff;
  font-size:16px;
  outline:none;
}

.form-group input:focus,
.form-group select:focus{
  border-color:#d4af37;
}

.total-price{
  margin:25px 0;
  text-align:center;
  font-size:22px;
  font-weight:bold;
  color:#d4af37;
}

#payButton{
  width:100%;
  padding:16px;
  border:none;
  border-radius:12px;
  background:#d4af37;
  color:#000;
  font-size:17px;
  font-weight:bold;
  cursor:pointer;
  transition:.3s;
}

#payButton:hover{
  transform:scale(1.02);
}

@keyframes popup{
  from{
    opacity:0;
    transform:scale(.9);
  }

  to{
    opacity:1;
    transform:scale(1);
  }
}

.ticket-card{
  width:92%;
  max-width:430px;
  max-height:90vh;
  overflow-y:auto;
  background:#0b0b0b;
  color:#fff;
  border:2px solid #d4af37;
  border-radius:20px;
  padding:24px;
  position:relative;
  box-shadow:0 0 35px rgba(212,175,55,.4);
}

.ticket-header{
  text-align:center;
  padding-bottom:20px;
  border-bottom:1px dashed #d4af37;
}

.ticket-logo{
  font-size:42px;
  margin-bottom:8px;
}

.ticket-header h2{
  color:#d4af37;
  font-size:25px;
  margin-bottom:10px;
}

.ticket-header span{
  display:inline-block;
  padding:6px 12px;
  background:#d4af37;
  color:#000;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
}

.ticket-id{
  text-align:center;
  padding:20px 0;
  border-bottom:1px dashed #444;
}

.ticket-id small,
.ticket-details small{
  display:block;
  color:#999;
  font-size:11px;
  margin-bottom:5px;
}

.ticket-id strong{
  color:#d4af37;
  font-size:20px;
  letter-spacing:1px;
}

.ticket-details{
  display:grid;
  gap:16px;
  padding:20px 0;
}

.ticket-details div{
  padding-bottom:12px;
  border-bottom:1px solid #222;
}

.ticket-details strong{
  display:block;
  font-size:15px;
  word-break:break-word;
}

.ticket-code{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
  padding:20px 0;
  border-top:1px dashed #d4af37;
  border-bottom:1px dashed #d4af37;
}

#ticketQRCode{
  background:#fff;
  padding:10px;
  border-radius:8px;
}

#ticketBarcode{
  max-width:100%;
  background:#fff;
  padding:8px;
}

.ticket-warning{
  text-align:center;
  color:#d4af37;
  font-size:13px;
  margin:20px 0;
}

#downloadTicketBtn{
  width:100%;
  padding:15px;
  background:#d4af37;
  color:#000;
  border:none;
  border-radius:12px;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

#downloadTicketBtn:hover{
  background:#f5d76e;
}




/* ==============================
   TICKET SALES STATUS
============================== */

#ticketType:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  border-color: #666;
}


/* ==============================
   PAYMENT BUTTON STATES
============================== */

#payButton:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
}


/* ==============================
   BUY TICKET BUTTON STATES
============================== */

#buyTicketBtn:disabled,
#heroBuyBtn:disabled {
  background: #555;
  color: #aaa;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.7;
}


/* ==============================
   DISABLED TICKET OPTIONS
============================== */

#ticketType option:disabled {
  color: #888;
  background: #222;
}