:root {
  --bg: #050b12;
  --panel: rgba(9, 20, 31, .86);
  --panel-strong: #0b1824;
  --line: rgba(65, 224, 239, .19);
  --cyan: #00e7ef;
  --cyan-soft: #6af8ff;
  --pink: #f72e91;
  --text: #f4fbff;
  --muted: #89a0b0;
  --success: #3de4a2;
  --danger: #ff587f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 42% 8%, rgba(0, 231, 239, .07), transparent 33%),
    linear-gradient(135deg, #040910 0%, #07131c 48%, #050912 100%);
  font-family: Inter, system-ui, sans-serif;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .3;
  background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.ambient { position: fixed; width: 34vw; height: 34vw; border-radius: 50%; filter: blur(120px); pointer-events: none; opacity: .09; }
.ambient-a { background: var(--cyan); left: -18vw; top: 25vh; }
.ambient-b { background: var(--pink); right: -20vw; top: 8vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
header {
  width: min(1240px, calc(100% - 40px));
  height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(0,231,239,.25)); }
.brand span { display: flex; flex-direction: column; }
.brand b { font: 700 21px Rajdhani, sans-serif; letter-spacing: 1.5px; }
.brand small { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: 2.3px; }
nav { display: flex; align-items: center; gap: 20px; }
.nav-link { color: #adc0cc; font-size: 13px; font-weight: 600; transition: .2s; }
.nav-link:hover { color: var(--cyan-soft); }
.user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 11px 6px 6px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 30px; font-size: 12px; font-weight: 700; }
.user-chip img { width: 29px; height: 29px; object-fit: cover; border-radius: 50%; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; position: relative; z-index: 1; }
.hero { text-align: center; padding: 88px 20px 55px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #a6bbc9; font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.eyebrow span { width: 27px; height: 2px; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 12px var(--cyan); }
.hero h1 { margin: 20px 0 17px; font: 700 clamp(45px, 7vw, 82px)/.93 Rajdhani, sans-serif; text-transform: uppercase; letter-spacing: -1.8px; }
.hero h1 em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--cyan-soft); text-shadow: 0 0 30px rgba(0,231,239,.16); }
.hero > p { max-width: 610px; margin: 0 auto; color: var(--muted); line-height: 1.7; font-size: 15px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 31px; }
.button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 49px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .45px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: #001217; background: linear-gradient(115deg, var(--cyan), #72faff); box-shadow: 0 12px 35px rgba(0,231,239,.16); }
.button.primary:hover { box-shadow: 0 15px 40px rgba(0,231,239,.28); }
.button.ghost { color: #d3e2eb; background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.11); }
.button.ghost:hover { border-color: rgba(0,231,239,.4); }
.button.steam { color: white; background: linear-gradient(115deg, #173f62, #1b6b91); }
.setup-notice { width: fit-content; max-width: 100%; margin: 25px auto 0; padding: 12px 17px; border: 1px solid rgba(247,46,145,.25); background: rgba(247,46,145,.07); border-radius: 8px; color: #f8afd3; font-size: 12px; }
.portal-card {
  background: linear-gradient(145deg, rgba(12,27,40,.93), rgba(6,16,26,.93));
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 34px;
  box-shadow: 0 28px 90px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.025);
  position: relative;
  overflow: hidden;
}
.portal-card::before { content: ""; position: absolute; width: 260px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), var(--pink), transparent); top: 0; left: 50%; transform: translateX(-50%); }
.card-heading { display: flex; justify-content: space-between; align-items: end; }
.card-heading span, .next-action span, .approved small, .admin-head > span { color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: 2.4px; }
.card-heading h2 { margin: 7px 0 0; font: 700 29px Rajdhani, sans-serif; text-transform: uppercase; }
.card-heading strong { font: 700 35px Rajdhani, sans-serif; color: #b7c9d4; }
.progress { height: 3px; margin: 22px 0 25px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 15px var(--cyan); transition: width .4s; }
.steps { display: grid; gap: 11px; }
.step { display: grid; grid-template-columns: 47px 1fr auto; align-items: center; gap: 16px; min-height: 77px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.065); background: rgba(255,255,255,.018); border-radius: 9px; }
.step.active { border-color: rgba(0,231,239,.32); background: rgba(0,231,239,.035); }
.step.done { border-color: rgba(61,228,162,.18); }
.step.locked { opacity: .48; }
.step-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; color: #b1c3ce; font: 700 17px Rajdhani; }
.step.active .step-icon { color: var(--cyan); border-color: rgba(0,231,239,.45); box-shadow: inset 0 0 16px rgba(0,231,239,.08); }
.step.done .step-icon { color: var(--success); border-color: rgba(61,228,162,.3); }
.step h3 { margin: 0 0 5px; font-size: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 11px; }
.step-state { color: #607888; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.step.active .step-state { color: var(--cyan); }
.step.done .step-state { color: var(--success); }
.next-action, .approved { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.next-action h3, .approved h3 { margin: 5px 0 0; font: 700 20px Rajdhani; text-transform: uppercase; }
.code-form { margin-top: 22px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); }
.code-form label { display: block; margin-bottom: 9px; color: var(--cyan); font-size: 9px; font-weight: 800; letter-spacing: 2px; }
.code-form > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.code-form input { min-width: 0; height: 50px; padding: 0 18px; color: white; background: #07131d; border: 1px solid rgba(0,231,239,.25); border-radius: 8px; outline: none; text-transform: uppercase; letter-spacing: 3px; font-weight: 800; }
.code-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,231,239,.08); }
.code-form p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }
.approved > span { width: 51px; height: 51px; display: grid; place-items: center; flex: 0 0 auto; color: #001c14; background: var(--success); border-radius: 50%; font-size: 24px; font-weight: 900; box-shadow: 0 0 25px rgba(61,228,162,.2); }
.approved > div { flex: 1; }
.approved p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 17px 0 80px; }
.features article { padding: 23px; background: rgba(9,20,31,.62); border: 1px solid rgba(255,255,255,.055); border-radius: 10px; }
.features b { color: var(--pink); font: 700 13px Rajdhani; }
.features h3 { margin: 15px 0 7px; font: 700 18px Rajdhani; text-transform: uppercase; }
.features p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
footer { width: min(1120px, calc(100% - 40px)); min-height: 75px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.06); color: #526875; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; }
.message-card { max-width: 590px; margin: 100px auto; padding: 45px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 15px; }
.message-card > img { width: 84px; height: 84px; object-fit: contain; display: block; margin: 0 auto 22px; }
.message-card > span { width: 38px; height: 38px; display: grid; place-items: center; margin: 0 auto; border-radius: 50%; color: #001719; background: var(--cyan); font-weight: 900; }
.message-card.success > span { background: var(--success); }
.message-card.danger > span { color: white; background: var(--danger); }
.message-card h1 { margin: 17px 0 10px; font: 700 34px Rajdhani; text-transform: uppercase; }
.message-card p { color: var(--muted); line-height: 1.7; }
.message-card .button { margin-top: 16px; }
.admin-head { padding: 65px 0 25px; }
.admin-head h1 { margin: 7px 0; font: 700 48px Rajdhani; text-transform: uppercase; }
.admin-head p { color: var(--muted); }
.table-card { overflow-x: auto; margin-bottom: 80px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 15px 17px; color: #718897; text-align: left; font-size: 9px; letter-spacing: 1.3px; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,.07); }
td { padding: 16px 17px; border-bottom: 1px solid rgba(255,255,255,.045); color: #bed0da; }
td strong, td small { display: block; }
td small { color: #526875; margin-top: 4px; }
.status { padding: 5px 8px; border-radius: 20px; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.status.approved { color: var(--success); background: rgba(61,228,162,.09); }
.status.pending { color: #ffc85c; background: rgba(255,200,92,.09); }
.status.revoked { color: var(--danger); background: rgba(255,88,127,.09); }
.table-action { color: var(--danger); background: transparent; border: 1px solid rgba(255,88,127,.25); border-radius: 5px; padding: 6px 9px; cursor: pointer; }

@media (max-width: 700px) {
  header { height: 76px; width: min(100% - 24px, 1120px); }
  .brand img { width: 43px; height: 43px; }
  .brand b { font-size: 17px; }
  .brand small { font-size: 7px; }
  nav { gap: 10px; }
  .user-chip span, nav .nav-link:first-child { display: none; }
  main { width: min(100% - 24px, 1120px); }
  .hero { padding: 58px 0 38px; }
  .hero h1 { font-size: clamp(41px, 14vw, 62px); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .portal-card { padding: 21px 15px; }
  .step { grid-template-columns: 42px 1fr; padding: 12px; }
  .step-state { display: none; }
  .next-action, .approved { align-items: stretch; flex-direction: column; }
  .approved > span { align-self: center; }
  .code-form > div { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  footer { flex-direction: column; justify-content: center; gap: 8px; text-align: center; }
  .admin-head h1 { font-size: 37px; }
}
