* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #08080a;
  --header: #1b1b1d;
  --panel: #000;
  --sidebar: #0d0d0f;
  --cyan: #29c5ff;
  --cyan-hover: #7bdcff;
  --orange: #f5900a;
  --text: #fff;
  --text-dim: #8b8b96;
  --text-dim2: #9a9aa4;
  --border: #2a2a30;
  --border2: #232329;
  --row-hover: #111116;
  --divider: #17171c;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-hover); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
[hidden] { display: none !important; }

/* ---- auth screen ---- */
#authScreen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--sidebar);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 32px 28px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
}
.auth-logo span {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--cyan);
}
.auth-logo span b { color: var(--text); font-weight: 700; }
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.auth-field input {
  width: 100%;
  height: 42px;
  border-radius: 8px;
  background: #0d0d0f;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 12px;
  font-size: 14px;
}
.auth-field input:focus { outline: none; border-color: var(--cyan); }
.auth-submit {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 0;
  background: var(--orange);
  color: #1a0f00;
  font-weight: 700;
  font-size: 14px;
  margin-top: 6px;
}
.auth-submit:hover { background: #ff9f1f; }
.auth-error {
  font-size: 13px;
  color: #ff8a80;
  margin-top: 10px;
  min-height: 16px;
}

/* ---- app shell ---- */
#appShell { min-height: 100vh; }
.header {
  height: 78px;
  background: var(--header);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 26px;
}
.header .logo { display: flex; align-items: center; gap: 9px; flex: none; }
.header .logo span { font-weight: 700; font-size: 22px; letter-spacing: .01em; color: var(--cyan); }
.header .logo span b { color: var(--text); }
.header nav {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 20px;
}
.header nav .navitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim2);
  font-size: 10px;
}
.header nav .navitem.active { color: var(--text); }
.header nav .navitem svg { display: block; }

.main {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}
.sidebar {
  width: 320px;
  flex: none;
  background: var(--panel);
  border-radius: 10px;
  box-shadow: 0 0 0 1px var(--border2);
  padding: 24px 20px;
}
.sidebar .heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 12px;
}
.sidebar .heading .title { font-weight: 600; font-size: 14px; }
.sidebar .heading .count { margin-left: auto; font-size: 11.5px; color: var(--text-dim); }
.step-row {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 9px 8px;
  border-radius: 9px;
  cursor: default;
}
.step-row:hover { background: var(--row-hover); }
.step-icon { width: 20px; flex: none; display: flex; justify-content: center; padding-top: 2px; }
.step-body { min-width: 0; flex: 1; }
.step-title-row { display: flex; gap: 8px; align-items: baseline; }
.step-num { font-size: 11.5px; color: var(--text-dim); flex: none; }
.step-title { font-size: 14px; color: #e8e8ee; line-height: 1.3; }
.step-marker { font-size: 11.5px; color: var(--text-dim); margin-top: 4px; }
.sidebar .divider { height: 1px; background: var(--divider); margin: 16px 0; }

.content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.resume-banner {
  background: #0e1a2a;
  border: 1px solid #1d3a55;
  border-radius: 11px;
  padding: 13px 16px;
}
.resume-banner .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 3px; }
.resume-banner .body { font-size: 13.5px; color: #d8d8de; }

.step-panel { background: var(--panel); border-radius: 12px; box-shadow: 0 0 0 1px var(--border2); padding: 28px 30px; }
.step-panel .kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.step-panel h1 { font-size: 28px; font-weight: 600; margin-bottom: 14px; }
.step-panel .outcome { font-size: 14.5px; color: #cfcfd6; line-height: 1.55; margin-bottom: 22px; max-width: 640px; }
.step-panel .status-line { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }
.cta-btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
}
.cta-btn.primary { background: var(--orange); color: #1a0f00; }
.cta-btn.primary:hover { background: #ff9f1f; }
.cta-btn.disabled { background: #2a2a30; color: #6c6c76; cursor: not-allowed; }
.referral-box {
  margin-top: 8px;
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  max-width: 560px;
}
.referral-box .label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.referral-box .link { font-size: 13.5px; color: var(--cyan); word-break: break-all; }

.completed-banner {
  background: #0e2a17;
  border: 1px solid #1d5535;
  border-radius: 11px;
  padding: 16px 18px;
  font-size: 14px;
  color: #a8f0c0;
}

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--header);
  border-top: 1px solid var(--border2);
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
}
.mobile-nav .navitem { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--text-dim2); font-size: 9px; }
.mobile-nav .navitem.active { color: var(--text); }

@media (max-width: 900px) {
  .header nav { display: none; }
  .main { flex-direction: column; padding: 14px; padding-bottom: 80px; gap: 16px; }
  .sidebar { width: 100%; }
  .mobile-nav { display: flex; }
  .step-panel h1 { font-size: 22px; }
}
