:root {
  color-scheme: dark;
  --bg: #0b0b0b;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: #2b2b2b;
  --text: #f4f0e8;
  --muted: #8f8f8f;
  --orange: #ff5a00;
  --green: #a4e66e;
  --danger: #ff7a6f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 86% -10%, rgba(255, 90, 0, .18), transparent 34rem),
    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: auto, 48px 48px, 48px 48px, auto;
}

button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }

.topbar {
  width: min(1180px, calc(100% - 40px));
  height: 88px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: .105em;
  font-size: 14px;
}
.brand b { color: var(--orange); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #111;
  background: var(--orange);
  font-size: 12px;
  letter-spacing: -.02em;
}

.ghost, .refresh {
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.ghost:hover, .refresh:hover { color: var(--text); }

main {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 64px 0 96px;
}

.login-shell {
  min-height: calc(100vh - 248px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-copy h1, .dashboard-head h1 {
  margin: 0;
  font-size: clamp(52px, 7.4vw, 96px);
  line-height: .92;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.login-copy > p:last-child {
  max-width: 550px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.login-card {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  background: rgba(20, 20, 20, .92);
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 4px;
  margin: -24px 0 28px;
  background: #0d0d0d;
}
.auth-tabs button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.auth-tabs button.active { color: var(--text); background: #222; }
.login-card label:not(:first-child) { margin-top: 16px; }
.text-button, .back-button {
  width: 100%;
  margin-top: 18px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.text-button:hover, .back-button:hover { color: var(--orange); }
.back-button { width: auto; margin: 0 0 30px; padding: 0; }
.login-card h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.04em; }
.form-intro { margin: 0 0 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.status-dot {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.status-dot span, .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(164,230,110,.09);
}
label {
  display: block;
  margin-bottom: 10px;
  color: #b8b8b8;
  font-size: 13px;
}
input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #343434;
  outline: 0;
  background: #0d0d0d;
  color: var(--text);
  transition: .18s;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,90,0,.12); }
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 56px;
  margin-top: 14px;
  padding: 0 18px;
  border: 0;
  background: var(--orange);
  color: #111;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}
.primary:hover { filter: brightness(1.08); }
.primary:disabled, .primary.disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.hint {
  margin: 18px 0 0;
  color: #707070;
  font-size: 11px;
  line-height: 1.55;
}
.form-error { min-height: 18px; margin: 12px 0 0; color: var(--danger); font-size: 12px; }

.dashboard { padding-top: 12px; }
.dashboard-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 48px;
}
.dashboard-head h1 { font-size: clamp(44px, 7vw, 88px); }
.subline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.plan-badge {
  min-width: 170px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.plan-badge span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .15em; }
.plan-badge strong { display: block; margin-top: 7px; color: var(--orange); font-size: 24px; }

.activation-panel {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(30px, 7vw, 90px);
  padding: clamp(28px, 5vw, 58px);
  border: 1px solid var(--line);
  background: var(--panel);
}
.activation-panel h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.activation-panel > div > p:not(.eyebrow) {
  max-width: 600px;
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.7;
}
.activation-panel .primary { max-width: 340px; }
.activation-panel form {
  align-self: end;
  padding: 26px;
  border: 1px solid var(--line);
  background: #0d0d0d;
}
.activation-panel .secondary { margin-top: 12px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.metric {
  min-height: 235px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  flex-direction: column;
}
.metric.featured { background: var(--orange); color: #111; }
.metric-label { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.featured .metric-label, .featured .metric-foot { color: rgba(17,17,17,.62); }
.metric strong { margin: auto 0; font-size: 30px; }
.metric strong b { font-size: clamp(54px, 6vw, 76px); letter-spacing: -.06em; }
.metric strong small { font-size: 15px; }
.metric-foot { color: #727272; font-size: 12px; line-height: 1.5; }
.progress { height: 4px; margin: auto 0 13px; background: #303030; overflow: hidden; }
.progress span { display: block; width: 0; height: 100%; background: var(--orange); transition: width .35s ease; }

.actions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.action-card {
  min-height: 330px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(17,17,17,.94);
  display: flex;
  flex-direction: column;
}
.action-card .number { color: var(--orange); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.action-card h2 { margin: 56px 0 12px; font-size: 27px; letter-spacing: -.035em; }
.action-card p { margin: 0 0 24px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.action-card .primary { margin-top: auto; }
.action-card small { display: block; margin-top: 9px; color: #666; font-size: 10px; }
.app-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.app-buttons a, .secondary {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #383838;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}
.app-buttons a:hover, .secondary:hover { border-color: var(--orange); }
.secondary { width: 100%; margin-top: auto; }

.bottom-row {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-top: 25px;
  color: #696969;
  font-size: 11px;
}
.support { color: var(--muted); text-decoration: none; }
.support:hover { color: var(--orange); }
.bottom-row > span { margin-left: auto; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 16px);
  padding: 12px 18px;
  background: var(--text);
  color: #111;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  font-size: 12px;
  font-weight: 800;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.expired .live-dot { background: var(--danger); box-shadow: 0 0 0 5px rgba(255,122,111,.09); }

@media (max-width: 850px) {
  .login-shell { grid-template-columns: 1fr; gap: 46px; padding-top: 24px; }
  .metrics, .actions-grid { grid-template-columns: 1fr; }
  .metric { min-height: 200px; }
  .action-card { min-height: 280px; }
  .activation-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .topbar, main { width: min(100% - 28px, 1180px); }
  .topbar { height: 72px; }
  main { padding: 36px 0 70px; }
  .login-copy h1 { font-size: 48px; }
  .login-copy > p:last-child { font-size: 15px; }
  .dashboard-head { align-items: stretch; flex-direction: column; }
  .plan-badge { width: 100%; }
  .bottom-row { align-items: flex-start; flex-wrap: wrap; }
  .bottom-row > span { width: 100%; margin-left: 0; }
}
