/* ============================================================
   Preferred Credit Repair — Portal styles
   Tokens taken from docs/DESIGN_SYSTEM.md
   ============================================================ */

:root {
  --bg:           #0A0A0A;
  --surface:      #111111;
  --surface-soft: #1A1A1A;
  --line:         #262626;
  --line-soft:    #1F1F1F;

  --ink:      #FFFFFF;
  --ink-soft: #EFEFEF;
  --muted:    #9A9A9A;
  --dim:      #6B6B6B;

  --gold:        #FFB800;
  --gold-bright: #FFCE3D;
  --gold-deep:   #E5A500;

  --green:      #3FD17A;
  --green-soft: rgba(63,209,122,0.12);
  --green-deep: #2BB566;
  --red:        #FF5E47;
  --red-soft:   rgba(255,94,71,0.12);

  --radius:    12px;
  --radius-lg: 16px;

  --font-display: "Archivo Black", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

/* ---------- Logo wordmark ---------- */
.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-mark .dot { color: var(--gold); }

/* ---------- Eyebrow pill ---------- */
.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255,184,0,0.12);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,184,0,0.3);
}

/* ---------- Primary button ---------- */
.btn-primary {
  display: inline-block;
  width: 100%;
  background: var(--gold);
  color: #000;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 16px 24px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(255,184,0,0.15), 0 10px 24px rgba(255,184,0,0.30);
  transition: transform 0.06s ease, background 0.15s ease;
}
.btn-primary:hover    { background: var(--gold-bright); }
.btn-primary:active   { transform: translateY(1px); }
.btn-primary:disabled { background: var(--dim); cursor: not-allowed; box-shadow: none; }

/* ---------- Login layout ---------- */
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(255,184,0,0.08), transparent 70%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.login-card header { text-align: center; margin-bottom: 24px; }
.login-card h1 {
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.login-card .sub {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 600;
}
.field { margin-bottom: 16px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255,184,0,0.18);
}

.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  display: none;
}
.alert.error { background: var(--red-soft); color: var(--red); display: block; }
.alert.success { background: var(--green-soft); color: var(--green); display: block; }

.fine-print {
  margin-top: 18px;
  color: var(--dim);
  font-size: 12px;
  text-align: center;
}

/* ---------- Dashboard layout ---------- */
.app-shell { min-height: 100vh; display: grid; grid-template-rows: auto 1fr; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .right { display: flex; align-items: center; gap: 16px; }
.topbar .user-name { color: var(--muted); font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--gold); }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  width: 100%;
}

.greeting {
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-transform: uppercase;
}
.greeting .accent { color: var(--gold); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card .card-label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card .card-value {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 4px;
}
.card .card-value.accent { color: var(--gold); }
.card .card-meta { color: var(--muted); font-size: 13px; }

.skeleton {
  background: linear-gradient(90deg, var(--surface-soft) 0%, var(--line) 50%, var(--surface-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
  color: transparent;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.paused-banner {
  background: var(--red-soft);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  font-size: 14px;
}
.paused-banner strong { color: var(--ink); }
