/* ── VARIABLES ── */
:root {
  --bg: #04060a;
  --bg-card: #0c0e12;
  --bg-card-hover: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(167,139,250,0.25);
  --accent: #a78bfa;
  --accent-green: #22c55e;
  --accent-amber: #f59e0b;
  --accent-pink: #f472b6;
  --accent-blue: #818cf8;
  --text: #e0e0e0;
  --text-muted: rgba(255,255,255,0.3);
  --text-dim: rgba(255,255,255,0.12);
  --shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.06) 30%, rgba(180,120,255,0.2) 50%, rgba(255,255,255,0.06) 70%, transparent 100%);
  --shadow-card: 0 4px 20px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);
  --shadow-hover: 0 8px 40px rgba(0,0,0,0.6), 0 0 40px rgba(150,100,255,0.08), inset 0 1px 0 rgba(255,255,255,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --sb-width: 210px;
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── LOGIN SCREEN ── */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 50%, rgba(120,80,200,0.06) 0%, transparent 70%);
}
.login-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  width: 340px;
  box-shadow: var(--shadow-card);
}
.login-card h1 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.login-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 2rem; }
.login-error { font-size: 12px; color: #ef4444; margin-top: 8px; display: none; }

/* ── APP LAYOUT ── */
#app { display: none; height: 100vh; overflow: hidden; }
.layout { display: flex; height: 100vh; }

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sb-width); min-width: var(--sb-width);
  background: rgba(4,6,10,0.98);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: width 0.25s, min-width 0.25s;
  overflow: hidden;
}
.sidebar.collapsed { width: 56px; min-width: 56px; }
.sb-header {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; min-height: 64px;
}
.sb-logo { font-size: 14px; font-weight: 600; white-space: nowrap; transition: opacity 0.2s; }
.sidebar.collapsed .sb-logo { opacity: 0; width: 0; }
.sb-toggle { background: none; border: 1px solid rgba(255,255,255,0.08); border-radius: 6px; color: var(--text-muted); cursor: pointer; padding: 5px 7px; font-size: 13px; flex-shrink: 0; transition: color 0.15s; }
.sb-toggle:hover { color: var(--text); }
.sb-nav { flex: 1; padding: 10px 8px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: var(--radius-sm);
  cursor: pointer; margin-bottom: 2px;
  border-left: 2px solid transparent;
  white-space: nowrap;
  transition: background 0.15s;
}
.nav-item:hover { background: rgba(255,255,255,0.04); }
.nav-item.active {
  background: rgba(167,139,250,0.08);
  border-left-color: var(--accent);
}
.nav-icon { font-size: 15px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-label { font-size: 13px; color: var(--text-muted); transition: opacity 0.2s, color 0.15s; }
.nav-item.active .nav-label { color: var(--accent); }
.sidebar.collapsed .nav-label { opacity: 0; width: 0; overflow: hidden; }
.sb-footer { padding: 12px 8px; border-top: 1px solid var(--border); }

/* ── MAIN CONTENT ── */
.main { flex: 1; overflow-y: auto; padding: 28px; background: var(--bg); }
.page { display: none; }
.page.active { display: block; }
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 10px; }
.page-title { font-size: 19px; font-weight: 600; }

/* ── CARDS ── */
.card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(167,139,250,0.03) 100%);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-title { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }

/* ── STAT CARDS ── */
.stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px) scale(1.01);
}
.stat-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text); }
.stat-delta { font-size: 10px; margin-top: 4px; }
.delta-up { color: var(--accent-green); }
.delta-down { color: #ef4444; }
.delta-flat { color: var(--text-dim); }

/* ── SHIMMER LINE ── */
.shimmer { height: 1px; background: var(--shimmer); margin: 14px 0; }

/* ── GRIDS ── */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }

/* ── INPUTS ── */
input, textarea, select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s;
  font-family: inherit;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
select option { background: #1a1a2a; }

/* ── BUTTONS ── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; cursor: pointer; transition: var(--transition); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #9175e8; box-shadow: 0 0 20px rgba(167,139,250,0.3); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-danger { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.btn-danger:hover { background: rgba(239,68,68,0.25); }

/* ── TABS ── */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 0; }
.tab { padding: 8px 16px; font-size: 13px; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ── BADGES ── */
.badge { font-size: 10px; padding: 2px 8px; border-radius: 10px; display: inline-block; }
.badge-own { background: rgba(34,197,94,0.12); color: var(--accent-green); border: 1px solid rgba(34,197,94,0.2); }
.badge-comp { background: rgba(129,140,248,0.12); color: var(--accent-blue); border: 1px solid rgba(129,140,248,0.2); }
.badge-ref { background: rgba(167,139,250,0.12); color: var(--accent); border: 1px solid rgba(167,139,250,0.2); }
.badge-scheduled { background: rgba(245,158,11,0.12); color: var(--accent-amber); }
.badge-published { background: rgba(34,197,94,0.12); color: var(--accent-green); }
.badge-error { background: rgba(239,68,68,0.12); color: #ef4444; }
.badge-running { background: rgba(129,140,248,0.12); color: var(--accent-blue); }

/* ── TAGS VEILLE ── */
.tag { font-size: 9px; padding: 2px 8px; border-radius: 10px; margin-bottom: 8px; display: inline-block; }
.tag-reel { background: rgba(139,92,246,0.15); color: #a78bfa; }
.tag-hook { background: rgba(245,158,11,0.12); color: var(--accent-amber); }
.tag-compte { background: rgba(34,197,94,0.12); color: var(--accent-green); }
.tag-idee { background: rgba(244,114,182,0.12); color: var(--accent-pink); }

/* ── MODAL ── */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); align-items: center; justify-content: center; z-index: 200; }
.modal-overlay.show { display: flex; }
.modal { background: #080b12; border: 1px solid var(--border); border-radius: 16px; padding: 24px; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--shadow-hover); }
.modal h3 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.modal-btns { display: flex; gap: 8px; margin-top: 16px; }

/* ── TOAST ── */
.toast { position: fixed; bottom: 24px; right: 24px; padding: 12px 18px; border-radius: var(--radius-sm); font-size: 13px; background: #161b24; border: 1px solid var(--border); box-shadow: var(--shadow-card); opacity: 0; transform: translateY(8px); transition: all 0.3s; z-index: 999; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-color: rgba(34,197,94,0.3); color: var(--accent-green); }
.toast-error { border-color: rgba(239,68,68,0.3); color: #ef4444; }
.toast-info { color: var(--text); }

/* ── LOADER ── */
.loader { width: 28px; height: 28px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 40px; text-align: center; color: var(--text-dim); font-size: 13px; }

/* ── VEILLE GRID ── */
.veille-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.veille-card { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; position: relative; transition: var(--transition); }
.veille-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.veille-title { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.veille-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ── REEL CARDS (Concurrents) ── */
.reel-card { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 12px; align-items: flex-start; transition: var(--transition); margin-bottom: 8px; }
.reel-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.reel-thumb { width: 44px; min-width: 44px; aspect-ratio: 9/16; background: rgba(255,255,255,0.05); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.reel-account { font-size: 10px; color: var(--accent-blue); margin-bottom: 3px; }
.reel-views { font-size: 18px; font-weight: 700; margin-bottom: 3px; }
.reel-hook { font-size: 11px; color: var(--text-muted); line-height: 1.4; margin-bottom: 6px; }
.steal-btn { font-size: 11px; padding: 5px 10px; background: transparent; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: var(--transition); }
.steal-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── AGENT CARDS (new big design) ── */
.agents-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.agent-card-big {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.agent-card-big:hover { border-color: rgba(var(--agent-rgb),0.35); box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(var(--agent-rgb),0.08); transform: translateY(-3px); }
.agent-banner {
  position: relative;
  height: 130px;
  background: linear-gradient(135deg, rgba(var(--agent-rgb),0.12) 0%, rgba(var(--agent-rgb),0.04) 60%, transparent 100%);
  border-bottom: 1px solid rgba(var(--agent-rgb),0.15);
  display: flex;
  align-items: flex-end;
  padding: 16px 20px;
  gap: 16px;
  overflow: hidden;
}
.agent-banner-glow {
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(var(--agent-rgb),0.15) 0%, transparent 70%);
  pointer-events: none;
}
.agent-avatar-wrap {
  position: absolute;
  top: 10px; right: 16px;
  width: 90px; height: 90px;
  opacity: 0.9;
  filter: drop-shadow(0 0 12px rgba(var(--agent-rgb),0.4));
}
.agent-avatar-wrap svg { width: 100%; height: 100%; }
.agent-identity { flex: 1; }
.agent-role-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--agent-color);
  background: rgba(var(--agent-rgb),0.1);
  border: 1px solid rgba(var(--agent-rgb),0.2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 6px;
}
.agent-title { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2; }
.agent-body { padding: 18px 20px; }
.agent-body-desc { font-size: 12px; color: var(--text-muted); line-height: 1.7; margin-bottom: 14px; }
.agent-textarea {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 12px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  transition: border-color 0.15s;
  margin-bottom: 12px;
}
.agent-textarea:focus { border-color: var(--agent-color); }
.agent-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  background: rgba(var(--agent-rgb),0.15);
  border: 1px solid rgba(var(--agent-rgb),0.3);
  border-radius: var(--radius-sm);
  color: var(--agent-color);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.agent-run-btn:hover { background: rgba(var(--agent-rgb),0.25); box-shadow: 0 0 20px rgba(var(--agent-rgb),0.2); }
.agent-run-icon { font-size: 10px; }
.agent-result {
  margin-top: 14px;
  padding: 14px;
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(var(--agent-rgb),0.15);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  display: none;
  max-height: 320px;
  overflow-y: auto;
}
.agent-result-text { white-space: pre-wrap; }
.agent-result strong { color: var(--agent-color); }

/* ── AGENT CARDS (legacy compat) ── */
.agent-card { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; transition: var(--transition); }
.agent-card:hover { border-color: var(--border-hover); }
.agent-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.agent-name { font-size: 15px; font-weight: 600; }
.agent-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.6; }

/* ── KPI OVERVIEW ── */
.kpi-summary-banner {
  background: linear-gradient(135deg, rgba(167,139,250,0.08) 0%, rgba(167,139,250,0.02) 100%);
  border: 1px solid rgba(167,139,250,0.15);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.kpi-summary-left { min-width: 140px; }
.kpi-summary-count { font-size: 18px; font-weight: 700; color: var(--text); }
.kpi-summary-label { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }
.kpi-summary-stats { display: flex; gap: 0; flex: 1; justify-content: flex-end; }
.kpi-sum-stat { text-align: center; padding: 0 24px; }
.kpi-sum-val { font-size: 20px; font-weight: 700; color: var(--text); }
.kpi-sum-key { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }
.kpi-sum-divider { width: 1px; background: var(--border); align-self: stretch; }

.account-stat-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 10px;
  transition: var(--transition);
}
.account-stat-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); }
.account-stat-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.account-stat-identity { display: flex; align-items: center; gap: 12px; }
.account-avatar-big { width: 38px; height: 38px; border-radius: 50%; background: rgba(167,139,250,0.15); border: 1px solid rgba(167,139,250,0.2); display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.account-username-big { font-size: 15px; font-weight: 600; color: var(--text); }
.account-sync-time { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.account-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.account-tile { background: rgba(0,0,0,0.2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.tile-label { font-size: 9px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.tile-value { font-size: 20px; font-weight: 700; color: var(--text); }
.tile-delta { font-size: 11px; margin-top: 4px; }

/* ── DRIVE GRID ── */
.drive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.drive-file { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; transition: var(--transition); }
.drive-file:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.drive-thumb { aspect-ratio: 9/16; background: rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center; font-size: 24px; position: relative; overflow: hidden; }
.drive-thumb video { width: 100%; height: 100%; object-fit: cover; }
.drive-info { padding: 8px; }
.drive-name { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── GEELARK DEVICE CARD ── */
.device-card { background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 8px; display: flex; align-items: center; gap: 14px; transition: var(--transition); }
.device-card:hover { border-color: var(--border-hover); }
.device-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot-active { background: var(--accent-green); box-shadow: 0 0 8px rgba(34,197,94,0.5); }
.dot-paused { background: var(--accent-amber); }
.dot-error { background: #ef4444; }

/* ── TABLE ── */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 0; border-bottom: 1px solid var(--border); font-weight: 500; }
.table td { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.04); color: var(--text-muted); }
.table tr:last-child td { border-bottom: none; }

/* ── PROGRESS BAR ── */
.progress-bg { background: rgba(167,139,250,0.1); border-radius: 4px; height: 6px; margin-top: 4px; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--accent); transition: width 0.5s ease; }

/* ── PARAM ROW ── */
.param-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04); gap: 16px; }
.param-row:last-child { border-bottom: none; }
.param-label { font-size: 14px; color: var(--text); }
.param-sub { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* ── PERMISSION GRID ── */
.perm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.perm-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.perm-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .veille-grid { grid-template-columns: 1fr; }
  .agents-grid { grid-template-columns: 1fr; }
  .main { padding: 16px; }
}

/* ===================== ANALYTICS ===================== */
#analytics-drawer {
  transition: transform 0.25s ease;
}

#analytics-drawer-overlay {
  backdrop-filter: blur(2px);
}

.period-btn-active {
  background: var(--accent) !important;
  color: #fff !important;
}

/* ── Stratégie ──────────────────────────────────────────── */
.strategy-report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
}

.strategy-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

.md-render p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 8px;
}

.md-render ul,
.md-render ol {
  padding-left: 18px;
  margin: 6px 0 10px;
}

.md-render li {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 4px;
}

.md-render strong {
  color: var(--text);
  font-weight: 600;
}

.md-render em {
  color: var(--text-muted);
  font-style: italic;
}
