/* ── Variables ──────────────────────────────────────── */
:root {
  --bg:          #111115;
  --surface:     #1c1c22;
  --surface2:    #26262e;
  --surface3:    #2e2e38;
  --border:      #333340;
  --border2:     #44445a;
  --accent:      #e11d48;
  --accent2:     #f43f5e;
  --accent-dim:  rgba(225,29,72,.15);
  --green:       #22c55e;
  --green-dim:   rgba(34,197,94,.15);
  --yellow:      #eab308;
  --yellow-dim:  rgba(234,179,8,.15);
  --orange:      #f97316;
  --blue:        #3b82f6;
  --blue-dim:    rgba(59,130,246,.15);
  --text:        #f0f0f4;
  --text2:       #c4c4d0;
  --muted:       #7878a0;
  --danger:      #dc2626;
  --tap:         48px;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 8px 32px rgba(0,0,0,.6);
  --shadow-sm:   0 2px 12px rgba(0,0,0,.4);
  --glow-accent: 0 0 24px rgba(225,29,72,.3);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
}
a { color: var(--accent2); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; font: inherit; }
input, select, textarea {
  font: inherit;
  background: var(--surface2);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
select option { background: var(--surface2); }

/* ── Utilities ──────────────────────────────────────── */
.hidden { display: none !important; }
.text-muted   { color: var(--muted); }
.text-danger  { color: var(--danger); }
.text-green   { color: var(--green); }
.text-accent  { color: var(--accent2); }
.text-yellow  { color: var(--yellow); }
.text-blue    { color: var(--blue); }
.fw-bold      { font-weight: 700; }
.small        { font-size: .85em; }
.mt-1  { margin-top: 8px; }
.mt-2  { margin-top: 16px; }
.mt-3  { margin-top: 24px; }
.flex  { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.w-full { width: 100%; }

/* ── Offline banner ─────────────────────────────────── */
.offline-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-weight: 700;
  font-size: .9em;
  letter-spacing: .01em;
}

/* ── App header ─────────────────────────────────────── */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.app-header h1 {
  font-size: 1.05em;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-header h1::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow-accent);
}
.header-right { display: flex; align-items: center; gap: 8px; }
.ws-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--muted);
  transition: background .3s;
}
.ws-dot.connected { background: var(--green); box-shadow: 0 0 8px var(--green); }

/* ── Main content ───────────────────────────────────── */
.main-content { padding: 16px; max-width: 1200px; margin: 0 auto; }
@media (min-width: 768px) { .main-content { padding: 24px 28px; } }

/* ── Cards ──────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card-header {
  font-weight: 700;
  font-size: 1em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .8em;
}

/* ── Stats grid ─────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(6, 1fr); } }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  transition: border-color .2s, transform .15s;
}
.stat-card:hover { border-color: var(--border2); transform: translateY(-1px); }
.stat-val {
  font-size: 2em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 4px;
}
.stat-label {
  font-size: .7em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1em;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); opacity: .9; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(225,29,72,.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(225,29,72,.5); }

.btn-success {
  background: linear-gradient(135deg, #16a34a, var(--green));
  color: #fff;
  box-shadow: 0 4px 12px rgba(34,197,94,.25);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); }
.btn-danger  { background: linear-gradient(135deg, #b91c1c, var(--danger)); color: #fff; }
.btn-ghost   { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-sm  { min-height: 34px; padding: 0 12px; font-size: .83em; border-radius: 8px; }
.btn-lg  { min-height: 64px; padding: 0 28px; font-size: 1.2em; font-weight: 700; }
.btn-full { width: 100%; }

/* ── Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge-libre     { background: var(--surface3); color: var(--muted); }
.badge-notifie   { background: var(--blue-dim); color: #93c5fd; border: 1px solid rgba(59,130,246,.3); }
.badge-accepte   { background: var(--green-dim); color: #86efac; border: 1px solid rgba(34,197,94,.3); }
.badge-en_cours  { background: var(--yellow-dim); color: #fcd34d; border: 1px solid rgba(234,179,8,.3); }
.badge-termine   { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,197,94,.3); }
.badge-annule    { background: rgba(220,38,38,.15); color: #fca5a5; }
.badge-ok        { background: var(--green-dim); color: var(--green); }
.badge-manque    { background: var(--yellow-dim); color: #fcd34d; }
.badge-renfort   { background: rgba(220,38,38,.2); color: #fca5a5; }
.badge-urgent    { background: var(--danger); color: #fff; animation: pulse 1s infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .6; }
}

/* ── Tabs ───────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: .85em;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.tab-btn:hover  { color: var(--text2); background: var(--surface2); }
.tab-btn.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(225,29,72,.35);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Progress bar ───────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 999px;
  transition: width .4s ease;
}

/* ── Status dot ─────────────────────────────────────── */
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.status-dot.online  { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.offline { background: var(--muted); }
.status-dot.busy    { background: var(--yellow); }

/* ── List items ─────────────────────────────────────── */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: border-color .15s;
}
.list-item:hover { border-color: var(--border2); }
.list-item-info { flex: 1; min-width: 0; }
.list-item-info .title { font-weight: 600; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item-info .sub   { font-size: .78em; color: var(--muted); margin-top: 2px; }

/* ── Zone color indicators ──────────────────────────── */
.zone-dot {
  width: 13px; height: 13px;
  border-radius: 3px;
  flex-shrink: 0;
}
.zone-rouge    { background: #dc2626; }
.zone-bleu     { background: #3b82f6; }
.zone-vert     { background: #22c55e; }
.zone-jaune    { background: #eab308; }
.zone-violet   { background: #a855f7; }
.zone-orange   { background: #f97316; }
.zone-rose     { background: #ec4899; }
.zone-blanc    { background: #e5e7eb; }

/* ── Affectation layout (chef) ──────────────────────── */
.affectation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 640px) { .affectation-grid { grid-template-columns: 1fr; } }
.affectation-col-title {
  font-weight: 700;
  font-size: .75em;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ── Motard mission screen ──────────────────────────── */
.motard-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top, rgba(127,0,25,.25) 0%, var(--bg) 60%);
}
.motard-header {
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(28,28,34,.95);
  backdrop-filter: blur(8px);
}
.motard-header .role-tag {
  font-size: .72em;
  background: var(--accent-dim);
  color: var(--accent2);
  border: 1px solid rgba(225,29,72,.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.motard-body { flex: 1; padding: 20px 16px; }
.waiting-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  gap: 20px;
}
.waiting-screen .pulse-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  box-shadow: var(--glow-accent);
  animation: ring-pulse 2s infinite;
}
@keyframes ring-pulse {
  0%   { transform: scale(.95); opacity: 1; }
  70%  { transform: scale(1.1); opacity: .25; }
  100% { transform: scale(.95); opacity: 1; }
}
.mission-card {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--glow-accent), var(--shadow-sm);
}
.mission-rue  { font-size: 2.1em; font-weight: 800; line-height: 1.2; margin-bottom: 4px; }
.mission-nums { font-size: 1.1em; color: var(--muted); margin-bottom: 14px; }
.mission-etat {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding: 10px 14px;
  border-radius: var(--radius-sm); font-size: .9em;
}
.etat-normal    { background: var(--green-dim);  border: 1px solid rgba(34,197,94,.25);  color: var(--green); }
.etat-attention { background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); color: var(--orange); }
.etat-difficile { background: rgba(220,38,38,.12);  border: 1px solid rgba(220,38,38,.25);  color: #f87171; }
.mission-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-terminer {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 1.15em;
  font-weight: 800;
  letter-spacing: .02em;
  min-height: 60px;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(34,197,94,.3);
}
.motard-bottombar {
  padding: 14px 16px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  background: var(--surface);
}
.btn-urgence {
  background: linear-gradient(135deg, #b91c1c, var(--danger));
  color: #fff; font-weight: 800;
  min-height: var(--tap); border-radius: 10px; flex: 1;
  box-shadow: 0 4px 12px rgba(220,38,38,.3);
}
.btn-ravito {
  background: var(--surface2); color: var(--text);
  min-height: var(--tap); border-radius: 10px; flex: 1;
  font-weight: 600; border: 1.5px solid var(--border2);
}

/* ── Modal ──────────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75);
  display: flex; align-items: flex-end;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 24px; width: 100%;
  max-width: 480px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.modal-box h2 { font-size: 1.2em; font-weight: 800; margin-bottom: 10px; }
.modal-box p  { color: var(--muted); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ── Map ─────────────────────────────────────────────── */
#map, .leaflet-map { height: 420px; border-radius: var(--radius); border: 1px solid var(--border); }
@media (min-height: 800px) { #map, .leaflet-map { height: 540px; } }

/* ── Messages ───────────────────────────────────────── */
.msg-list { display: flex; flex-direction: column; gap: 8px; }
.msg-item {
  background: var(--surface2);
  border-radius: 10px; padding: 12px 14px;
  border: 1px solid var(--border);
}
.msg-item.urgent    { border-left: 3px solid var(--danger); }
.msg-item.important { border-left: 3px solid var(--yellow); }
.msg-meta { font-size: .75em; color: var(--muted); margin-top: 6px; }

/* ── Alert banner ───────────────────────────────────── */
.alerte-active {
  background: rgba(127,0,0,.3);
  border: 2px solid var(--danger);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(220,38,38,.2);
}
.alerte-active .alerte-icon  { font-size: 1.4em; flex-shrink: 0; }
.alerte-active .alerte-info  { flex: 1; }
.alerte-active .alerte-titre { font-weight: 700; }
.alerte-active .alerte-detail { font-size: .85em; color: #fca5a5; margin-top: 2px; }

/* ── Ravito status ──────────────────────────────────── */
.ravito-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--surface2);
  border-radius: 10px; margin-bottom: 8px;
  border: 1px solid var(--border);
}
.ravito-status-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; }
.ravito-ok      { background: var(--green); box-shadow: 0 0 8px rgba(34,197,94,.4); }
.ravito-manque  { background: var(--yellow); box-shadow: 0 0 8px rgba(234,179,8,.5); }
.ravito-renfort { background: var(--danger); box-shadow: 0 0 10px rgba(220,38,38,.6); animation: pulse 1s infinite; }
.ravito-ferme   { background: var(--muted); }

/* ── Form ───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-size: .82em; font-weight: 600;
  margin-bottom: 6px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── Login screen ───────────────────────────────────── */
.login-screen {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(127,0,25,.35) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(80,0,20,.25) 0%, transparent 50%),
    var(--bg);
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow), 0 0 60px rgba(225,29,72,.08);
}
.login-logo {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 6px;
}
.login-title {
  text-align: center;
  font-size: 1.3em;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 4px;
}
.login-subtitle {
  text-align: center;
  font-size: .85em;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ── Toast ──────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; right: 16px; z-index: 9000;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 320px; width: calc(100% - 32px);
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 10px;
  padding: 12px 16px; font-size: .9em;
  box-shadow: var(--shadow);
  animation: slide-in .25s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--blue); }
@keyframes slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Spinner / Loading ──────────────────────────────── */
.spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--surface3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { text-align: center; color: var(--muted); padding: 40px; font-size: .9em; }

/* ── Admin dashboard ─────────────────────────────────── */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.village-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.village-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
  transform: translateY(-2px);
}
.village-card .vc-nom { font-weight: 700; font-size: 1.05em; margin-bottom: 4px; }
.village-card .vc-cp  { font-size: .8em; color: var(--muted); margin-bottom: 12px; }
.village-card .vc-prog { margin: 8px 0; }

/* ── Onboarding empty state ─────────────────────────── */
.onboarding-cta {
  background: var(--surface);
  border: 2px dashed var(--border2);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  margin: 8px 0 24px;
}
.onboarding-cta .oc-icon {
  font-size: 3.5em;
  margin-bottom: 16px;
  display: block;
}
.onboarding-cta h2 {
  font-size: 1.4em;
  font-weight: 800;
  margin-bottom: 10px;
}
.onboarding-cta p {
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.onboarding-steps {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.onboarding-step {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: .85em;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text2);
}
.onboarding-step .step-num {
  background: var(--accent-dim);
  color: var(--accent2);
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: .9em;
  flex-shrink: 0;
}

/* ── Motards table ───────────────────────────────────── */
.motards-table { width: 100%; border-collapse: collapse; }
.motards-table th {
  text-align: left; padding: 10px 12px;
  font-size: .75em; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
}
.motards-table td { padding: 12px 12px; border-bottom: 1px solid var(--border); font-size: .9em; }
.motards-table tr:last-child td { border-bottom: none; }
.motards-table tr:hover td { background: var(--surface2); }

/* ── Empty state ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 48px 16px;
  font-size: .9em;
  line-height: 1.7;
}

/* ── Setup back-office ───────────────────────────────── */
.setup-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  min-height: calc(100dvh - 56px);
}
@media (max-width: 768px) { .setup-sidebar { grid-template-columns: 1fr; } }
.setup-nav { padding: 12px 0; }
.setup-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer; color: var(--muted);
  font-weight: 600; font-size: .9em;
  transition: background .15s, color .15s;
}
.setup-nav-item:hover { background: var(--surface2); color: var(--text2); }
.setup-nav-item.active {
  background: var(--accent-dim);
  color: var(--accent2);
  border: 1px solid rgba(225,29,72,.2);
}
.setup-content { padding: 16px 0; }

/* ── Responsive ─────────────────────────────────────── */
@media (min-width: 768px) {
  .main-content { padding: 24px 28px; }
  .stats-grid   { grid-template-columns: repeat(6, 1fr); }
}
