/* ======================================
   RESET
====================================== */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Kanit',sans-serif;
}

html{
  scroll-behavior:smooth;
  overflow-x:hidden;
}

body{
  background:#050505;
  color:white;
  overflow-x:hidden;
}

/* ======================================
   BACKGROUND
====================================== */

body::before{
  content:'';
  position:fixed;
  inset:0;
  background-image:
    radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:3px 3px;
  opacity:.04;
  pointer-events:none;
  z-index:9999;
}

.hero-bg{
  background:
    radial-gradient(circle at top right, rgba(255,193,7,.12), transparent 25%),
    radial-gradient(circle at bottom left, rgba(255,193,7,.08), transparent 30%),
    linear-gradient(to bottom,#050505,#0b0b0b,#111111);
}

.grid-overlay{
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:60px 60px;
}

/* ======================================
   CURSOR GLOW
====================================== */

#cursor-glow{
  position:fixed;
  width:320px;
  height:320px;
  border-radius:999px;
  background:radial-gradient(
    circle,
    rgba(255,193,7,.10),
    transparent 70%
  );
  transform:translate(-50%,-50%);
  pointer-events:none;
  z-index:0;
}

/* ======================================
   NAVBAR
====================================== */

.navbar{
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(20px);
  border-bottom:1px solid rgba(255,255,255,.05);
}

.nav-link{
  position:relative;
  transition:.3s;
}

.nav-link::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-8px;
  width:0%;
  height:2px;
  background:#fdd835;
  transition:.35s;
}

.nav-link:hover::after{
  width:100%;
}

/* ======================================
   PREMIUM GLASS
====================================== */

.premium-glass{
  background:rgba(255,255,255,.05);
  backdrop-filter:blur(24px);
  border:1px solid rgba(255,255,255,.08);
}

/* ======================================
   HERO TITLE
====================================== */

.hero-title{
  line-height:.88;
  letter-spacing:-5px;
}

.gold-3d{
  background:linear-gradient(
    to bottom,
    #fff8c5,
    #ffe082,
    #fbc02d,
    #f57f17
  );
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:
    0 2px 0 rgba(255,255,255,.08),
    0 10px 30px rgba(255,193,7,.18);
}

/* ======================================
   BUTTON
====================================== */

.premium-btn{
  background:linear-gradient(
    135deg,
    #fff176,
    #fdd835,
    #fbc02d
  );
  color:#111;
  font-weight:700;
  transition:.35s;
  box-shadow:0 15px 35px rgba(255,193,7,.25);
}

.premium-btn:hover{
  transform:translateY(-5px) scale(1.03);
  box-shadow:0 25px 60px rgba(255,193,7,.35);
}

.premium-outline{
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
  transition:.35s;
}

.premium-outline:hover{
  border-color:rgba(255,193,7,.35);
  background:rgba(255,255,255,.05);
}

/* ======================================
   ORB
====================================== */

.orb{
  position:absolute;
  border-radius:999px;
  filter:blur(100px);
  opacity:.15;
}

/* ======================================
   PARTICLE
====================================== */

.particle{
  position:absolute;
  width:4px;
  height:4px;
  border-radius:999px;
  background:#ffe082;
  box-shadow:0 0 20px rgba(255,224,130,.8);
  animation:particleFloat 8s ease-in-out infinite;
}

@keyframes particleFloat{
  0%,100%{ transform:translateY(0px); opacity:.3; }
  50%{ transform:translateY(-20px); opacity:1; }
}

/* ======================================
   FLOATING
====================================== */

.float{
  animation:float 8s ease-in-out infinite;
}

.float2{
  animation:float 10s ease-in-out infinite;
}

@keyframes float{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-18px); }
}

/* ======================================
   ORBIT
====================================== */

.orbit-spin{
  animation:spin 20s linear infinite;
}

.orbit-spin-reverse{
  animation:spinReverse 30s linear infinite;
}

@keyframes spin{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@keyframes spinReverse{
  from{ transform:rotate(360deg); }
  to{ transform:rotate(0deg); }
}

/* ======================================
   HERO 3D
====================================== */

.hero-3d{
  transform-style:preserve-3d;
  transition:transform .25s ease;
  transform:rotateY(-4deg) rotateX(2deg);
}

/* ======================================
   MAIN CARD
====================================== */

.main-card{
  position:relative;
  border-radius:58px;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,.08),
    rgba(255,255,255,.03)
  );
  backdrop-filter:blur(30px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:
    0 50px 120px rgba(0,0,0,.45),
    0 20px 60px rgba(255,193,7,.08);
}

.main-card::before{
  content:'';
  position:absolute;
  inset:-1px;
  border-radius:inherit;
  padding:1px;
  background:linear-gradient(
    130deg,
    rgba(255,255,255,.05),
    rgba(255,193,7,.4),
    rgba(255,255,255,.05)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor;
  mask-composite:exclude;
  animation:borderRotate 8s linear infinite;
}

@keyframes borderRotate{
  0%{ filter:hue-rotate(0deg); }
  100%{ filter:hue-rotate(360deg); }
}

/* ======================================
   FLOAT CARD
====================================== */

.float-card{
  align-items:center;
  gap:12px;
  padding:18px 24px;
  border-radius:24px;
  background:rgba(20,20,20,.82);
  backdrop-filter:blur(18px);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 20px 40px rgba(0,0,0,.35);
  animation:floatCard 7s ease-in-out infinite;
}

.float-card.delay{
  animation-delay:2s;
}

@keyframes floatCard{
  0%,100%{ transform:translateY(0px); }
  50%{ transform:translateY(-14px); }
}

/* ======================================
   CARD
====================================== */

.premium-card{
  transition:.45s;
  position:relative;
  overflow:hidden;
}

.premium-card::after{
  content:'';
  position:absolute;
  top:-100%;
  left:-100%;
  width:200%;
  height:200%;
  background:linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,.08),
    transparent
  );
  transform:rotate(25deg);
  animation:shine 8s linear infinite;
}

@keyframes shine{
  0%{ transform:translateX(-100%) rotate(25deg); }
  100%{ transform:translateX(100%) rotate(25deg); }
}

.premium-card:hover{
  transform:translateY(-10px);
  border-color:rgba(255,215,0,.2);
  box-shadow:0 25px 60px rgba(255,193,7,.12);
}

/* ======================================
   SECTION LABEL
====================================== */

.section-label{
  letter-spacing:6px;
  text-transform:uppercase;
  color:#fdd835;
  font-size:14px;
}

/* ======================================
   PROGRESS
====================================== */

#progress{
  position:fixed;
  top:0;
  left:0;
  width:0%;
  height:3px;
  background:linear-gradient(to right, #fff176, #fbc02d);
  z-index:99999;
}

/* ======================================
   MOBILE MENU
====================================== */

#mobile-menu{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(5,5,5,.97);
  z-index:9998;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}

#mobile-menu.open{
  display:flex;
}

/* ======================================
   RESPONSIVE
====================================== */

@media(max-width:640px){
  .hero-title{
    letter-spacing:-1px;
  }
}

/* ======================================
   REGISTRATION MODAL
====================================== */

#reg-modal,
#status-modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(5,5,5,.88);
  backdrop-filter:blur(14px);
  z-index:9997;
  overflow-y:auto;
  padding:20px;
}

#reg-modal.open,
#status-modal.open{
  display:flex;
  align-items:flex-start;
  justify-content:center;
}

.modal-box{
  background:rgba(10,10,10,.98);
  border:1px solid rgba(255,255,255,.08);
  border-radius:32px;
  width:100%;
  max-width:600px;
  padding:32px;
  margin:auto;
  position:relative;
}

@media(max-width:640px){
  .modal-box{
    padding:24px 20px;
    border-radius:24px;
  }
}

.modal-input{
  width:100%;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  border-radius:12px;
  padding:10px 16px;
  color:white;
  font-size:14px;
  font-family:'Kanit',sans-serif;
  outline:none;
  transition:border-color .25s;
}

.modal-input:focus{
  border-color:rgba(255,193,7,.45);
}

.modal-input::placeholder{
  color:rgba(255,255,255,.2);
}

select.modal-input{
  background:#141420;
  cursor:pointer;
  appearance:auto;
}

select.modal-input option{
  background:#141420;
  color:white;
}

.reg-result-box{
  padding:14px 18px;
  border-radius:16px;
  text-align:center;
  font-size:14px;
}

.reg-result-box.success{
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.25);
  color:#86efac;
}

.reg-result-box.error{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.25);
  color:#fca5a5;
}

/* ======================================
   COUNTDOWN
====================================== */

.countdown-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
  border-radius:16px;
  padding:12px 18px;
  min-width:68px;
}

.countdown-num{
  font-size:1.9rem;
  font-weight:900;
  color:#fde047;
  line-height:1;
  font-feature-settings:"tnum";
  letter-spacing:-1px;
}

.countdown-label{
  font-size:11px;
  color:rgba(255,255,255,.35);
  margin-top:5px;
  letter-spacing:1px;
}

/* ======================================
   TOAST
====================================== */

#toast-container{
  pointer-events:none;
}

.toast{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 20px;
  border-radius:18px;
  min-width:260px;
  max-width:360px;
  font-size:14px;
  font-family:'Kanit',sans-serif;
  backdrop-filter:blur(16px);
  pointer-events:auto;
  cursor:pointer;
  animation:toastIn .3s cubic-bezier(.34,1.56,.64,1) forwards;
  box-shadow:0 8px 32px rgba(0,0,0,.4);
}

.toast.success{
  background:rgba(12,12,12,.96);
  border:1px solid rgba(34,197,94,.3);
  color:#86efac;
}

.toast.error{
  background:rgba(12,12,12,.96);
  border:1px solid rgba(239,68,68,.3);
  color:#fca5a5;
}

.toast.info{
  background:rgba(12,12,12,.96);
  border:1px solid rgba(251,191,36,.2);
  color:#fde047;
}

.toast.out{
  animation:toastOut .3s ease forwards;
}

@keyframes toastIn{
  from{ opacity:0; transform:translateX(24px) scale(.94); }
  to  { opacity:1; transform:translateX(0) scale(1); }
}

@keyframes toastOut{
  from{ opacity:1; transform:translateX(0) scale(1); }
  to  { opacity:0; transform:translateX(24px) scale(.94); }
}

/* ======================================
   ANNOUNCEMENT
====================================== */

.announce-icon{
  animation:announcePulse 2.5s ease-in-out infinite;
}

@keyframes announcePulse{
  0%,100%{ box-shadow:0 0 0 0 rgba(253,216,53,.18); }
  50%    { box-shadow:0 0 0 18px rgba(253,216,53,.0); }
}
