/* ============================================================
   MAETIS V1.2 — Design System
   Dark OLED theme. No light mode. No !important.
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES
   ============================================================ */
:root {
  /* Backgrounds */
  --bg: #0a0a0a;
  --surface: #111111;
  --surface-2: #1a1a1a;
  --surface-3: #222222;

  /* Borders */
  --border: rgba(255,255,255,0.07);
  --border-hi: rgba(255,255,255,0.14);

  /* Text */
  --text: #f5f5f5;
  --accent: #f5f5f5;  /* alias de --text, conservé pour compatibilité JS */
  --text-2: #a0a0a0;
  --text-3: #555555;
  --muted: #a0a0a0;

  /* Status */
  --green: #34d399;
  --red: #ef4444;
  --yellow: #f59e0b;
  --blue: #6366f1;

  /* Typography scale */
  --text-xs: 0.65rem;
  --text-sm: 0.75rem;
  --text-base: 0.875rem;
  --text-md: 1rem;
  --text-lg: 1.25rem;
  --text-xl: 2rem;

  /* Fonts */
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Spacing (4px grid) */
  --sp-half: 2px;   /* micro-padding : badge, dividers */
  --sp-1: 4px;      /* gap icône/texte, offset minimal */
  --sp-2: 8px;      /* gap serré, padding de badge/tag */
  --sp-3: 12px;     /* padding compact : inputs, petits boutons */
  --sp-4: 16px;     /* padding standard : cards, champs de formulaire */
  --sp-5: 20px;     /* espace confortable : entre titre et contenu */
  --sp-6: 24px;     /* espace aéré : entre deux groupes */
  --sp-7: 28px;     /* padding header, cards larges */
  --sp-8: 32px;     /* séparation de blocs */
  --sp-9: 36px;     /* padding sections intermédiaires */
  --sp-10: 40px;    /* espace entre sections majeures */
  --sp-12: 48px;    /* grand espace, footer padding */
  --sp-14: 56px;    /* hauteur header, hero section padding */
  --sp-15: 60px;    /* section padding */
  --sp-16: 64px;    /* espace de page */
  --sp-20: 80px;    /* section padding responsive */
  --sp-25: 100px;   /* hero bottom padding (landing) */
  --sp-30: 120px;   /* grand hero bottom padding */

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-full: 20px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.7);

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 200ms;
  --duration-slow: 300ms;

  /* Z-index */
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-modal: 300;
  --z-toast: 400;
  --z-tooltip: 500;
}


/* ============================================================
   2. RESET
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px; /* compense le header sticky de 56px */
}


/* ============================================================
   3. BODY
   ============================================================ */
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ============================================================
   4. FOCUS RING
   ============================================================ */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}


/* ============================================================
   5. CURSORS
   ============================================================ */
/* Supprimer le bleu navigateur par défaut sur tous les liens */
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  opacity: 0.8;
}

a,
button,
[role="button"],
select,
label[for] {
  cursor: pointer;
}

a:disabled,
button:disabled,
[role="button"][aria-disabled="true"],
[disabled] {
  cursor: not-allowed;
}


/* ============================================================
   6. BUTTON SYSTEM
   ============================================================ */

/* --- Base --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all var(--duration-fast) var(--ease);
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Primary: white bg, black text --- */
.btn--primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.btn--primary:hover {
  background: rgba(245,245,245,0.9);
}

/* --- Secondary: transparent with dim border --- */
.btn--secondary {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

/* --- Danger: red tinted --- */
.btn--danger {
  background: rgba(239,68,68,0.1);
  color: var(--red);
  border-color: rgba(239,68,68,0.25);
}

.btn--danger:hover {
  background: rgba(239,68,68,0.18);
}

/* --- Ghost: no border, subtle hover --- */
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: transparent;
}

.btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
}

/* --- Toggle: pill shape with active state --- */
.btn--toggle {
  border-radius: var(--radius-full);
  background: var(--surface-2);
  color: var(--text-2);
  border-color: var(--border);
}

.btn--toggle.active,
.btn--toggle[data-active="true"] {
  background: rgba(52,211,153,0.12);
  color: var(--green);
  border-color: rgba(52,211,153,0.3);
}

/* --- Size modifiers --- */
.btn--sm {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
}

.btn--lg {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-md);
}


/* ============================================================
   7. CARD
   ============================================================ */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-7);
}


/* ============================================================
   8. FIELD (Form Group)
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--text-sm);
  color: var(--text-2);
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-base);
  color: var(--text);
  font-family: var(--font-ui);
  width: 100%;
  transition: border-color var(--duration-fast);
  outline: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--border-hi);
}

/* Error state */
.field--error input,
.field--error select,
.field--error textarea {
  border-color: var(--red);
}

.field__error {
  font-size: var(--text-xs);
  color: var(--red);
}

/* Valid state */
.field--valid input,
.field--valid select,
.field--valid textarea {
  border-color: var(--green);
}

/* Textarea specifics */
.field textarea {
  resize: vertical;
  min-height: 80px;
}


/* ============================================================
   9. BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-half) var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.badge--green {
  background: rgba(52,211,153,0.12);
  color: var(--green);
  border: 1px solid rgba(52,211,153,0.2);
}

.badge--red {
  background: rgba(239,68,68,0.12);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}

.badge--yellow {
  background: rgba(245,158,11,0.12);
  color: var(--yellow);
  border: 1px solid rgba(245,158,11,0.2);
}

.badge--blue {
  background: rgba(99,102,241,0.12);
  color: var(--blue);
  border: 1px solid rgba(99,102,241,0.2);
}

.badge--neutral {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border);
}


/* ============================================================
   10. TOAST SYSTEM
   ============================================================ */
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  z-index: var(--z-toast);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  pointer-events: all;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow-md);
  animation: toast-in var(--duration-slow) var(--ease) both;
}

.toast--success {
  background: rgba(52,211,153,0.12);
  border: 1px solid rgba(52,211,153,0.25);
  color: var(--text);
}

.toast--error {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: var(--text);
}

.toast--warn {
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--text);
}

.toast--info {
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--text);
}


/* ============================================================
   11. MODAL SYSTEM
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  width: min(440px, 100%);
  box-shadow: var(--shadow-lg);
  position: relative;
}


/* ============================================================
   12. SKELETON LOADING
   ============================================================ */
@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.skeleton {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.04),
    transparent
  );
  animation: shimmer 1.5s infinite;
}


/* ============================================================
   13. TABS
   ============================================================ */
.tabs-bar {
  display: flex;
  border-bottom: 1px solid var(--border);
  gap: var(--sp-1);
}

.tab-btn {
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-fast);
  white-space: nowrap;
  font-family: var(--font-ui);
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--green);
}


/* ============================================================
   NEW FEATURES — V1.2 ADDITIONS
   ============================================================ */

/* ============================================================
   A. CSS VARIABLE ADDITIONS (feature 3.2)
   ============================================================ */
:root {
  /* Accent color (purple) */
  --color-accent: #7C6AF6;
  --color-accent-hover: #6A58E8;


  /* Aliases for new feature code using --color-* naming */
  --color-bg: var(--bg);
  --color-surface: var(--surface);
  --color-surface-2: var(--surface-2);
  --color-surface-3: var(--surface-3);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-border: var(--border);
}


/* ============================================================
   B. ACCENT BUTTON (feature 3.2)
   Adds .btn-accent and .btn--accent without touching .btn--primary
   ============================================================ */
.btn-accent,
.btn--accent {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-accent:hover,
.btn--accent:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}


/* ============================================================
   C. HEARTBEAT ANIMATION (feature 3.1)
   ============================================================ */
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.heartbeat-dot {
  animation: heartbeat 2s ease-in-out infinite;
}
/* JS removes .heartbeat-dot class when bot is disabled */


/* ============================================================
   D. PNL ANIMATIONS (feature 3.4)
   ============================================================ */
@keyframes pnl-glow-green {
  0%, 100% { text-shadow: 0 0 8px rgba(52, 211, 153, 0.4); }
  50% { text-shadow: 0 0 16px rgba(52, 211, 153, 0.8); }
}

@keyframes pnl-glow-red {
  0%, 100% { text-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }
  50% { text-shadow: 0 0 16px rgba(239, 68, 68, 0.8); }
}

.pnl-positive {
  color: #34d399;
  animation: pnl-glow-green 3s ease-in-out infinite;
}

.pnl-negative {
  color: #ef4444;
  animation: pnl-glow-red 3s ease-in-out infinite;
}

/* Count-up transition for animating number changes */
.pnl-animate {
  transition: color 0.4s ease;
}

@keyframes count-up-flash {
  0% { opacity: 0.4; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.pnl-changed {
  animation: count-up-flash 0.4s ease forwards;
}


/* ============================================================
   E. CONFETTI CANVAS OVERLAY (feature 3.3)
   ============================================================ */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}


/* ============================================================
   F. TOOLTIP STYLES (feature 1.2)
   ============================================================ */
.tooltip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  margin-left: 0;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-hi);
  line-height: 1;
  vertical-align: middle;
  overflow: visible;
}

.tooltip-trigger:hover .tooltip-popover,
.tooltip-trigger:focus .tooltip-popover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.tooltip-popover {
  position: absolute;
  top: calc(100% + var(--sp-2));
  left: 50%;
  transform: translateX(-50%) translateY(calc(-1 * var(--sp-1)));
  background: var(--surface-3);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-md);
  padding: var(--sp-3) var(--sp-4);
  width: 210px;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-2);
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: var(--z-tooltip);
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
  text-align: left;
}

.tooltip-popover::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-bottom-color: var(--border-hi);
}

.tooltip-recommended {
  display: block;
  margin-top: var(--sp-2);
  color: #34d399;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}


/* ============================================================
   G. ONBOARDING WIZARD (feature 1.1)
   ============================================================ */
.wizard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
}

.wizard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  max-width: 540px;
  width: 100%;
  position: relative;
}

.wizard-progress {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-8);
}

.wizard-progress-step {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--color-surface-3);
  transition: background 0.3s ease;
}

.wizard-progress-step.active {
  background: var(--color-accent);
}

.wizard-step-content {
  display: none;
}

.wizard-step-content.visible {
  display: block;
}

.wizard-step-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--sp-2);
}

.wizard-step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--sp-6);
  line-height: 1.6;
}

.wizard-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.wizard-preset {
  padding: var(--sp-4);
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease;
}

.wizard-preset:hover,
.wizard-preset.selected {
  border-color: var(--color-accent);
}

.wizard-preset-name {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.wizard-preset-amount {
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-mono);
}

.wizard-preset-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-1);
}

.wizard-nav {
  display: flex;
  gap: var(--sp-3);
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-6);
}

.wizard-skip {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.wizard-launch-animation {
  text-align: center;
  padding: var(--sp-8) 0;
}

.wizard-rocket {
  font-size: 3rem;
  animation: rocket-launch 0.8s ease forwards;
}

@keyframes rocket-launch {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-40px); opacity: 0; }
}


/* ============================================================
   H. ACCOUNT HEALTH SCORE WIDGET (feature 2.2)
   ============================================================ */
.health-score-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
}

.health-score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
}

.health-score-label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.health-score-badge {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xl);
  font-weight: 800;
  font-family: var(--font-mono);
}

.health-score-bar {
  height: 6px;
  background: var(--color-surface-3);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--sp-4);
}

.health-score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.health-score-fill.excellent { background: #34d399; }
.health-score-fill.warning { background: #f59e0b; }
.health-score-fill.danger { background: #ef4444; }

.health-recommendations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.health-rec-item {
  font-size: var(--text-xs);
  color: #f59e0b;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  line-height: 1.4;
}

.health-rec-item::before {
  content: '⚠';
  flex-shrink: 0;
}


/* ============================================================
   I. SIGNAL FEED WIDGET (feature 2.3)
   ============================================================ */
.signal-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  max-height: 280px;
  overflow-y: auto;
}

.signal-feed-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  animation: feed-enter 0.2s ease;
}

@keyframes feed-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.signal-feed-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.signal-feed-icon.long  { background: rgba(52, 211, 153, 0.15); }
.signal-feed-icon.short { background: rgba(239, 68, 68, 0.15); }
.signal-feed-icon.close { background: rgba(99, 102, 241, 0.15); }

.signal-feed-body { flex: 1; }
.signal-feed-time { color: var(--color-text-muted); margin-left: auto; flex-shrink: 0; }

.signal-empty-state {
  text-align: center;
  padding: var(--sp-8) var(--sp-4);
  color: var(--color-text-muted);
}

.signal-empty-state svg {
  opacity: 0.2;
  margin-bottom: var(--sp-3);
}


/* ============================================================
   J. EMPTY STATES (feature 1.4)
   ============================================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--sp-12) var(--sp-4);
  text-align: center;
  color: var(--color-text-muted);
}

.empty-state-icon {
  opacity: 0.15;
  margin-bottom: var(--sp-4);
}

.empty-state-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-2);
}

.empty-state-desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  max-width: 280px;
  line-height: 1.6;
}


/* ============================================================
   K. ONBOARDING FLOW DIAGRAM (feature 3.5)
   ============================================================ */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--sp-5);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-6);
  overflow-x: auto;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  min-width: 72px;
}

.flow-node-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.flow-node-label {
  font-size: 10px;
  color: var(--color-text-muted);
  text-align: center;
  line-height: 1.2;
}

.flow-arrow {
  color: var(--color-text-muted);
  font-size: 16px;
  padding: 0 var(--sp-1);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 12px;
}


/* ============================================================
   L. SOCIAL PROOF TICKER (feature 2.4)
   ============================================================ */
.social-proof-ticker {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--sp-2) var(--sp-3);
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
}

.social-proof-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: heartbeat 2s ease-in-out infinite;
}


/* ============================================================
   M. FEE CALCULATOR WIDGET (feature 2.7)
   ============================================================ */
.fee-summary {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin-top: var(--sp-4);
}

.fee-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  padding: var(--sp-2) 0;
}

.fee-summary-row.total {
  border-top: 1px solid var(--color-border);
  margin-top: var(--sp-2);
  padding-top: var(--sp-3);
  font-weight: 700;
}

.fee-summary-tip {
  margin-top: var(--sp-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  padding: var(--sp-3);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--color-accent);
}


/* ============================================================
   N. PANIC MODAL ENHANCEMENT (feature 1.5)
   ============================================================ */
.panic-modal-context {
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  margin: var(--sp-4) 0;
  font-size: var(--text-sm);
}

.panic-modal-context .pnl-negative {
  font-size: var(--text-lg);
  font-weight: 700;
  font-family: var(--font-mono);
}

.panic-modal-stat {
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  margin-top: var(--sp-2);
  line-height: 1.5;
}


/* ── Suppression spinners inputs numériques ─────────── */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] { -moz-appearance: textfield; }
