* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  background: #0b1220;
  color: white;
}
a { color: inherit; text-decoration: none; }

.page-bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.22), transparent 30%),
    radial-gradient(circle at top right, rgba(34,211,238,.16), transparent 28%),
    linear-gradient(160deg, #0a0f1f 0%, #0f172a 50%, #141b2e 100%);
}

.shell {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .08em;
}

.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  font-size: 14px;
}

.hero,
.card {
  background: rgba(20, 26, 44, 0.75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.hero {
  padding: 28px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.1;
}

.hero p,
.muted {
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  padding: 20px;
}

.card h2, .card h3 {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 12px;
}

input, select, button, textarea {
  width: 100%;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.06);
  color: white;
  font-size: 16px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255,255,255,.45);
}

button {
  cursor: pointer;
  font-weight: 700;
  background: linear-gradient(135deg, #7c5cff, #38bdf8);
  border: 0;
}

button.secondary {
  background: rgba(255,255,255,.08);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 14px;
}

.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,.09);
}

.error-box {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 67, 67, .12);
  border: 1px solid rgba(255, 67, 67, .28);
  color: #ffc7c7;
}

.gate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(124,92,255,.35), transparent 32%),
    radial-gradient(circle at top right, rgba(0,190,255,.25), transparent 28%),
    linear-gradient(160deg, #0a0f1f 0%, #11182c 45%, #18162a 100%);
}

.gate-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 22, 38, 0.78);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  padding: 24px;
}

.pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  font-size: 13px;
  margin-bottom: 14px;
}

.section-title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .shell { padding: 14px; }
  .hero, .card, .gate-card { border-radius: 20px; padding: 18px; }
  .hero h1 { font-size: 28px; }
  .logo { font-size: 24px; }
  input, select, button, textarea { font-size: 16px; }
}
