/* =====================================================
   MYCYBERSECURITY — Design System Institutionnel
   Thème : Blanc / Gris clair / Bleu marine professionnel
   ===================================================== */

/* ── Variables ───────────────────────────────────── */
:root {
  /* Fonds */
  --color-bg:        #f4f6fa;
  --color-bg-2:      #ffffff;
  --color-bg-card:   #ffffff;
  --color-bg-card2:  #f8fafc;

  /* Bordures */
  --color-border:       rgba(15, 40, 90, 0.10);
  --color-border-hover: rgba(15, 40, 90, 0.25);

  /* Couleur principale — Bleu marine */
  --color-primary:       #1a4b9c;
  --color-primary-dark:  #0f2f63;
  --color-primary-light: #2563eb;
  --color-primary-glow:  rgba(26, 75, 156, 0.10);

  /* Secondaire — Indigo */
  --color-secondary:      #4f46e5;
  --color-secondary-glow: rgba(79, 70, 229, 0.10);

  /* Accent — Vert institutionnel */
  --color-accent:      #059669;
  --color-accent-glow: rgba(5, 150, 105, 0.10);

  /* États */
  --color-danger:      #dc2626;
  --color-danger-glow: rgba(220, 38, 38, 0.10);
  --color-warning:     #d97706;
  --color-success:     #059669;

  /* Texte */
  --color-text:       #0f172a;
  --color-text-muted: #475569;
  --color-text-dim:   #94a3b8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a4b9c 0%, #2563eb 100%);
  --gradient-accent:  linear-gradient(135deg, #059669 0%, #0891b2 100%);
  --gradient-dark:    linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  --gradient-card:    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

  /* Ombres */
  --shadow-card:       0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(15,40,90,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.10), 0 8px 32px rgba(15,40,90,0.10);
  --shadow-glow:       0 0 20px rgba(26,75,156,0.12);

  /* Rayons */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Typo */
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Transitions */
  --transition:      0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --sidebar-width:  260px;
  --topbar-height:  60px;
}

/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Scrollbar ────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Typography ───────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--color-text); }
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-accent-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-muted   { color: var(--color-text-muted); }
.text-dim     { color: var(--color-text-dim); }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-danger  { color: var(--color-danger); }
.text-warning { color: var(--color-warning); }
.text-success { color: var(--color-success); }

/* ── Layout Utilities ─────────────────────────────── */
.container      { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.flex           { display: flex; }
.flex-col       { flex-direction: column; }
.items-center   { align-items: center; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid  { display: grid; }
.hidden    { display: none !important; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,75,156,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,75,156,0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover {
  background: var(--color-primary-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(15,23,42,0.05);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: rgba(15,23,42,0.08);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

.btn-danger {
  background: var(--color-danger);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}
.btn-danger:hover { background: #b91c1c; transform: translateY(-1px); }

.btn-success {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5,150,105,0.2);
}
.btn-success:hover { background: #047857; transform: translateY(-1px); }

.btn-sm  { padding: 6px 14px; font-size: 0.82rem; border-radius: var(--radius-sm); }
.btn-lg  { padding: 14px 32px; font-size: 1rem;   border-radius: var(--radius-lg); }
.btn-icon{ padding: 9px; aspect-ratio: 1; border-radius: var(--radius-sm); }

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-card-hover);
}
.card-glow { box-shadow: var(--shadow-card), var(--shadow-glow); }

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-primary   { background: rgba(26,75,156,0.10);  color: var(--color-primary);   border: 1px solid rgba(26,75,156,0.20); }
.badge-success   { background: rgba(5,150,105,0.10);  color: var(--color-accent);    border: 1px solid rgba(5,150,105,0.20); }
.badge-danger    { background: rgba(220,38,38,0.10);  color: var(--color-danger);    border: 1px solid rgba(220,38,38,0.20); }
.badge-warning   { background: rgba(217,119,6,0.10);  color: var(--color-warning);   border: 1px solid rgba(217,119,6,0.20); }
.badge-secondary { background: rgba(79,70,229,0.10);  color: var(--color-secondary); border: 1px solid rgba(79,70,229,0.20); }

/* ── Forms ────────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-label  { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.form-input {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,75,156,0.10);
}
.form-input::placeholder { color: #b0bec5; }

/* ── Progress Bars ────────────────────────────────── */
.progress-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

/* ── Metric Cards ─────────────────────────────────── */
.metric-card {
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
  box-shadow: var(--shadow-card);
}
.metric-card:hover { border-color: var(--color-border-hover); box-shadow: var(--shadow-card-hover); }
.metric-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.metric-icon-primary   { background: rgba(26,75,156,0.10); color: var(--color-primary); }
.metric-icon-accent    { background: rgba(5,150,105,0.10);  color: var(--color-accent); }
.metric-icon-secondary { background: rgba(79,70,229,0.10);  color: var(--color-secondary); }
.metric-icon-danger    { background: rgba(220,38,38,0.10);  color: var(--color-danger); }
.metric-icon-warning   { background: rgba(217,119,6,0.10);  color: var(--color-warning); }
.metric-value  { font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--color-text); }
.metric-label  { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 4px; }
.metric-trend  { font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.metric-trend.up   { color: var(--color-accent); }
.metric-trend.down { color: var(--color-danger); }

/* ── Tables ───────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background: #fff; }
table          { width: 100%; border-collapse: collapse; }
thead          { background: #f8fafc; }
th {
  padding: 12px 18px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
}
td {
  padding: 13px 18px;
  font-size: 0.875rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: var(--color-text);
}
tbody tr { transition: background var(--transition); }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: none; }

/* ── Avatar ───────────────────────────────────────── */
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: #fff;
}
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }

/* ── Risk Score ───────────────────────────────────── */
.risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
}
.risk-low    { background: rgba(5,150,105,0.10); color: var(--color-accent);  border: 1px solid rgba(5,150,105,0.25); }
.risk-medium { background: rgba(217,119,6,0.10); color: var(--color-warning); border: 1px solid rgba(217,119,6,0.25); }
.risk-high   { background: rgba(220,38,38,0.10); color: var(--color-danger);  border: 1px solid rgba(220,38,38,0.25); }

/* ── Sidebar ──────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0; top: 0;
  background: var(--color-primary-dark);
  border-right: none;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.sidebar-logo-text { font-size: 0.95rem; font-weight: 800; color: #fff; }
.sidebar-logo-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.5); font-weight: 500; }
.sidebar-nav       { flex: 1; padding: 14px 10px; }
.nav-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  padding: 8px 12px 4px;
  margin-top: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  cursor: pointer;
  margin-bottom: 2px;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.10); color: #fff; }
.nav-item.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: #fff;
  border-radius: 0 3px 3px 0;
}
.nav-icon    { width: 18px; text-align: center; font-size: 0.9rem; }
.nav-badge   {
  margin-left: auto;
  background: var(--color-danger);
  color: #fff;
  font-size: 0.68rem; font-weight: 700;
  padding: 2px 6px; border-radius: 100px;
  min-width: 18px; text-align: center;
}
.sidebar-footer {
  padding: 14px 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius-md);
  cursor: pointer; transition: background var(--transition);
}
.sidebar-user:hover { background: rgba(255,255,255,0.08); }
.sidebar-user-info  { flex: 1; min-width: 0; }
.sidebar-user-name  { font-size: 0.85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role  { font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* ── Sidebar toggle (mobile) ──────────────────────── */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  width: 38px; height: 38px;
  background: var(--color-primary-dark);
  color: #fff;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 99;
}
.sidebar-backdrop.active { display: block; }

/* ── Topbar ───────────────────────────────────────── */
.topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center;
  padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.topbar-title { font-size: 1.05rem; font-weight: 700; flex: 1; color: var(--color-text); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition); cursor: pointer;
  position: relative;
}
.topbar-icon-btn:hover { background: #f1f5f9; color: var(--color-text); }
.topbar-notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-danger);
  border: 2px solid #fff;
}

/* ── App Layout ───────────────────────────────────── */
.app-layout  { display: flex; min-height: 100vh; }
.app-content { margin-left: var(--sidebar-width); flex: 1; min-height: 100vh; display: flex; flex-direction: column; background: var(--color-bg); }
.page-content{ flex: 1; padding: 28px 32px; overflow-y: auto; }

/* ── Section Headers ──────────────────────────────── */
.section-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.section-title   { font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
.section-subtitle{ font-size: 0.85rem; color: var(--color-text-muted); margin-top: 3px; }

/* ── Tabs ─────────────────────────────────────────── */
.tabs {
  display: flex; gap: 2px;
  background: #f1f5f9;
  padding: 3px; border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.tab {
  padding: 7px 18px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted);
  transition: all var(--transition); cursor: pointer;
}
.tab.active { background: #fff; color: var(--color-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.tab:hover:not(.active) { color: var(--color-text); background: rgba(255,255,255,0.6); }

/* ── Stars ────────────────────────────────────────── */
.stars { display: flex; gap: 2px; }
.star  { color: var(--color-warning); font-size: 0.9rem; }
.star.empty { color: #e2e8f0; }

/* ── Chip / Tag ───────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-sm);
  font-size: 0.78rem;
  background: #f1f5f9;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ── Toast ────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 20px; right: 20px;
  z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid;
  animation: slideInToast 0.3s ease;
  max-width: 360px;
  display: flex; align-items: center; gap: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.toast-success { border-color: rgba(5,150,105,0.3);  color: #047857; }
.toast-error   { border-color: rgba(220,38,38,0.3);  color: var(--color-danger); }
.toast-info    { border-color: rgba(26,75,156,0.3);  color: var(--color-primary); }
.toast-warning { border-color: rgba(217,119,6,0.3);  color: var(--color-warning); }
@keyframes slideInToast {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
.modal {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.22s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.modal-wide  { max-width: 800px; }
.modal-header{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close { color: var(--color-text-dim); font-size: 1.1rem; transition: color var(--transition); cursor: pointer; }
.modal-close:hover { color: var(--color-danger); }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.97) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* ── Background decorations (neutres) ────────────── */
.bg-glow {
  position: fixed; border-radius: 50%;
  filter: blur(80px); opacity: 0.06;
  pointer-events: none; z-index: 0;
}
.bg-glow-1 { width: 600px; height: 600px; background: radial-gradient(circle, #2563eb, transparent); top: -200px; right: -200px; }
.bg-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, #4f46e5, transparent); bottom: -100px; left: -150px; }
.bg-glow-3 { width: 400px; height: 400px; background: radial-gradient(circle, #059669, transparent); top: 50%; left: 40%; opacity: 0.04; }

/* ── Gauge (cyber score) ──────────────────────────── */
.gauge-container { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.gauge-ring   { transform: rotate(-90deg); }
.gauge-track  { fill: none; stroke: #e2e8f0; }
.gauge-fill   { fill: none; stroke-linecap: round; transition: stroke-dashoffset var(--transition-slow); }
.gauge-center {
  position: absolute; text-align: center; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

/* ── Module Cards ─────────────────────────────────── */
.module-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.module-card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
}
.module-card-thumb {
  height: 150px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem; position: relative; overflow: hidden;
}
.module-card-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-primary);
  opacity: 0.05;
}
.module-card-body   { padding: 18px 20px; }
.module-card-title  { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; color: var(--color-text); }
.module-card-desc   { font-size: 0.82rem; color: var(--color-text-muted); line-height: 1.5; }
.module-card-footer { padding: 12px 20px; border-top: 1px solid #f1f5f9; display: flex; align-items: center; justify-content: space-between; background: #fafbfd; }

/* ── Wrapper module card ──────────────────────────── */
.module-card-wrapper { }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar-toggle { display: flex; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .app-content { margin-left: 0; }
  .page-content { padding: 20px; }
}
@media (max-width: 768px) {
  .metric-value { font-size: 1.5rem; }
  .page-content { padding: 14px; }
  .modal { padding: 20px; }
}

/* ── Animations ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-fade-up { animation: fadeInUp 0.4s ease both; }
.animate-pulse   { animation: pulse 2s ease infinite; }
.animate-float   { animation: float 3s ease infinite; }

/* ── Landing ──────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; padding: 14px 0;
  transition: all var(--transition);
}
.landing-nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
}
.landing-nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
}
.landing-nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.05rem; font-weight: 800;
}
.landing-nav-logo-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; color: #fff;
}
.landing-nav-links { display: flex; align-items: center; gap: 6px; }
.landing-nav-link {
  padding: 7px 14px; border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 500;
  color: var(--color-text-muted); transition: all var(--transition);
}
.landing-nav-link:hover { color: var(--color-text); background: rgba(15,23,42,0.05); }
.hero-section {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; padding: 120px 0 80px; overflow: hidden;
  background: linear-gradient(160deg, #f0f4ff 0%, #e8f0fe 40%, #f4f6fa 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(26,75,156,0.08);
  border: 1px solid rgba(26,75,156,0.18);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--color-primary);
  margin-bottom: 20px;
}
