:root {
  --brand: #17235f;
  --brand-strong: #0d1748;
  --brand-soft: #eef1fb;
  --accent: #ff601f;
  --accent-soft: #fff2ec;
  --ink: #172033;
  --muted: #6a7385;
  --line: #e6e9ef;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --success: #16794b;
  --warning: #a96600;
  --danger: #b42318;
  --shadow: 0 10px 28px rgba(23, 35, 95, 0.08);
  --radius: 16px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  line-height: 1.5;
}
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(230, 233, 239, 0.85);
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
}
.topbar__inner {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; color: var(--brand); }
.brand img { width: 122px; height: 46px; object-fit: contain; object-position: left center; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { padding: 9px 12px; border-radius: 9px; color: #424a5c; font-weight: 650; font-size: 14px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.nav-toggle { display: none; border: 1px solid var(--line); border-radius: 9px; background: white; padding: 8px 11px; }
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #111c54, #1c2c76 72%, #25398b);
  color: white;
  padding: 76px 0 70px;
}
.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255, 96, 31, 0.13);
  right: -100px;
  top: -90px;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 800; color: #ffd6c4; }
.hero h1 { margin: 0; max-width: 760px; font-size: clamp(38px, 6vw, 64px); line-height: 1.03; letter-spacing: -.04em; }
.hero p { max-width: 680px; margin: 20px 0 0; font-size: 18px; color: #dfe4ff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__panel { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 24px; }
.hero__panel strong { display: block; font-size: 32px; margin-bottom: 4px; }
.hero__panel span { color: #dfe4ff; }
.btn { border: 0; border-radius: 10px; padding: 11px 16px; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn--primary { background: var(--accent); color: white; box-shadow: 0 8px 20px rgba(255,96,31,.23); }
.btn--secondary { background: white; color: var(--brand); }
.btn--ghost { border: 1px solid var(--line); background: white; color: var(--ink); }
.btn--small { padding: 8px 11px; font-size: 13px; }
.btn:focus-visible, a:focus-visible { outline: 3px solid rgba(255,96,31,.28); outline-offset: 2px; }
.section { padding: 58px 0; }
.section--tight { padding: 34px 0; }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.section__head h2 { margin: 0; font-size: clamp(25px, 3.5vw, 36px); letter-spacing: -.025em; }
.section__head p { margin: 6px 0 0; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 1px 1px rgba(16,24,40,.02); }
.card--raised { box-shadow: var(--shadow); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); }
.metric { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.metric__value { font-size: 30px; font-weight: 850; letter-spacing: -.03em; color: var(--brand); }
.metric__label { margin-top: 2px; color: var(--muted); font-size: 13px; }
.metric__badge { padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 750; background: var(--brand-soft); color: var(--brand); }
.app-shell { min-height: 100vh; background: #f6f7fa; }
.app-layout { width: min(100% - 28px, 1320px); margin: 20px auto 40px; display: grid; grid-template-columns: 238px 1fr; gap: 18px; }
.sidebar { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; align-self: start; position: sticky; top: 90px; }
.sidebar__title { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 8px 10px; }
.sidebar a { display: flex; align-items: center; justify-content: space-between; padding: 10px 11px; border-radius: 9px; color: #454d5f; font-weight: 650; font-size: 14px; }
.sidebar a:hover, .sidebar a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.content { min-width: 0; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.025em; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.stack { display: grid; gap: 16px; }
.table-card { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); }
.table-head { padding: 17px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.table-head h2 { font-size: 17px; margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 18px; text-align: left; border-bottom: 1px solid #eef0f4; font-size: 14px; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; background: #fbfbfd; }
tr:last-child td { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status--active, .status--success { background: #eaf8f1; color: var(--success); }
.status--scheduled { background: #fff4e6; color: var(--warning); }
.status--inactive { background: #f1f2f5; color: #667085; }
.status--danger { background: #fff0ee; color: var(--danger); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mock-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.mock-card__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.mock-card__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: end; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; border-radius: 0 12px 12px 0; color: #6a331e; }
.callout strong { color: #512311; }
.test-card { border: 1px solid #dfe3ee; background: white; border-radius: 18px; padding: 22px; }
.test-card--live { border-color: rgba(255,96,31,.38); box-shadow: 0 10px 30px rgba(255,96,31,.08); }
.test-card__top { display: flex; justify-content: space-between; gap: 14px; }
.test-card h2 { margin: 8px 0 6px; }
.test-card__window { margin-top: 16px; padding: 12px 14px; background: #f7f8fb; border-radius: 11px; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.leaderboard { display: grid; gap: 10px; }
.rank-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; background: white; border: 1px solid var(--line); border-radius: 11px; }
.rank { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 850; }
.rank-row strong { display: block; }
.rank-row small { color: var(--muted); }
.feature-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); font-weight: 900; }
.footer { padding: 28px 0; border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 100; background: #111827; color: white; padding: 11px 15px; border-radius: 10px; box-shadow: var(--shadow); transition: .18s ease; font-size: 14px; }
.toast--visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 980px) {
  .hero__grid, .grid--4, .grid--3 { grid-template-columns: 1fr 1fr; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; display: flex; gap: 6px; overflow-x: auto; }
  .sidebar__title { display: none; }
  .sidebar a { white-space: nowrap; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 22px, var(--max)); }
  .hero { padding: 54px 0; }
  .hero__grid, .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .hero__panel { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 11px; right: 11px; top: 62px; flex-direction: column; align-items: stretch; background: white; border: 1px solid var(--line); border-radius: 12px; padding: 8px; box-shadow: var(--shadow); }
  .nav[data-open] { display: flex; }
  .brand img { width: 104px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .mock-card { grid-template-columns: 1fr; }
  .mock-card__actions { justify-content: start; }
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(255,96,31,.08), transparent 28%),
    linear-gradient(145deg, #f7f8fb 0%, #eef1fb 100%);
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}
.auth-card {
  width: min(100%, 430px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow);
}
.auth-brand {
  display: inline-block;
  margin-bottom: 22px;
}
.auth-brand img {
  width: 176px;
  height: auto;
}
.auth-eyebrow {
  color: var(--accent);
  margin-bottom: 7px;
}
.auth-card h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.03em;
}
.auth-copy {
  margin: 8px 0 22px;
  color: var(--muted);
}
.auth-form {
  display: grid;
  gap: 15px;
}
.auth-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 750;
  color: #333b4d;
}
.auth-form input {
  width: 100%;
  border: 1px solid #d8dce6;
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  outline: 0;
}
.auth-form input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(23,35,95,.10);
}
.auth-error {
  padding: 10px 12px;
  border-radius: 9px;
  background: #fff0ee;
  color: var(--danger);
  font-size: 13px;
  font-weight: 650;
}
.auth-submit { width: 100%; margin-top: 3px; }
.auth-submit:disabled { opacity: .65; cursor: wait; }
.auth-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-user {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.admin-user__meta {
  text-align: right;
  line-height: 1.25;
}
.admin-user__meta strong {
  display: block;
  font-size: 13px;
}
.admin-user__meta small {
  color: var(--muted);
  font-size: 11px;
}
