:root {
  --navy: #0B1220;
  --amber: #E8A54B;
  --cream: #F7F1E8;
  --mist: #9AA6B8;
}
html, body { background: var(--navy); }
.logo-mark {
  width: 36px; height: 36px; border-radius: 12px;
  border: 1.5px solid var(--amber); display: grid; place-items: center;
  font-family: Fraunces, Georgia, serif; color: var(--cream); font-weight: 700;
}
.nav-link {
  display: block; padding: .7rem 1rem; border-radius: 12px; color: var(--mist);
}
.nav-link.active, .nav-link:hover { background: #1A2438; color: var(--cream); }
.credit-pill {
  display: flex; flex-direction: column; align-items: flex-end;
  background: #1A2438; border: 1px solid rgba(232,165,75,.35);
  border-radius: 14px; padding: .35rem .8rem; line-height: 1.1;
}
.credit-pill span { color: var(--amber); font-weight: 700; }
.credit-pill small { color: var(--mist); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.credit-pill.compact { padding: .3rem .6rem; color: var(--amber); font-weight: 700; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--amber); color: var(--navy); font-weight: 600;
  border-radius: 999px; padding: .75rem 1.2rem; border: 0;
}
.btn-primary:disabled { opacity: .45; }
.btn-ghost {
  background: transparent; color: var(--cream); border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px; padding: .55rem 1rem;
}
.card {
  background: #121A2B; border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; padding: 1.25rem; box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.stat-card {
  background: linear-gradient(180deg, #1A2438, #121A2B);
  border: 1px solid rgba(255,255,255,.06); border-radius: 20px; padding: 1.2rem;
}
.stat-card span { color: var(--mist); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.stat-card strong { display: block; font-size: 1.8rem; margin: .35rem 0; }
.stat-card small { color: var(--mist); }
.field { display: flex; flex-direction: column; gap: .4rem; font-size: .9rem; color: var(--mist); }
.field input, .field select, .field textarea {
  background: #0B1220; border: 1px solid rgba(255,255,255,.1); color: var(--cream);
  border-radius: 12px; padding: .75rem .9rem; outline: none;
}
.field input:focus, .field select:focus { border-color: var(--amber); }
.eyebrow { color: var(--amber); letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; margin-bottom: .4rem; }
.auth-card { max-width: 440px; margin: 8vh auto; }
.progress { height: 8px; background: #243049; border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--amber); width: 0; }
.badge { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 99px; }
.badge-ready, .badge-completed { background: rgba(74, 222, 128, .15); color: #86efac; }
.badge-processing, .badge-queued { background: rgba(232,165,75,.15); color: var(--amber); }
.badge-failed { background: rgba(248,113,113,.15); color: #fca5a5; }
.flash { border-radius: 14px; padding: .8rem 1rem; }
.flash-ok { background: rgba(74,222,128,.12); color: #bbf7d0; }
.flash-error { background: rgba(248,113,113,.12); color: #fecaca; }
.flash-warn { background: rgba(232,165,75,.12); color: #fde68a; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.05); }
.table th { color: var(--mist); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.mobile-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #121A2B; border-top: 1px solid rgba(255,255,255,.06);
  padding: .45rem .3rem calc(.45rem + env(safe-area-inset-bottom));
  z-index: 30;
}
.mobile-tabbar a {
  text-align: center; font-size: .7rem; color: var(--mist); padding: .45rem 0; border-radius: 12px;
}
.mobile-tabbar a.on { color: var(--amber); background: rgba(232,165,75,.08); }
.fab-tab { font-weight: 700; }
@media (min-width: 768px) {
  .mobile-tabbar { display: none; }
}
