:root {
  --slate-950: #06080f;
  --slate-900: #0b0e1a;
  --slate-800: #111827;
  --slate-700: #1a2235;
  --slate-300: #64748b;
  --slate-100: #cbd5e1;
  --white: #ffffff;
  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, .15);
  --amber: #f59e0b;
  --danger: #f43f5e;
  --glass: linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  --border: 1px solid rgba(255,255,255,.09);
  --shadow: 0 18px 60px rgba(0,0,0,.32);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--slate-100);
  background:
    radial-gradient(at 20% 20%, rgba(16,185,129,.13), transparent 34%),
    radial-gradient(at 80% 0%, rgba(245,158,11,.08), transparent 28%),
    linear-gradient(145deg, #06080f, #0b1224 60%, #08111f);
}

a {
  color: var(--emerald);
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 16px 18px;
  background: rgba(255,255,255,.05);
  border: var(--border);
  border-radius: 999px;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 800;
  letter-spacing: .3px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), #06b6d4);
  color: #00110b;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero, .card {
  background: var(--glass);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(28px, 5vw, 56px);
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--emerald);
  background: var(--emerald-soft);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h1, h2, h3 {
  color: var(--white);
  line-height: 1.12;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.7rem);
  margin: 18px 0 10px;
}

.muted {
  color: var(--slate-100);
  opacity: .74;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
}

.stat {
  font-size: 2.6rem;
  color: var(--white);
  font-weight: 900;
}

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald), #06b6d4);
  color: #00110b;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}

.btn:hover, button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16,185,129,.24);
}

.btn.secondary {
  color: var(--white);
  background: rgba(255,255,255,.08);
  border: var(--border);
}

.btn.danger {
  color: var(--white);
  background: linear-gradient(135deg, var(--danger), #dc2626);
}

input, select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: var(--border);
  border-radius: 14px;
  color: var(--white);
  background: rgba(255,255,255,.06);
  outline: none;
}

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

label {
  display: block;
  margin: 0 0 8px;
  color: var(--white);
  font-weight: 700;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.field {
  margin-bottom: 16px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: left;
}

th {
  color: var(--white);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.alert {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-radius: 16px;
  border: var(--border);
}

.alert.success {
  color: #a7f3d0;
  background: rgba(16,185,129,.11);
}

.alert.error {
  color: #fecdd3;
  background: rgba(244,63,94,.12);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-card {
  width: min(460px, 100%);
}

.question-card {
  margin-bottom: 18px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
}

.option input {
  width: auto;
}

.timer {
  position: sticky;
  top: 14px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid rgba(245,158,11,.25);
  background: rgba(245,158,11,.12);
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.08);
  font-size: .82rem;
  font-weight: 800;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 720px) {
  .nav {
    align-items: flex-start;
    border-radius: 24px;
    flex-direction: column;
  }
}
