/* ╔══════════════════════════════════════════════════════════════╗
   ║  Clip.Farm Dashboard — Apple-like Design System v2          ║
   ║  Reference: clip-farm-design-system / dashboard.css         ║
   ║  Layout: sticky top nav + single-column content             ║
   ╚══════════════════════════════════════════════════════════════╝ */

/* ═══════════════════════ 1. TOKENS ═══════════════════════ */

:root {
  /* Surfaces */
  --bg:           #fbfbfd;   /* Apple off-white */
  --bg-card:      #ffffff;
  --bg-soft:      #f5f5f7;   /* Apple soft gray */
  --bg-sidebar:   #0d111e;   /* nav background */

  /* Borders */
  --border:        #e5e5ea;
  --border-strong: #d1d1d6;

  /* Text */
  --text:         #1d1d1f;   /* Apple near-black */
  --text-muted:   #86868b;   /* Apple medium gray */
  --text-dim:     #aeaeb2;
  --text-on-dark: #f5f5f7;

  /* Status: Green */
  --green:        #30d158;
  --green-strong: #248a3d;
  --green-soft:   rgba(48,209,88,.14);
  --green-tint:   rgba(48,209,88,.05);
  --green-text:   #0e6b2c;

  /* Status: Yellow/Orange */
  --yellow:       #ff9f0a;
  --yellow-soft:  rgba(255,159,10,.16);
  --yellow-tint:  rgba(255,159,10,.05);
  --yellow-text:  #854d0e;

  /* Status: Red */
  --red:          #ff453a;
  --red-strong:   #b71d2b;
  --red-soft:     rgba(255,69,58,.14);
  --red-tint:     rgba(255,69,58,.05);
  --red-text:     #991b1b;

  /* Status: Blue */
  --blue:         #0071e3;
  --blue-soft:    rgba(0,113,227,.10);
  --blue-text:    #0062c4;

  /* Accent (TikTok purple) */
  --purple-soft:  #f3e8ff;
  --purple-text:  #6b21a8;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "SF Pro Text", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  /* Layout */
  --sidebar-w:   240px;   /* kept for legacy refs */
  --radius:      20px;
  --radius-sm:   10px;
  --radius-lg:   28px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow:    0 1px 2px rgba(0,0,0,.04), 0 1px 0 rgba(0,0,0,.02);
  --shadow-md: 0 12px 32px rgba(0,0,0,.06);
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,.35);
}

/* ═══════════════════════ 2. RESET + BASE ═══════════════════════ */

* { box-sizing: border-box; }
*::selection { background: var(--blue-soft); }
html { scroll-behavior: smooth; }
a { text-decoration: none; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease;
}

/* Page wash from global status */
body[data-overall="ok"]      { background: var(--green-tint); }
body[data-overall="warning"] { background: var(--yellow-tint); }
body[data-overall="error"]   { background: var(--red-tint); }

h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.3px; }
h3.sub-h {
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 28px 0 14px;
}

.muted  { color: var(--text-muted); }
.dim    { color: var(--text-dim); }
.center { text-align: center; }
.hidden { display: none !important; }
.num    { text-align: right; font-variant-numeric: tabular-nums; }

/* Offset for anchor links under sticky nav */
.content-section { scroll-margin-top: 80px; }

/* ═══════════════════════ 3. LAYOUT ═══════════════════════ */

body { display: block; min-height: 100vh; }

.cf-content {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ═══════════════════════ 4. TOP NAV ═══════════════════════ */

.cfn {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: rgba(13, 17, 30, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
          backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.cfn-inner {
  max-width: 1240px; margin: 0 auto;
  height: 48px;
  display: flex; align-items: center; gap: 0;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cfn-inner::-webkit-scrollbar { display: none; }

.cfn-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 18px;
  padding: 0 16px 0 0;
  flex-shrink: 0;
  cursor: default;
  margin-right: 4px;
}
.cfn-brand-name {
  font-size: 13px; font-weight: 700;
  color: white;
  letter-spacing: -.01em;
}

.cfn-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
  margin: 0 8px;
}

.cfn-link {
  display: inline-flex; align-items: center; gap: 5px;
  height: 48px; padding: 0 10px;
  color: rgba(245,245,247,.75);
  font-size: 12.5px; font-weight: 400;
  letter-spacing: -.01em;
  text-decoration: none; cursor: pointer;
  transition: color .15s;
  position: relative; white-space: nowrap;
  flex-shrink: 0;
}
.cfn-link:hover, .cfn-link.active { color: white; }
.cfn-link.active::after {
  content: "";
  position: absolute;
  left: 10px; right: 10px; bottom: 7px;
  height: 2px;
  background: white;
  border-radius: 999px;
}

.cfn-ico { font-size: 13px; line-height: 1; opacity: .9; }

.cfn-badge {
  background: #ff453a; color: white;
  padding: 0 5px; border-radius: 999px;
  font-size: 10px; font-weight: 700;
  min-width: 16px; text-align: center;
}

.cfn-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
}
.cfn-dot.dot-ok      { background: #30d158; }
.cfn-dot.dot-warning { background: #ff9f0a; }
.cfn-dot.dot-error   { background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.25); }

.cfn-spacer { flex: 1; min-width: 16px; }

/* Right side of nav */
.cfn-right {
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
}

.cfn-heartbeat {
  width: 7px; height: 7px; border-radius: 50%;
  background: #30d158;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(48,209,89,.7);
  animation: cfn-pulse 2s infinite;
}
.cfn-heartbeat.dead { background: #ff453a; animation: none; }

@keyframes cfn-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(48,209,89,.7); }
  70%  { box-shadow: 0 0 0 6px rgba(48,209,89,0); }
  100% { box-shadow: 0 0 0 0 rgba(48,209,89,0); }
}

.cfn-heartbeat-label {
  font-size: 12px; color: rgba(245,245,247,.6);
  font-weight: 400;
}

.cfn-refresh-label {
  font-size: 11.5px; color: rgba(245,245,247,.4);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cfn-btn {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(245,245,247,.85);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px; font-weight: 600;
  font-family: inherit;
  transition: background .15s;
}
.cfn-btn:hover { background: rgba(255,255,255,.18); color: white; }

.cfn-action-btn {
  background: transparent;
  border: none;
  color: rgba(245,245,247,.65);
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: color .15s, background .15s;
}
.cfn-action-btn:hover { background: rgba(255,255,255,.10); color: white; }

/* ═══════════════════════ 5. HERO BANNER ═══════════════════════ */

.cf-hero {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  margin-bottom: 28px;
  color: white;
  overflow: hidden;
  background: #1d1d1f;
  box-shadow: var(--shadow-lg);
  animation: bannerIn .35s ease-out;
}

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status gradients */
.cf-hero.h-ok      { background: radial-gradient(120% 140% at 0% 0%, #30d158 0%, #248a3d 55%, #0d111e 100%); }
.cf-hero.h-warning { background: radial-gradient(120% 140% at 0% 0%, #ffb340 0%, #c47b16 55%, #0d111e 100%); }
.cf-hero.h-error   { background: radial-gradient(120% 140% at 100% 0%, #ff453a 0%, #b71d2b 55%, #0d111e 100%); }
.cf-hero.h-loading { background: linear-gradient(135deg, #1c1c1e, #2c2c2e); }

.cf-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.15) 100%);
  pointer-events: none;
}

.cf-hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.cf-hero-eyebrow {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.65);
  margin-bottom: 10px;
}

.cf-hero-title {
  font-size: 42px; font-weight: 700;
  letter-spacing: -0.025em; line-height: 1.06;
  margin: 0 0 10px;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.cf-hero-sub {
  font-size: 16px; font-weight: 400; line-height: 1.5;
  color: rgba(255,255,255,.82);
  max-width: 540px;
  margin: 0;
}

.cf-hero-location {
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 5px 12px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-top: 10px;
  display: inline-block;
  word-break: break-all;
}

.cf-hero-stat { text-align: right; flex-shrink: 0; }
.cf-hero-stat-value {
  font-size: 52px; font-weight: 700;
  line-height: 1; letter-spacing: -0.03em;
  color: white;
}
.cf-hero-stat-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.65);
  margin-top: 6px;
}

.cf-hero.h-error .cf-hero-stat-value { animation: shake 0.6s ease-in-out 2; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ═══════════════════════ 5b. SCORE RING ═══════════════════════ */

.cf-score {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  background: none; border: 0; cursor: pointer; padding: 0;
  font-family: var(--font-sans); color: inherit;
  transition: transform .2s;
  flex-shrink: 0;
}
.cf-score:hover { transform: translateY(-2px); }
.cf-score:hover .cf-score-arrow { transform: translateX(3px); }

.cf-score-ring {
  width: 160px; height: 160px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.28));
}
.cf-score.s-ok      .cf-score-ring { background: conic-gradient(#30d158 calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.cf-score.s-warning .cf-score-ring { background: conic-gradient(#ffb340 calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.cf-score.s-error   .cf-score-ring { background: conic-gradient(#ff453a calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.cf-score.s-info    .cf-score-ring { background: conic-gradient(rgba(255,255,255,.4) calc(var(--p) * 1%), rgba(255,255,255,.10) 0); }

.cf-score-ring::before {
  content: ""; position: absolute; inset: 13px;
  border-radius: 50%;
  background: #0d111e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.cf-score-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.cf-score-num {
  font-size: 46px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  color: white;
}
.cf-score-num small { font-size: 16px; font-weight: 500; opacity: .6; margin-left: 1px; }

.cf-score-tone-label {
  margin-top: 5px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
}
.cf-score.s-ok      .cf-score-tone-label { color: #30d158; }
.cf-score.s-warning .cf-score-tone-label { color: #ffb340; }
.cf-score.s-error   .cf-score-tone-label { color: #ff453a; }
.cf-score.s-info    .cf-score-tone-label { color: rgba(255,255,255,.55); }

.cf-score-label {
  margin-top: 12px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .10em;
  color: rgba(255,255,255,.75);
  display: inline-flex; align-items: center; gap: 5px;
}
.cf-score-arrow { transition: transform .2s; display: inline-block; }

/* Score details panel */
.cf-score-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  box-shadow: var(--shadow-md);
  animation: bannerIn .25s ease-out;
}
.cf-score-detail-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 12.5px; color: var(--text);
}
.cf-score-detail-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.cf-score-detail-dot.dot-ok      { background: #30d158; }
.cf-score-detail-dot.dot-warning { background: #ffb340; }
.cf-score-detail-dot.dot-error   { background: #ff453a; box-shadow: 0 0 0 3px rgba(255,69,58,.25); }
.cf-score-detail-dot.dot-info    { background: var(--text-dim); }
.cf-score-detail-name  { font-weight: 600; flex: 1; color: var(--text); }
.cf-score-detail-msg   { font-size: 11px; color: var(--text-muted); }

/* ═══════════════════════ 6. GLANCE TILES ═══════════════════════ */

.cf-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.cf-glance-tile {
  position: relative;
  border-radius: 22px;
  padding: 22px 24px;
  min-height: 160px;
  color: white;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.cf-glance-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -12px rgba(0,0,0,.25); }

.cf-glance-tile.s-ok      { background: linear-gradient(135deg, #30d158, #248a3d); }
.cf-glance-tile.s-warning { background: linear-gradient(135deg, #ffb340, #c47b16); }
.cf-glance-tile.s-error   { background: linear-gradient(135deg, #ff453a, #b71d2b); }
.cf-glance-tile.s-info    { background: linear-gradient(135deg, #0071e3, #0040a0); }

.cf-glance-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: auto;
}
.cf-glance-emoji {
  font-size: 22px; line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.2));
}
.cf-glance-meta {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255,255,255,.85);
  text-transform: uppercase;
}
.cf-glance-pill {
  margin-left: auto;
  background: rgba(255,255,255,.22);
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  letter-spacing: .04em; text-transform: uppercase;
}
.cf-glance-value {
  font-size: 36px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-top: 8px;
}
.cf-glance-value-unit { font-size: 15px; font-weight: 500; opacity: .82; margin-left: 4px; }
.cf-glance-sub {
  font-size: 12.5px; color: rgba(255,255,255,.85);
  line-height: 1.4;
}
.cf-glance-sub strong { font-weight: 600; color: white; }

/* ═══════════════════════ 7. SECTION HEADINGS ═══════════════════════ */

.cf-section { padding: 6px 0 0; }

.cf-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 18px;
}

.cf-section-eyebrow {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .10em;
  margin-bottom: 4px;
}

.cf-section-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  margin: 0;
}

.cf-section-action {
  color: var(--blue); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  cursor: pointer; flex-shrink: 0;
}
.cf-section-action:hover { opacity: .75; }

/* ═══════════════════════ 8. KPI CARDS ═══════════════════════ */

.kpi-section { margin-bottom: 28px; }

.kpi-group-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted);
  margin: 0 0 10px 2px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.kpi-loading {
  padding: 20px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.kpi {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px;
  min-height: 148px;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.kpi { cursor: pointer; }
a.kpi::after {
  content: "→";
  position: absolute;
  top: 22px; right: 24px;
  color: var(--text-dim);
  font-size: 14px;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
a.kpi:hover::after { opacity: 1; transform: translateX(3px); color: var(--blue); }

.kpi-head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 4px;
}
.kpi-emoji { font-size: 18px; line-height: 1; }
.kpi-label {
  font-size: 11.5px; font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  flex: 1;
}
.kpi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
  margin-right: a.kpi::after ? 20px : 0;
}
a.kpi .kpi-dot { margin-right: 20px; }
.kpi-dot.dot-ok      { background: #30d158; box-shadow: 0 0 0 3px rgba(48,209,88,.15); }
.kpi-dot.dot-warning { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255,159,10,.15); }
.kpi-dot.dot-error   { background: #ff453a; box-shadow: 0 0 0 4px rgba(255,69,58,.18); }

.kpi-value {
  font-size: 36px; font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--text);
}
.kpi-value-unit {
  font-size: 16px; color: var(--text-muted);
  font-weight: 500; margin-left: 4px;
}
.kpi-sub {
  font-size: 12.5px; color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.kpi-sub strong { color: var(--text); font-weight: 600; }

.kpi-progress {
  height: 5px;
  background: var(--bg-soft);
  border-radius: 999px; overflow: hidden;
  margin-top: auto;
}
.kpi-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #30d158, #0071e3);
  transition: width .4s; border-radius: 999px;
}
.kpi-progress-bar.warn { background: linear-gradient(90deg, #ffb340, #ff9f0a); }
.kpi-progress-bar.crit { background: linear-gradient(90deg, #ff9f0a, #ff453a); }

/* ═══════════════════════ 9. OVERVIEW CARDS ═══════════════════════ */

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

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
  min-height: 152px;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--text-dim);
  opacity: 0;
}
.card.s-ok::before      { background: linear-gradient(180deg, #30d158, #0071e3); opacity: 1; }
.card.s-warning::before { background: linear-gradient(180deg, #ffb340, #ff9f0a); opacity: 1; }
.card.s-error::before   { background: linear-gradient(180deg, #ff453a, #b71d2b); opacity: 1; }
.card.s-info::before    { background: linear-gradient(180deg, #0071e3, #34aadc); opacity: 1; }

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
a.card { cursor: pointer; }
a.card::after {
  content: "→";
  position: absolute;
  top: 22px; right: 24px;
  color: var(--text-dim); font-size: 14px;
  opacity: 0;
  transition: opacity .15s, transform .15s;
}
a.card:hover::after { opacity: 1; transform: translateX(3px); color: var(--blue); }

.card-header {
  display: flex; align-items: center; gap: 10px;
}
.card-emoji { font-size: 24px; line-height: 1; }
.card-name {
  font-size: 12.5px; font-weight: 600; flex: 1;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.card-pill {
  font-size: 10.5px; font-weight: 700;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.pill-ok      { background: var(--green-soft);  color: var(--green-text); }
.pill-warning { background: var(--yellow-soft); color: var(--yellow-text); }
.pill-error   { background: var(--red-soft);    color: var(--red-text); }
.pill-info    { background: var(--blue-soft);   color: var(--blue-text); }

.card-value {
  font-size: 24px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2;
}
.card-value.muted { font-size: 18px; color: var(--text-muted); }
.card-value-unit { font-size: 14px; color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.card-sub {
  font-size: 13px; color: var(--text-muted); line-height: 1.45;
}
.card-sub strong { color: var(--text); font-weight: 600; }

.card-stat-main {
  font-size: 38px; font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.05;
  margin-top: 4px;
}
.card-stat-main-unit {
  font-size: 17px; color: var(--text-muted); font-weight: 500; margin-left: 4px;
}
.card-stat-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.card-stat-sub strong { color: var(--text); font-weight: 600; }

/* Color helpers on stat value */
.card.s-ok      .card-stat-main { color: var(--green-text); }
.card.s-warning .card-stat-main { color: var(--yellow-text); }
.card.s-error   .card-stat-main { color: var(--red-text); }

/* Pretty campaign/clip blocks inside cards */
.pretty-block { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pretty-title {
  font-size: 18px; font-weight: 700; line-height: 1.25;
  letter-spacing: -.2px;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  word-break: break-word;
}
.pretty-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pretty-pill {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em;
}
.pretty-pill.pill-date  { color: var(--text-muted); font-weight: 500; text-transform: none; }
.pretty-pill.pill-brand { color: var(--text); background: white; }
.pretty-pill.pill-index { background: var(--blue-soft); color: var(--blue-text); border-color: var(--blue-soft); font-variant-numeric: tabular-nums; }

/* Progress bars */
.progress {
  height: 5px; background: var(--bg-soft);
  border-radius: 999px; overflow: hidden;
  margin-top: 6px;
}
.progress-bar { height: 100%; background: #30d158; transition: width .4s; border-radius: 999px; }
.progress-bar.warn { background: #ff9f0a; }
.progress-bar.crit { background: #ff453a; }
.card .progress { margin-top: auto; }

/* Brand chips in campaign cards */
.brand-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.brand-chip {
  background: var(--bg-soft); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; color: var(--text);
}
.brand-chip-count { color: var(--text-muted); margin-left: 4px; }

/* ═══════════════════════ 10. BRAND BLOCKS ═══════════════════════ */

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

.brand-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  transition: transform .2s, box-shadow .2s;
  position: relative; overflow: hidden;
}
.brand-block::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--text-dim); opacity: 0;
}
.brand-block.has-queue::before { background: linear-gradient(180deg, #30d158, #0071e3); opacity: 1; }
.brand-block.error::before     { background: linear-gradient(180deg, #ff453a, #ff9f0a); opacity: 1; }
.brand-block.no-queue { opacity: .65; }
.brand-block:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.brand-block-head { display: flex; align-items: center; gap: 12px; }
.brand-block-emoji { font-size: 30px; line-height: 1; }
.brand-block-name { font-size: 18px; font-weight: 600; flex: 1; letter-spacing: -.01em; }
.brand-block-pill {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.brand-block-pill.ready { background: var(--green-soft); color: var(--green-text); }
.brand-block-pill.empty { background: var(--bg-soft); color: var(--text-muted); }

.brand-block-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.brand-block-stat { text-align: center; }
.brand-block-stat-value {
  font-size: 24px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em;
  background: linear-gradient(135deg, var(--text), #555);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-block-stat-value.green {
  background: linear-gradient(135deg, #30d158, #0071e3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-block-stat-label {
  font-size: 10.5px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  font-weight: 600; margin-top: 2px;
}

.brand-block-next-title {
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.brand-block-next { display: flex; flex-direction: column; gap: 6px; }

.brand-next-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-radius: 12px; font-size: 13px;
}
.brand-next-row.is-next {
  background: linear-gradient(135deg, rgba(48,209,88,.10), rgba(0,113,227,.08));
}
.brand-next-row .nr-pos {
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 26px;
}
.brand-next-row.is-next .nr-pos { color: var(--green-text); }
.brand-next-row .nr-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500;
}
.brand-next-row .nr-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

.brand-block-empty {
  text-align: center; padding: 14px;
  color: var(--text-muted); font-size: 13px;
  background: var(--bg-soft); border-radius: 12px;
}
.brand-block-foot {
  font-size: 11.5px; color: var(--text-muted);
  display: flex; justify-content: space-between; gap: 8px;
}

/* Mini brand cards (in sidebar / overview summary grid) */
.brands-grid .card { min-height: 150px; }
.brand-card-header  { display: flex; align-items: center; gap: 10px; }
.brand-card-emoji   { font-size: 28px; }
.brand-card-name    { font-size: 16px; font-weight: 700; }
.brand-card-stats   { display: flex; gap: 18px; margin-top: 8px; }
.brand-card-stat    { flex: 1; }
.brand-card-stat-value { font-size: 22px; font-weight: 800; }
.brand-card-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.brand-card-last    { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.brand-card-inactive { opacity: .55; }

/* ═══════════════════════ 11. ALERTS ═══════════════════════ */

.alert-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 14px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.alert-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--yellow);
}
.alert-card.alert-warning::before  { background: linear-gradient(180deg, #ffb340, #ff9f0a); }
.alert-card.alert-critical::before { background: linear-gradient(180deg, #ff453a, #b71d2b); }

.alert-icon { font-size: 38px; line-height: 1; }
.alert-body { min-width: 0; }

.alert-header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.alert-title { font-size: 20px; font-weight: 700; margin: 0; letter-spacing: -.015em; }
.alert-component-badge {
  background: var(--bg-soft); color: var(--text-muted);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
}
.alert-detail { font-size: 14.5px; color: var(--text); white-space: pre-wrap; margin-bottom: 12px; word-break: break-word; }

.alert-location {
  background: #1d1d1f; color: #f5f5f7;
  font-family: var(--font-mono); font-size: 12.5px;
  padding: 10px 14px; border-radius: 10px;
  margin-bottom: 12px; word-break: break-all;
  display: flex; align-items: center; gap: 8px;
}
.alert-location-label { color: #86868b; font-weight: 600; flex-shrink: 0; }

.alert-action {
  background: linear-gradient(135deg, rgba(0,113,227,.10), rgba(94,92,230,.08));
  padding: 12px 16px; border-radius: 12px;
  font-size: 13.5px;
}
.alert-action-label { font-weight: 700; color: var(--blue); margin-right: 6px; }

.alert-meta { margin-top: 10px; font-size: 12px; color: var(--text-muted); }
.alert-sent     { color: var(--green-text); font-weight: 600; }
.alert-not-sent { color: var(--text-muted); }

.alerts-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 64px 24px;
  background: var(--bg-card);
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius);
  text-align: center;
}
.alerts-empty-icon { font-size: 48px; margin-bottom: 12px; }
.alerts-empty-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.alerts-empty-sub { font-size: 14px; color: var(--text-muted); }

/* Page alertes dédiée — état vide */
.alerts-all-clear {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px; text-align: center;
}
.alerts-all-clear-icon  { font-size: 64px; margin-bottom: 16px; }
.alerts-all-clear-title { font-size: 28px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.alerts-all-clear-sub   { font-size: 16px; color: var(--text-muted); }

/* ═══════════════════════ 12. PIPELINE SECTION ═══════════════════════ */

.pipeline-banner {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 14px;
  box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
}
.pipeline-banner-emoji { font-size: 32px; }
.pipeline-banner-title { font-size: 17px; font-weight: 700; }
.pipeline-banner-detail { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

/* ═══════════════════════ 13. DRIVE / STORAGE ═══════════════════════ */

.drive-status {
  display: grid; grid-template-columns: auto 1fr; gap: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow); margin-bottom: 14px;
  position: relative; overflow: hidden;
}
.drive-status::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #30d158; }
.drive-status.drive-down::before { background: #ff453a; }
.drive-status-emoji { font-size: 36px; }
.drive-status-headline { font-size: 18px; font-weight: 700; }
.drive-status-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

.drive-brands-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px;
}
.drive-brand {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; font-weight: 600;
}
.drive-brand.found   { color: var(--green-text); border-color: var(--green-soft); background: var(--green-soft); }
.drive-brand.missing { color: var(--red-text);   border-color: var(--red-soft);   background: var(--red-soft); }

.storage-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px; margin-bottom: 20px;
}
.storage-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.storage-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.storage-card.s-ok::before      { background: #30d158; }
.storage-card.s-warning::before { background: #ff9f0a; }
.storage-card.s-error::before   { background: #ff453a; }

.storage-card-title { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.storage-card-emoji { font-size: 22px; }
.storage-card-figure { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.storage-card-value { font-size: 32px; font-weight: 700; letter-spacing: -.5px; }
.storage-card-unit  { font-size: 14px; color: var(--text-muted); }
.storage-card-detail { font-size: 13px; color: var(--text-muted); }
.storage-card-detail strong { color: var(--text); font-weight: 600; }

/* ═══════════════════════ 14. QUEUE ═══════════════════════ */

.queue-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 20px;
}
.queue-summary-tile {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.queue-summary-tile .qst-value { font-size: 28px; font-weight: 700; line-height: 1; }
.queue-summary-tile .qst-label { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; font-weight: 600; }

.queue-brand-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.queue-brand-block.empty { opacity: .55; }
.queue-brand-header {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 0 0 12px;
}
.queue-brand-name { font-size: 17px; font-weight: 700; }

.queue-count-big {
  font-size: 38px; font-weight: 700; line-height: 1;
  letter-spacing: -1px; margin-left: auto;
}
.queue-count-label { font-size: 13px; color: var(--text-muted); }
.queue-count-low    { color: var(--green-text); }
.queue-count-medium { color: var(--yellow-text); }
.queue-count-high   { color: var(--red-text); }

.queue-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.queue-row-simple {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.queue-row-simple:last-child { border-bottom: none; }
.queue-row-simple:nth-child(odd) { background: var(--bg-soft); }
.queue-row-simple .q-pos {
  font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--text-muted); font-size: 12px; min-width: 28px; flex-shrink: 0;
}
.queue-row-simple .q-pos.next {
  color: var(--blue); background: var(--blue-soft);
  padding: 2px 8px; border-radius: 999px; text-align: center;
}
.queue-row-simple .q-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.queue-row-simple .q-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.queue-empty { padding: 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* ═══════════════════════ 15. VPS ═══════════════════════ */

.vps-placeholder {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--text-muted);
}
.vps-placeholder-emoji { font-size: 44px; margin-bottom: 10px; }
.vps-placeholder-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.vps-placeholder-sub { font-size: 13.5px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

/* ═══════════════════════ 16. SYSTEM ═══════════════════════ */

.consumer-bar {
  display: inline-block; height: 4px;
  border-radius: 999px; background: var(--blue);
  vertical-align: middle; margin-right: 6px;
}

/* ═══════════════════════ 17. CAMPAIGNS ═══════════════════════ */

.campaigns-controls {
  display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
#campaign-search {
  flex: 1; min-width: 200px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; background: var(--bg-card); color: var(--text);
  font-family: var(--font-sans);
}
#campaign-search:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
#campaign-brand-filter {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px; background: var(--bg-card); color: var(--text);
  cursor: pointer; font-family: var(--font-sans);
}

/* ═══════════════════════ 18. LOGS ═══════════════════════ */

.logs-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; font-size: 13px;
}
.toggle { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }

.logs-stream {
  background: #1d1d1f; color: #d2d2d7;
  padding: 18px 22px;
  border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65;
  max-height: 520px; overflow-y: auto;
  box-shadow: var(--shadow);
}
.log-line { display: flex; gap: 14px; padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,.04); word-break: break-all; }
.log-line:last-child { border-bottom: none; }
.log-camp { color: #86868b; flex-shrink: 0; min-width: 180px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.log-text { flex: 1; color: #f5f5f7; }
.log-line.level-error   .log-text { color: #ff6961; }
.log-line.level-warning .log-text { color: #ffd60a; }

/* ═══════════════════════ 19. TABLES ═══════════════════════ */

.table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th {
  background: var(--bg-soft);
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.data-table th.num { text-align: right; }
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  max-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.data-table td.expand { max-width: none; white-space: normal; }
.data-table .campaign-cell {
  display: flex; align-items: center; gap: 10px; overflow: hidden;
}
.data-table .campaign-cell .pretty-title { font-size: 14px; font-weight: 600; -webkit-line-clamp: 1; flex: 1; min-width: 0; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-soft); }
.data-table .brand-cell { font-weight: 600; font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ═══════════════════════ 20. PAGE ROUTER ═══════════════════════ */

.page { display: none; }
.page.page-active { display: block; }

.page-header {
  display: flex; align-items: center; gap: 16px;
  padding: 4px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.page-header h2 { margin: 0; }

.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow);
  transition: all .15s; white-space: nowrap; flex-shrink: 0;
}
.back-btn:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ═══════════════════════ 21. BRANDS CLIPS SUMMARY ═══════════════════════ */

.bcr-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.bcr-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bcr-card-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.bcr-emoji    { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.bcr-name     { font-weight: 600; flex: 1; font-size: 13px; color: var(--text); }
.bcr-count-num { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; line-height: 1; }
.bcr-count-unit { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.bcr-cnt-red    { color: var(--red-text); }
.bcr-cnt-orange { color: var(--yellow-text); }
.bcr-cnt-green  { color: var(--green-text); }

.bcr-list-wrap {
  max-height: 200px;
  overflow-y: auto;
}

.bcr-list-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.bcr-list-row:last-child { border-bottom: none; }
.bcr-list-row:nth-child(odd) { background: var(--bg-soft); }

.bcr-row-pos   { font-size: 10px; font-weight: 700; color: var(--text-dim); min-width: 18px; flex-shrink: 0; text-align: right; }
.bcr-row-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bcr-row-size  { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; font-variant-numeric: tabular-nums; }

.bcr-empty-row {
  padding: 12px 14px; text-align: center;
  color: var(--text-muted); font-size: 12px;
}
.bcr-more-row {
  padding: 6px 14px; text-align: center;
  color: var(--text-muted); font-size: 11px;
  background: var(--bg-soft); font-style: italic;
}
.bcr-unavailable {
  padding: 14px 18px; color: var(--text-muted); font-size: 13px;
  background: var(--bg-card); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ═══════════════════════ 22. TOAST ═══════════════════════ */

.toast {
  position: fixed; bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1d1d1f; color: white;
  padding: 12px 22px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  font-size: 13.5px; font-weight: 600;
  opacity: 0; transition: opacity .25s, transform .25s;
  pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #30d158; color: #0e6b2c; }
.toast.error   { background: #ff453a; color: white; }

/* ═══════════════════════ 23. FOOTER ═══════════════════════ */

.cf-footer {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}

/* Legacy compat */
.content-footer {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 12px;
}

/* ═══════════════════════ 24. RESPONSIVE ═══════════════════════ */

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .cf-glance { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .cf-content { padding: 24px 16px 48px; }
  .cf-hero { padding: 28px 28px; }
  .cf-hero-title { font-size: 30px; }
  .cf-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .cf-hero-stat { display: none; }
}

@media (max-width: 700px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .cf-glance { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .brands-grid-large { grid-template-columns: 1fr; }
}
