:root {
  --bg: #070a0e;
  --surface: #0d1218;
  --surface-2: #111820;
  --surface-3: #151e27;
  --line: #222d38;
  --line-bright: #344352;
  --text: #f1f4f5;
  --muted: #84909b;
  --muted-2: #aab3bb;
  --accent: #d6ff35;
  --accent-deep: #a9d400;
  --danger: #ff5d5d;
  --success: #8cdc46;
  --display: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  --body: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--bg); }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
  font: 700 20px var(--display);
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--accent);
}
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.large { width: 54px; height: 54px; margin: 0 auto 18px; }

.eyebrow, .section-kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font: 600 12px var(--display);
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow > span { width: 28px; height: 1px; background: var(--accent); }

.login-page {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 30%, rgba(214,255,53,.055), transparent 30%),
    linear-gradient(115deg, #090d12, #06080b 70%);
}

.login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image: repeating-linear-gradient(125deg, transparent 0 28px, rgba(255,255,255,.04) 29px 30px);
  mask-image: linear-gradient(90deg, #000, transparent 75%);
  pointer-events: none;
}

.ambient { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .08; }
.ambient-one { width: 340px; height: 340px; background: var(--accent); left: -120px; top: 20%; }
.ambient-two { width: 360px; height: 360px; background: #328cff; right: -180px; bottom: -140px; }

.login-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 480px);
  align-items: center;
  gap: clamp(60px, 9vw, 150px);
  width: min(1180px, calc(100% - 48px));
  min-height: calc(100vh - 66px);
  margin: 0 auto;
}

.login-copy .brand { position: absolute; top: 38px; }
.login-copy h1 {
  max-width: 670px;
  margin: 20px 0 20px;
  font: 700 clamp(54px, 6.2vw, 88px)/.91 var(--display);
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.hero-text { max-width: 580px; color: var(--muted-2); font-size: 17px; line-height: 1.75; }
.trust-row { display: flex; gap: 44px; margin-top: 46px; }
.trust-row div { display: flex; flex-direction: column; gap: 5px; }
.trust-row strong { font: 700 22px var(--display); letter-spacing: .06em; }
.trust-row span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }

.login-card {
  padding: 42px;
  border: 1px solid var(--line);
  background: rgba(14,19,25,.91);
  box-shadow: 0 28px 80px rgba(0,0,0,.45), inset 0 1px rgba(255,255,255,.025);
  backdrop-filter: blur(18px);
}
.status-chip, .connection-status, .sync-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: .1em;
  font: 600 10px var(--body);
}
.status-chip span, .connection-status span, .sync-label i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 12px rgba(140,220,70,.55);
}
.login-card h2 { margin: 38px 0 10px; font: 700 38px var(--display); text-transform: uppercase; }
.login-card > p { margin: 0 0 28px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.steam-button, .primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 0;
  background: var(--accent);
  color: #090d0e;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font: 700 14px var(--display);
  transition: transform .15s ease, background .15s ease;
}
.steam-button:hover, .primary-button:hover { background: #e0ff67; transform: translateY(-1px); }
.steam-button svg { width: 23px; height: 23px; }
.login-footnote, .secure-note { margin-top: 18px; color: var(--muted); text-align: center; font-size: 10px; letter-spacing: .035em; }
.lock-icon, .secure-note span { margin-right: 6px; color: var(--accent); font-size: 8px; }
.site-footer { position: relative; z-index: 1; height: 66px; color: #59636c; text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.site-footer span { padding: 0 7px; color: var(--accent); }

.notice { padding: 13px 15px; margin: 0 0 18px; border-left: 3px solid; font-size: 13px; line-height: 1.5; }
.notice-error { border-color: var(--danger); background: rgba(255,93,93,.08); color: #ffb3b3; }
.notice-success { border-color: var(--success); background: rgba(140,220,70,.08); color: #c8f3a4; }

.topbar {
  display: flex;
  height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1280px)/2));
  border-bottom: 1px solid var(--line);
  background: rgba(7,10,14,.88);
  backdrop-filter: blur(16px);
}
.topbar-actions, .account-pill { display: flex; align-items: center; }
.topbar-actions { gap: 16px; }
.language-switch form { display: flex; gap: 2px; }
.language-button { padding: 5px 6px; border: 0; background: transparent; color: #65717c; cursor: pointer; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.language-button:hover, .language-button.active { color: var(--accent); }
.topbar-link { padding: 7px 9px; border: 1px solid rgba(214,255,53,.25); color: var(--accent); text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font: 600 10px var(--display); }
.topbar-link:hover { border-color: var(--accent); background: rgba(214,255,53,.06); }
.account-pill { gap: 10px; padding-right: 18px; border-right: 1px solid var(--line); }
.account-avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #526327; background: #1d2512; color: var(--accent); font: 700 16px var(--display); }
.account-pill > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.account-pill strong { font-size: 12px; font-weight: 600; }
.account-pill small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted-2); cursor: pointer; }
.icon-button:hover { color: var(--accent); }
.icon-button svg { width: 20px; height: 20px; }

.dashboard-shell { width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 64px 0 80px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.page-heading h1 { margin: 12px 0 7px; font: 700 clamp(38px, 4vw, 52px) var(--display); text-transform: uppercase; letter-spacing: -.015em; }
.page-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.connection-status { padding: 10px 13px; border: 1px solid var(--line); background: rgba(13,18,24,.7); }
.dashboard-notice { margin-bottom: 22px; }

.dashboard-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: stretch; }
.panel { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(17,24,32,.96), rgba(11,16,21,.96)); box-shadow: inset 0 1px rgba(255,255,255,.018); }
.identity-panel, .activation-panel { min-height: 390px; padding: 30px; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.panel-heading h2 { margin: 7px 0 0; font: 600 25px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.verified-badge { padding: 6px 9px; border: 1px solid rgba(140,220,70,.3); color: #aee57b; background: rgba(140,220,70,.06); text-transform: uppercase; letter-spacing: .09em; font-size: 9px; }
.panel-icon { width: 31px; height: 31px; color: var(--accent); }
.panel-description { max-width: 530px; margin: 25px 0 25px; color: var(--muted); font-size: 12px; line-height: 1.7; }

.details-list { margin: 24px 0 28px; }
.details-list > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.details-list dt { color: var(--muted); font-size: 11px; }
.details-list dd { margin: 0; color: var(--muted-2); font-size: 12px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; letter-spacing: .025em; }
label { display: block; margin-bottom: 8px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 600; }
input[type="text"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-bright);
  outline: none;
  background: #090e13;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus { border-color: #788d2e; box-shadow: 0 0 0 3px rgba(214,255,53,.06); }
.input-action { display: grid; grid-template-columns: 1fr auto; }
.input-action input { border-right: 0; }
.secondary-button { min-width: 78px; border: 1px solid var(--line-bright); background: var(--surface-3); color: var(--text); cursor: pointer; text-transform: uppercase; letter-spacing: .08em; font: 600 11px var(--display); }
.secondary-button:hover { border-color: var(--accent); color: var(--accent); }
.name-form small { display: block; margin-top: 8px; color: #65717c; font-size: 9px; }
.game-ban { margin-top: 18px; padding: 11px 13px; border: 1px solid rgba(255,93,93,.3); background: rgba(255,93,93,.07); color: var(--danger); text-transform: uppercase; letter-spacing: .08em; font: 600 11px var(--display); }
.game-ban span { display: inline-grid; width: 17px; height: 17px; place-items: center; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; }
.key-suspension { margin-top: 12px; padding: 12px 13px; border: 1px solid rgba(255,93,93,.3); background: rgba(255,93,93,.07); }
.key-suspension-title { color: var(--danger); text-transform: uppercase; letter-spacing: .08em; font: 600 11px var(--display); }
.key-suspension-title span { display: inline-grid; width: 17px; height: 17px; place-items: center; margin-right: 8px; border: 1px solid currentColor; border-radius: 50%; }
.key-suspension p { margin: 9px 0 0 25px; color: #e4b4b4; font-size: 11px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

.key-input { margin-bottom: 14px; color: var(--accent) !important; font-size: 14px; text-transform: uppercase; }
.key-input::placeholder { color: #53606b; }
.primary-button span { font-size: 18px; line-height: 0; }
.activation-panel .secure-note { margin-top: 17px; }

.stats-panel { grid-column: 1 / -1; padding: 30px; min-height: 255px; }
.stats-heading { align-items: center; padding-bottom: 23px; border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 20px; background: var(--line); border: 1px solid var(--line); }
.stat-card { position: relative; min-height: 144px; padding: 22px; background: #0d1319; overflow: hidden; }
.stat-card.accent::after { content: ""; position: absolute; right: -34px; bottom: -52px; width: 120px; height: 120px; border: 20px solid rgba(214,255,53,.035); border-radius: 50%; }
.stat-card > span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font: 600 9px var(--body); }
.stat-card strong { display: block; margin: 13px 0 5px; font: 700 38px var(--display); }
.stat-card strong .stat-text { font-size: 23px; }
.stat-card.accent strong { color: var(--accent); }
.stat-card small { color: #5d6872; font-size: 9px; }
.empty-state { display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.empty-state.compact { min-height: 145px; }
.empty-state h3 { margin: 14px 0 6px; font: 600 19px var(--display); text-transform: uppercase; }
.empty-state p { margin: 0; color: var(--muted); font-size: 11px; }
.empty-radar { position: relative; width: 48px; height: 48px; border: 1px solid #38432f; border-radius: 50%; }
.empty-radar::before, .empty-radar::after { content: ""; position: absolute; background: #38432f; }
.empty-radar::before { width: 1px; height: 100%; left: 50%; }
.empty-radar::after { width: 100%; height: 1px; top: 50%; left: 0; }
.empty-radar span { position: absolute; width: 5px; height: 5px; top: 11px; right: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

.dashboard-footer { display: flex; justify-content: space-between; width: min(1280px, calc(100% - 56px)); margin: 0 auto; padding: 20px 0 30px; border-top: 1px solid var(--line); color: #4e5861; text-transform: uppercase; letter-spacing: .08em; font-size: 8px; }

.error-page { display: grid; place-items: center; }
.error-card { width: min(480px, calc(100% - 40px)); padding: 52px 42px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.error-card h1 { margin: 10px 0; font: 700 38px var(--display); text-transform: uppercase; }
.error-card p { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.inline-button { width: auto; display: inline-flex; padding: 0 24px; }


@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; gap: 30px; padding: 110px 0 60px; }
  .login-copy .brand { top: 30px; }
  .login-copy h1 { font-size: clamp(50px, 12vw, 76px); }
  .trust-row { margin-top: 28px; }
  .login-card { width: min(100%, 560px); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .stats-panel { grid-column: auto; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .login-shell { width: min(100% - 30px, 560px); }
  .login-copy h1 { font-size: 48px; }
  .hero-text { font-size: 14px; }
  .trust-row { gap: 20px; justify-content: space-between; }
  .login-card { padding: 28px 22px; }
  .topbar { height: 66px; padding: 0 16px; }
  .topbar .brand > span:last-child, .account-pill > span:last-child { display: none; }
  .account-pill { padding-right: 12px; }
  .dashboard-shell { width: calc(100% - 28px); padding: 42px 0 56px; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading h1 { font-size: 36px; }
  .identity-panel, .activation-panel, .stats-panel { padding: 22px; }
  .details-list > div { align-items: start; flex-direction: column; gap: 7px; }
  .details-list dd { word-break: break-all; }
  .stat-grid { grid-template-columns: 1fr; }
  .dashboard-footer { width: calc(100% - 28px); }
  .dashboard-footer span:last-child { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-link { font-size: 8px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
