/* Brand colors — extracted from official print banner (CMYK 80x160cm) */
:root {
  --fire-red:       #ED3237;
  --fire-orange:    #F6903D;
  --fire-amber:     #FFBB66;
  --brand-gradient: linear-gradient(135deg, #ED3237, #F6903D);
  --shadow-fire:    0 4px 24px rgba(237,50,55,0.3);
  --glow:           0 0 28px rgba(237,50,55,0.35);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a0f;
  background-image:
    radial-gradient(ellipse at 60% -10%, rgba(237,50,55,.08) 0%, transparent 55%),
    radial-gradient(ellipse at 0% 80%, rgba(246,144,61,.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23ffffff' fill-opacity='0.022'/%3E%3C/svg%3E");
}

/* ── SIDEBAR NAV ─────────────────────────────────────────── */
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.18s ease-out;
  border-left: 2px solid transparent;
  margin-left: -2px;
}
.nav-link:hover {
  background: rgba(255,255,255,.04);
  color: #e5e7eb;
  border-left-color: rgba(246,144,61,.3);
  padding-left: 16px;
}
.nav-link.active {
  background: linear-gradient(90deg, rgba(246,144,61,.14), rgba(246,144,61,.04));
  color: #F8A45A;
  border-left-color: #F6903D;
  font-weight: 600;
}
.nav-link.active svg { color: #F6903D; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: linear-gradient(145deg, #1c1c28, #161620);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
}

.card-hover {
  transition: border-color 0.22s ease-out, box-shadow 0.22s ease-out, transform 0.18s ease-out;
  cursor: pointer;
}
.card-hover:hover {
  border-color: rgba(246,144,61,.35);
  box-shadow: 0 0 0 1px rgba(246,144,61,.15), 0 8px 32px rgba(246,144,61,.1), 0 2px 8px rgba(0,0,0,.4);
  transform: translateY(-1px);
}

.stat-card {
  background: linear-gradient(145deg, #1c1c28, #161620);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04);
  transition: all 0.22s ease-out;
}
.stat-card:hover {
  border-color: rgba(246,144,61,.3);
  box-shadow: 0 0 0 1px rgba(246,144,61,.12), 0 8px 32px rgba(246,144,61,.08);
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #F6903D, #ED3237);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(246,144,61,.25), inset 0 1px 0 rgba(255,255,255,.15);
  letter-spacing: .01em;
}
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease-out;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #F8A45A, #F6903D);
  box-shadow: 0 4px 20px rgba(246,144,61,.4), inset 0 1px 0 rgba(255,255,255,.2);
  transform: translateY(-1px);
}
.btn-primary:hover::after { left: 150%; }
.btn-primary:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(246,144,61,.3); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(255,255,255,.04);
  color: #9ca3af;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  color: #f1f5f9;
  border-color: rgba(255,255,255,.15);
  box-shadow: 0 4px 16px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08);
}
.btn-secondary:active { transform: scale(.98); }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: rgba(239,68,68,.08);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.18);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
}
.btn-danger:hover {
  background: rgba(239,68,68,.18);
  border-color: rgba(239,68,68,.35);
  box-shadow: 0 0 12px rgba(239,68,68,.15);
}

/* ── FORMS ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  padding: 10px 13px;
  color: #f1f5f9;
  font-size: 14px;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
  font-family: 'Inter', sans-serif;
}
.form-input::placeholder { color: #374151; }
.form-input:hover { border-color: rgba(255,255,255,.14); }
.form-input:focus {
  border-color: rgba(246,144,61,.55);
  box-shadow: 0 0 0 3px rgba(246,144,61,.1), 0 0 16px rgba(246,144,61,.07);
  background: rgba(246,144,61,.03);
}
.form-input option { background: #1a1a24; }

.form-label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── TABLES ──────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  background: rgba(0,0,0,.25);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #4b5563;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
tbody tr {
  border-bottom: 1px solid rgba(255,255,255,.03);
  transition: background 0.15s;
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(246,144,61,.04); }
tbody td { padding: 13px 16px; font-size: 13.5px; color: #d1d5db; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
}
.badge-green  { background: rgba(34,197,94,.1);   color: #4ade80; border: 1px solid rgba(34,197,94,.2); }
.badge-yellow { background: rgba(234,179,8,.1);   color: #fbbf24; border: 1px solid rgba(234,179,8,.2); }
.badge-red    { background: rgba(239,68,68,.1);   color: #f87171; border: 1px solid rgba(239,68,68,.2); }
.badge-blue   { background: rgba(59,130,246,.1);  color: #60a5fa; border: 1px solid rgba(59,130,246,.2); }
.badge-orange { background: rgba(246,144,61,.1);  color: #F8A45A; border: 1px solid rgba(246,144,61,.2); }
.badge-gray   { background: rgba(107,114,128,.1); color: #9ca3af; border: 1px solid rgba(107,114,128,.15); }
.badge-purple { background: rgba(168,85,247,.1);  color: #c084fc; border: 1px solid rgba(168,85,247,.2); }

/* ── FLASH ───────────────────────────────────────────────── */
.flash-success {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #4ade80;
  background: rgba(34,197,94,.08);
  border: 1px solid rgba(34,197,94,.2);
  padding: 7px 14px; border-radius: 9px;
  box-shadow: 0 0 16px rgba(34,197,94,.08);
}
.flash-error {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: #f87171;
  background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2);
  padding: 7px 14px; border-radius: 9px;
  box-shadow: 0 0 16px rgba(239,68,68,.08);
}

/* ── PAGE HEADER ─────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.page-title {
  font-size: 22px;
  font-weight: 800;
  color: #f1f5f9;
  letter-spacing: -.03em;
}
.page-subtitle { font-size: 13px; color: #4b5563; margin-top: 3px; }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar {
  height: 5px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F6903D, #F8A45A, #fbbf24);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 8px rgba(246,144,61,.5);
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #F6903D, #ED3237);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: #F8A45A; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-bg {
  background:
    radial-gradient(ellipse at 60% 0%, rgba(246,144,61,.1) 0%, transparent 60%),
    radial-gradient(ellipse at 10% 90%, rgba(246,144,61,.06) 0%, transparent 50%),
    #0a0a0f;
}

/* ── PUBLIC NAV ──────────────────────────────────────────── */
.pub-link {
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.pub-link:hover { color: #F6903D; }
.pub-link.active { color: #F6903D; font-weight: 600; }

.btn-fire {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, #F6903D, #c2410c);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  box-shadow: 0 2px 10px rgba(246,144,61,.3);
}
.btn-fire:hover { opacity: .9; transform: translateY(-1px); }

/* ── UTILS ───────────────────────────────────────────────── */
.font-inter { font-family: 'Inter', sans-serif; }
