*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg, #0f172a);
  color: #f1f5f9;
  font-family: 'Inter', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

#stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,.25) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(139,92,246,.15) 0%, transparent 50%);
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  padding: 60px 24px 40px;
  text-align: center;
}

/* Logo */
.logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent, #6366f1);
  margin-bottom: 48px;
  opacity: .9;
}

/* Headline */
.headline {
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #f1f5f9 30%, var(--accent, #6366f1));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: #94a3b8;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 48px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.cd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 18px 28px;
  min-width: 88px;
  backdrop-filter: blur(8px);
}

.cd-num {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
}

.cd-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #64748b;
  margin-top: 6px;
}

.cd-sep {
  font-size: 2rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 22px;
  user-select: none;
}

/* Form card */
.form-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(12px);
  margin-bottom: 32px;
}

.form-title {
  font-size: 1rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 20px;
}

.input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.input-row input {
  flex: 1 1 180px;
  padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.input-row input::placeholder { color: #475569; }

.input-row input:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}

.input-row button {
  padding: 13px 24px;
  background: var(--accent, #6366f1);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .15s;
}

.input-row button:hover  { opacity: .88; }
.input-row button:active { transform: scale(.97); }

/* Alerts */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
}

.alert-success {
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}

.alert-error {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5;
}

/* Sub count */
.sub-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  margin-top: 16px;
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #94a3b8;
  transition: background .2s, color .2s;
}

.socials a:hover { background: var(--accent, #6366f1); color: #fff; }
.socials a svg   { width: 18px; height: 18px; }

/* Admin link */
.admin-link a {
  font-size: 12px;
  color: #334155;
  text-decoration: none;
  transition: color .2s;
}
.admin-link a:hover { color: #64748b; }

@media (max-width: 480px) {
  .cd-box     { padding: 14px 18px; min-width: 70px; }
  .form-card  { padding: 24px 16px; }
  .input-row  { flex-direction: column; }
  .input-row button { width: 100%; }
}
