/* ===== Reset & Theme ===== */
*, *::before, *::after { box-sizing: border-box; }
:root{
  --bg:#0b0f14;
  --panel:#0f151d;
  --panel-2:#111926;
  --text:#e6f3ff;
  --muted:#9ab0c7;
  --brand:#19f0c7;
  --brand-2:#2ae;
  --warn:#f5b301;
  --success:#2ecc71;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --radius: 16px;
}
html, body { height: 100%; }
body{
  margin:0; font-family: 'Poppins', sans-serif; color:var(--text);
  /* Full-page even gradient */
  background:radial-gradient(1200px 1200px at 100% -10%, rgba(55,179,255,.12), transparent 40%),
             radial-gradient(900px 900px at -10% 110%, rgba(25,240,199,.12), transparent 40%),
             var(--bg);
}
a{ color:inherit; text-decoration:none; }
.container{ max-width: 1120px; margin: 0 auto; padding: 24px; }

/* ===== Hero ===== */
.hero{
  display:grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap:24px; align-items:start; margin-top:14px; margin-bottom:18px;
}
.hero-left{ display:flex; flex-direction:column; gap:12px; }
.title{ font-size: clamp(28px, 4vw, 40px); line-height:1.15; font-weight:800; letter-spacing:.2px; }
.title .accent{ color:var(--brand); text-shadow:0 0 16px rgba(25,240,199,.35); display:inline-block; font-weight:800; font-size:1.35em; line-height:1; }
.subtitle{ font-size:14px; color:var(--muted); }

/* Condensed countdown block (no card) */
.timer-wrap{
  display:inline-flex; align-items:center; gap:8px; flex-wrap:wrap;
  padding:8px 0; border-radius: var(--radius); width:auto; max-width:270px;
  background:transparent; border:0; box-shadow:none;
}
.timer-label{ font-size:12px; color:var(--muted); margin-right:6px; }

/* CTA button – short */
.btn{
  padding:8px 14px; width:190px; border-radius:999px;
  border:2px solid rgba(255,255,255,.75);
  background:transparent; color:#ffffff; font-weight:700; letter-spacing:.1px; font-size:16px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover{ transform: translateY(-2px); background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-color: transparent; box-shadow: 0 0 20px rgba(25,240,199,.3); }

/* Card shell */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border:1px solid rgba(255,255,255,.06); border-radius: var(--radius); box-shadow:var(--shadow);
}
.panel{ padding:18px; }

/* ===== Flip Countdown ===== */
.countdown{ display:flex; gap:8px; }
.time-group{ display:grid; grid-template-rows: auto auto; justify-items:center; gap:6px; }
.label{ font-size:11px; color:var(--muted); letter-spacing:.6px; text-transform:uppercase; }

.flip{
  position:relative; width:50px; height:70px; perspective: 1000px; overflow:hidden; border-radius:8px;
}
.flip .card-face{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  border-radius:8px; color:#dff; font-weight:800; font-variant-numeric: tabular-nums;
  font-size:32px; letter-spacing:1px; background:#0f151d; border:1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 12px rgba(0,0,0,.35); backface-visibility:hidden;
}
.flip .top{ z-index:2; transform-origin: center bottom; }
.flip .bottom{ transform-origin: center top; }
.flip.anim .top{ animation: flipTop .7s ease-in both; }
.flip.anim .bottom{ animation: flipBottom .7s ease-out .7s both; }
@keyframes flipTop{ 0%{ transform: rotateX(0); } 100%{ transform: rotateX(-90deg); } }
@keyframes flipBottom{ 0%{ transform: rotateX(90deg); } 100%{ transform: rotateX(0); } }

/* ===== Sections ===== */
h2{ font-size:20px; margin: 26px 0 10px; }

.steps{ display:grid; gap:18px; }
.step{ padding:18px; background:var(--panel); border-radius:var(--radius); transition:all .3s ease; }
.step:hover{ background:#151d27; transform:translateY(-2px); box-shadow:0 6px 16px rgba(0,0,0,.4); }
.step .pill{ font-size:13px; color:var(--brand); border:1px solid var(--brand); padding:4px 12px; border-radius:999px; font-weight:600; display:inline-flex; align-items:center; gap:6px; background:transparent; }
.step .title-step{ font-size:15px; font-weight:600; margin-top:10px; display:flex; align-items:center; gap:8px; }
.step .subtitle{ font-size:13px; color:var(--muted); margin-top:6px; display:flex; align-items:center; gap:6px; }

/* Stack rules vertically */
.cards-stack{ display:grid; gap:24px; }

.list{ margin:0; padding-left:18px; }
.list li{ margin:8px 0; color:var(--muted); font-size:12px; }

/* Neon hover only for cards & steps (NOT timer) */
.card, .step{ position:relative; overflow:hidden; }
.card::before, .step::before{
  content:""; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; /* Safari */
  mask-composite: exclude;      /* Others */
  opacity:0; transition: opacity .25s ease; pointer-events:none;
}
.card:hover::before, .step:hover::before{ opacity:1; }
.card.panel:hover,
.step:hover{
  background: linear-gradient(180deg, rgba(25,240,199,.06), rgba(25,240,199,.02));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.45);
  border-color: rgba(25,240,199,.35);
}

/* Media (image) – prevent overflow */
.media{ height:280px; border-radius:24px; overflow:hidden; align-self:start; }
.media img{ width:100%; height:100%; object-fit:cover; display:block; max-width:100%; }

/* ===== Modal ===== */
.modal{position:fixed;inset:0;display:none;z-index:9999}
.modal.open{display:block}
.modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.6)}
.modal__dialog{
  position:relative;margin:5vh auto 0;max-width:980px;width:92%;
  background:#0f151d;border:1px solid rgba(255,255,255,.1);border-radius:16px;
  padding:16px 16px 12px;box-shadow:0 20px 60px rgba(0,0,0,.6)
}
.modal__close{position:absolute;right:10px;top:10px;background:transparent;border:none;color:#fff;font-size:24px;cursor:pointer}
#registerFrame{width:100%;height:70vh;border:1px solid rgba(255,255,255,.2);border-radius:10px;background:#0b0f14}
.modal__fallback{margin-top:10px;font-size:14px}
body.modal-open{overflow:hidden}


/* ===== Responsive ===== */
@media (max-width: 900px){
  .hero{ grid-template-columns: 1fr; }
  .media{ height:240px; }
  .flip{ width:44px; height:60px; }
}
@media (max-width: 520px){
  .flip{ width:40px; height:54px; }
}

/* Step icons */
.step-icon{ width:24px; height:24px; display:block; }
