/* =======================================================
   Simulateurs Majors — styles partagés (light mode uniquement)
   Palette Majors : violet tech #5D5BFF, bleu électrique #00D4FF
   Fonts : Public Sans (titres) + Inter (corps)
   ======================================================= */

/* Masquage de la barre Google Translate (iframe top et ajustements body) */
.skiptranslate,
iframe.skiptranslate,
iframe.VIpgJd-ZVi9od-ORHb-OEVmcd,
.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }

:root {
  --sim-primary: #5D5BFF;
  --sim-primary-2: #00D4FF;
  --sim-accent: #F2D15D;
  --sim-navy: #0A2540;
  --sim-radius: 16px;
  --sim-shadow-sm: 0 2px 8px rgba(10, 15, 40, .06);
  --sim-shadow-md: 0 10px 30px rgba(10, 15, 40, .10);
  --sim-shadow-lg: 0 20px 60px rgba(10, 15, 40, .14);

  --sim-bg: #F5F7F9;
  --sim-bg-alt: #FFFFFF;
  --sim-surface: #FFFFFF;
  --sim-border: rgba(10, 37, 64, .10);
  --sim-text: #0A2540;
  --sim-text-muted: #54657a;
  --sim-chip-bg: rgba(93, 91, 255, .08);
  --sim-chip-text: #5D5BFF;
}

/* ====== Base ====== */
html, body {
  background: var(--sim-bg);
  color: var(--sim-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

.sim-wrap h1, .sim-wrap h2, .sim-wrap h3, .sim-wrap h4, .sim-wrap h5 {
  font-family: 'Public Sans', 'Inter', sans-serif;
  color: var(--sim-text);
  letter-spacing: -.01em;
}

/* ====== Header Majors : top bar + main bar ====== */

/* --- Top bar (infos) --- */
.sim-topbar {
  background: #eef4fe;
  border-top: 1px solid rgba(10, 37, 64, .18);
  border-bottom: 1px solid rgba(10, 37, 64, .18);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}
.sim-topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6px 100px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}
.sim-topbar a.sim-topbar-link {
  color: var(--sim-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  padding: 4px 0;
  transition: color .2s;
}
.sim-topbar a.sim-topbar-link:hover { color: var(--sim-primary); }
.sim-topbar a.sim-topbar-link svg { width: 15px; height: 15px; }

/* Language dropdown */
.sim-lang { position: relative; }
.sim-lang-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--sim-text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-family: inherit;
}
.sim-lang-btn img { width: 20px; height: auto; }
.sim-lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--sim-surface);
  border: 1px solid var(--sim-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--sim-shadow-md);
  display: none;
  min-width: 150px;
  z-index: 200;
}
.sim-lang.open .sim-lang-menu { display: block; }
.sim-lang-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--sim-text);
  font-size: 13px;
  text-decoration: none;
}
.sim-lang-menu a img { width: 20px; height: auto; }
.sim-lang-menu a:hover { background: var(--sim-chip-bg); color: var(--sim-primary); }

/* (Theme switch retiré : light mode uniquement) */

/* --- Main bar (logo + CTA) --- */
.sim-mainbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sim-bg);
  border-bottom: 1px solid var(--sim-border);
  backdrop-filter: saturate(1.1) blur(8px);
}
.sim-mainbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.sim-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.sim-logo img { max-width: 230px; width: 230px; height: auto; display: block; }

/* Bouton "Tester la Suite Majors" — dégradé bleu Majors */
.sim-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--sim-primary);
  background: linear-gradient(135deg, var(--sim-primary) 0%, var(--sim-primary-2) 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
.sim-cta-btn em { font-style: italic; font-weight: 700; }
.sim-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(93, 91, 255, .35);
  color: #fff !important;
}

/* Un seul logo (light mode uniquement) */
.logo-dark-only { display: none !important; }

/* Responsive header */
@media (max-width: 900px) {
  .sim-topbar-inner { padding: 6px 20px; gap: 16px; flex-wrap: wrap; }
  .sim-mainbar-inner { padding: 14px 20px; }
  .sim-topbar a.sim-topbar-link span { display: none; }
}
@media (max-width: 600px) {
  .sim-logo img { max-width: 140px; }
  .sim-cta-btn { padding: 9px 16px; font-size: 13px; }
}

/* ====== Hero (hub) ====== */
.sim-hero {
  padding: 72px 24px 48px;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.sim-hero .eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sim-chip-bg);
  color: var(--sim-chip-text);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.sim-hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin: 0 0 16px;
  line-height: 1.1;
}
.sim-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--sim-primary), var(--sim-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sim-hero p.lead {
  font-size: 18px;
  color: var(--sim-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ====== Filtres ====== */
.sim-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 1280px;
  margin: 24px auto 40px;
  padding: 0 24px;
}
.sim-filters button {
  appearance: none;
  border: 1px solid var(--sim-border);
  background: var(--sim-surface);
  color: var(--sim-text-muted);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.sim-filters button:hover {
  color: var(--sim-text);
  border-color: var(--sim-primary);
}
.sim-filters button.active {
  background: linear-gradient(90deg, var(--sim-primary), var(--sim-primary-2));
  color: #fff;
  border-color: transparent;
}

/* ====== Grille cartes ====== */
.sim-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.sim-card {
  background: var(--sim-surface);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius);
  padding: 24px;
  text-decoration: none;
  color: var(--sim-text);
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.sim-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(93, 91, 255, 0) 0%, rgba(0, 212, 255, .08) 100%);
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.sim-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sim-shadow-md);
  border-color: rgba(93, 91, 255, .35);
}
.sim-card:hover::before { opacity: 1; }

.sim-card .icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sim-chip-bg);
  color: var(--sim-chip-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sim-card .icon-wrap svg { width: 26px; height: 26px; }
.sim-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}
.sim-card p {
  font-size: 14px;
  color: var(--sim-text-muted);
  margin: 0;
  line-height: 1.5;
  flex: 1;
}
.sim-card .category-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--sim-chip-text);
}
.sim-card .arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--sim-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}
.sim-card .badge-pop {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--sim-primary), var(--sim-primary-2));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ====== Page simulateur individuelle ====== */
.sim-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.sim-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sim-text-muted);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 16px;
}
.sim-page .back-link:hover { color: var(--sim-primary); }
.sim-page h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 10px;
}
.sim-page .sim-subtitle {
  color: var(--sim-text-muted);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 700px;
}

.sim-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 900px) {
  .sim-layout { grid-template-columns: 1fr; }
}

.sim-form, .sim-result {
  background: var(--sim-surface);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius);
  padding: 28px;
}
.sim-form h2, .sim-result h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sim-form h2 svg, .sim-result h2 svg { color: var(--sim-primary); }

.sim-field { margin-bottom: 18px; }
.sim-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--sim-text);
  margin-bottom: 6px;
}
.sim-field label .hint {
  font-weight: 400;
  color: var(--sim-text-muted);
  font-size: 12px;
}
.sim-field input, .sim-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sim-border);
  background: var(--sim-bg-alt);
  color: var(--sim-text);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.sim-field input:focus, .sim-field select:focus {
  outline: none;
  border-color: var(--sim-primary);
  box-shadow: 0 0 0 3px rgba(93, 91, 255, .15);
}
.sim-field .with-suffix { position: relative; }
.sim-field .with-suffix .suffix {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sim-text-muted);
  font-size: 14px;
  pointer-events: none;
}
.sim-field .with-suffix input { padding-right: 40px; }

.sim-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.sim-radio-group label {
  display: block;
  padding: 12px;
  border: 1px solid var(--sim-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  background: var(--sim-bg-alt);
}
.sim-radio-group input { display: none; }
.sim-radio-group input:checked + span {
  color: var(--sim-primary);
}
.sim-radio-group label:has(input:checked) {
  border-color: var(--sim-primary);
  background: var(--sim-chip-bg);
}

/* Result card */
.sim-result { position: sticky; top: 100px; }
.sim-result .big-number {
  font-size: 44px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--sim-primary), var(--sim-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin: 12px 0 4px;
  font-family: 'Public Sans', sans-serif;
  letter-spacing: -.02em;
}
.sim-result .big-label {
  font-size: 13px;
  color: var(--sim-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.sim-result .breakdown {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--sim-border);
}
.sim-result .breakdown .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.sim-result .breakdown .row + .row { border-top: 1px dashed var(--sim-border); }
.sim-result .breakdown .label { color: var(--sim-text-muted); }
.sim-result .breakdown .value { font-weight: 700; color: var(--sim-text); }
.sim-result .breakdown .row.highlight .value { color: var(--sim-primary); }

.sim-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sim-btn {
  appearance: none;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.sim-btn-primary {
  background: linear-gradient(90deg, var(--sim-primary), var(--sim-primary-2));
  color: #fff;
}
.sim-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(93, 91, 255, .35); }
.sim-btn-secondary {
  background: var(--sim-chip-bg);
  color: var(--sim-chip-text);
  border: 1px solid transparent;
}
.sim-btn-secondary:hover { border-color: var(--sim-primary); }
.sim-btn-ghost {
  background: transparent;
  color: var(--sim-text-muted);
  border: 1px solid var(--sim-border);
}
.sim-btn-ghost:hover { color: var(--sim-text); border-color: var(--sim-primary); }

/* CTA final */
.sim-cta-rdv {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, var(--sim-primary), var(--sim-primary-2));
  border-radius: var(--sim-radius);
  color: #fff;
  text-align: center;
}
.sim-cta-rdv h3 { color: #fff; margin: 0 0 10px; font-size: 22px; }
.sim-cta-rdv p { color: rgba(255,255,255,.9); margin: 0 0 18px; }
.sim-cta-rdv a {
  display: inline-block;
  padding: 14px 28px;
  background: #fff;
  color: var(--sim-primary);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.sim-cta-rdv a:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.25); }

/* ====== Gate modal ====== */
.sim-gate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 13, .75);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.sim-gate-overlay.show { display: flex; }
.sim-gate-card {
  background: var(--sim-surface);
  border-radius: var(--sim-radius);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--sim-shadow-lg);
  border: 1px solid var(--sim-border);
  animation: simGateIn .3s ease;
}
@keyframes simGateIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.sim-gate-card .gate-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sim-primary), var(--sim-primary-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.sim-gate-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--sim-text); }
.sim-gate-card p.gate-sub { color: var(--sim-text-muted); font-size: 14px; margin: 0 0 22px; line-height: 1.5; }
.sim-gate-card .gate-status {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 8px;
  margin-top: 10px;
  display: none;
}
.sim-gate-card .gate-status.ok { display: block; background: rgba(16, 185, 129, .12); color: #10B981; }
.sim-gate-card .gate-status.err { display: block; background: rgba(235, 21, 97, .12); color: #eb1561; }

/* ====== Toast ====== */
.sim-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--sim-surface);
  border: 1px solid var(--sim-border);
  border-left: 4px solid var(--sim-primary);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--sim-text);
  font-size: 14px;
  box-shadow: var(--sim-shadow-md);
  z-index: 1100;
  transform: translateX(120%);
  transition: transform .3s ease;
  max-width: 320px;
}
.sim-toast.show { transform: translateX(0); }
.sim-toast.err { border-left-color: #eb1561; }
.sim-toast.ok  { border-left-color: #10B981; }

/* Footer simple */
.sim-footer {
  border-top: 1px solid var(--sim-border);
  padding: 32px 24px;
  text-align: center;
  color: var(--sim-text-muted);
  font-size: 13px;
  margin-top: 40px;
}
.sim-footer a { color: var(--sim-primary); text-decoration: none; }
.sim-footer a:hover { text-decoration: underline; }

/* Chart canvas container */
.sim-chart-wrap { margin-top: 24px; }

/* ====== Bloc conformité (auto-injecté par compliance.js) ====== */
.sim-compliance {
  max-width: 1200px;
  margin: 40px auto 0;
  background: var(--sim-surface);
  border: 1px solid var(--sim-border);
  border-radius: var(--sim-radius);
  overflow: hidden;
}
.sim-compliance summary {
  cursor: pointer;
  padding: 18px 24px;
  font-family: 'Public Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--sim-text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--sim-chip-bg);
  border-left: 3px solid var(--sim-primary);
}
.sim-compliance summary::-webkit-details-marker { display: none; }
.sim-compliance summary svg { color: var(--sim-primary); flex-shrink: 0; }
.sim-compliance summary::after {
  content: "+";
  font-size: 22px;
  color: var(--sim-primary);
  font-weight: 400;
  margin-left: auto;
  transition: transform .2s;
}
.sim-compliance[open] summary::after { transform: rotate(45deg); }

.sim-compliance-content {
  padding: 24px 28px 28px;
  color: var(--sim-text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.sim-compliance .comp-sec { margin-bottom: 20px; }
.sim-compliance .comp-sec h4 {
  font-family: 'Public Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--sim-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 10px;
}
.sim-compliance .comp-sec ul {
  margin: 0;
  padding-left: 18px;
}
.sim-compliance .comp-sec li { margin-bottom: 4px; }
.sim-compliance .comp-sec p { margin: 0 0 8px; }
.sim-compliance .comp-sec code {
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  font-size: 11px;
  background: rgba(10, 37, 64, .06);
  color: var(--sim-text);
  padding: 2px 6px;
  border-radius: 4px;
}
.sim-compliance .comp-footer {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--sim-border);
  flex-wrap: wrap;
}
.sim-compliance .comp-badge {
  flex: 1;
  min-width: 180px;
  background: var(--sim-bg);
  border: 1px solid var(--sim-border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
}
.sim-compliance .comp-badge strong {
  color: var(--sim-primary);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* Version badge dans footer */
.sim-version-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--sim-chip-bg);
  color: var(--sim-chip-text);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 14px;
}

/* Boutons export injectés */
.sim-btn-export svg { flex-shrink: 0; }

/* ====== Profil de risque MiFID II (modal + badge) ====== */
.risk-profile-badge {
  appearance: none;
  border: 1px solid var(--sim-border);
  background: var(--sim-surface);
  color: var(--sim-text);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .2s;
}
.risk-profile-badge:hover {
  border-color: var(--sim-primary);
  color: var(--sim-primary);
}
.risk-profile-badge b { font-weight: 700; margin-left: 2px; }
.risk-badge-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sim-primary);
  flex-shrink: 0;
}

.risk-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 13, .7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}
.risk-overlay.show { display: flex; }
.risk-modal {
  background: var(--sim-surface);
  border-radius: var(--sim-radius);
  padding: 36px 40px 30px;
  max-width: 620px;
  width: 100%;
  box-shadow: var(--sim-shadow-lg);
  border: 1px solid var(--sim-border);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: riskIn .3s ease;
}
@keyframes riskIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.risk-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--sim-text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 8px;
  transition: background .2s;
}
.risk-close:hover { background: var(--sim-chip-bg); color: var(--sim-primary); }

.risk-header { margin-bottom: 24px; }
.risk-header .risk-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sim-primary), var(--sim-primary-2));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.risk-header h3 { margin: 0 0 6px; font-size: 22px; font-weight: 800; color: var(--sim-text); font-family: 'Public Sans', sans-serif; }
.risk-header p { color: var(--sim-text-muted); font-size: 13px; margin: 0; line-height: 1.5; }

.risk-q { margin-bottom: 22px; }
.risk-q h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--sim-text);
  margin: 0 0 10px;
  font-family: 'Public Sans', sans-serif;
}
.risk-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}
.risk-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--sim-border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  background: var(--sim-bg-alt);
  transition: all .15s;
}
.risk-options label:hover {
  border-color: var(--sim-primary);
  background: var(--sim-chip-bg);
}
.risk-options input { accent-color: var(--sim-primary); flex-shrink: 0; }
.risk-options label:has(input:checked) {
  border-color: var(--sim-primary);
  background: var(--sim-chip-bg);
}

.risk-footer {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  justify-content: flex-end;
}
.risk-result { margin-top: 20px; }
.risk-result-card {
  padding: 20px 22px;
  background: var(--sim-bg);
  border-radius: 12px;
  border-left: 4px solid var(--sim-primary);
}
.risk-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.risk-result-label {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Public Sans', sans-serif;
}
.risk-result-score {
  font-size: 12px;
  color: var(--sim-text-muted);
  font-weight: 600;
}
.risk-result-desc { font-size: 13px; color: var(--sim-text); margin: 0 0 12px; line-height: 1.55; }
.risk-result-alloc {
  font-size: 12px;
  color: var(--sim-text-muted);
  padding: 8px 12px;
  background: var(--sim-chip-bg);
  border-radius: 8px;
  margin-bottom: 8px;
}
.risk-result-params {
  font-size: 12px;
  color: var(--sim-text-muted);
  padding: 8px 12px;
}
.risk-result-note {
  font-size: 11px;
  color: var(--sim-text-muted);
  font-style: italic;
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed var(--sim-border);
}
