:root{--bg:#000;--fg:#fff;--ring:rgba(255,255,255,.1);--muted:rgba(255,255,255,.7)}
*{box-sizing:border-box}

/* Let page be scrollable and avoid top cut-off on mobile */
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(124,58,237,.25), transparent 40%),
    radial-gradient(900px 600px at 80% 60%, rgba(168,85,247,.20), transparent 40%),
    #000;
  color:var(--fg);

  display:flex;
  justify-content:center;
  align-items:flex-start;      /* start at top on mobile */
  min-height:100vh;            /* full viewport height, but can scroll */
  padding:24px 16px 40px;      /* breathing room top/bottom */
}

.card{
  width:100%;
  max-width:980px;
  background:rgba(0,0,0,.55);
  border:1px solid var(--ring);
  border-radius:24px;
  padding:26px;
  box-shadow:0 10px 40px rgba(0,0,0,.5);
}

/* Header: logo + text stacked and centered */
.header{
  display:flex;
  flex-direction:column;       /* stack logo above text */
  align-items:center;
  text-align:center;
  gap:12px;
  margin-bottom:24px;
}

/* Bigger logo with glow + shadow */
.logo{
  width:160px;
  height:160px;
  border-radius:32px;
  overflow:hidden;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:
    0 0 40px rgba(124,58,237,0.6),   /* purple glow */
    0 18px 35px rgba(0,0,0,0.7);     /* drop shadow */
}

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

/* Centered title/subtitle under logo */
.title{
  font-size:clamp(26px,4vw,38px);
  font-weight:800;
  line-height:1.1;
  text-align:center;
}

.subtitle{
  color:var(--muted);
  margin-top:6px;
  font-size:clamp(14px,2vw,16px);
  text-align:center;
}

.panel{
  display:grid;
  gap:18px;
  grid-template-columns:1fr;
  margin-top:18px;
}

.box{
  border:1px solid var(--ring);
  border-radius:18px;
  padding:18px;
  background:rgba(255,255,255,.02);
}

h3{
  margin:0 0 6px;
  font-size:18px;
}

p{margin:0}

.countdown{
  display:flex;
  gap:10px;
  margin-top:10px;
  flex-wrap:wrap;
}

.time{
  min-width:78px;
  text-align:center;
  padding:10px;
  border-radius:12px;
  border:1px solid var(--ring);
  background:rgba(255,255,255,.03);
}

.time b{
  display:block;
  font-size:22px;
}

.footer{
  margin-top:14px;
  font-size:12px;
  color:rgba(255,255,255,.65);
  text-align:center;
}

.input{
  flex:1;
  padding:12px 14px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.btn-primary{
  background:#fff;
  color:#000;
}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  background:rgba(124,58,237,.16);
  color:#c4b5fd;
  margin-left:8px;
}

.list{
  display:grid;
  gap:8px;
  margin-top:12px;
  color:rgba(255,255,255,.85);
}

.kv{
  display:flex;
  justify-content:space-between;
  gap:14px;
  font-size:14px;
}

.success{
  background:rgba(34,197,94,.15);
  color:#a7f3d0;
  border:1px solid rgba(34,197,94,.25);
  padding:10px 12px;
  border-radius:12px;
  margin-top:10px;
  display:none;
}

.success.show{display:block}

.forms-grid{
  display:grid;
  gap:18px;
  margin-top:18px;
}

textarea.input{min-height:100px}

/* Desktop tweaks */
@media(min-width:960px){
  body{
    align-items:center;       /* recentre card vertically on desktop */
    padding:32px 24px;
  }

  .panel{
    grid-template-columns:1fr 1fr;
  }

  .header{
    margin-bottom:32px;
  }

  .forms-grid{
    grid-template-columns:1fr 1fr 1fr;
  }
}
