/* ==========================================================================
   VEXCAPITAL — Styles spécifiques aux écrans
   ========================================================================== */

/* ---------- Splash ---------- */
.splash-screen {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--splash-bg-gradient);
  position: relative; overflow: hidden; padding: var(--space-6);
}
.splash-candles {
  position: absolute; bottom: 0; left: 0; right: 0; height: 160px; opacity: .5;
}
[data-theme="light"] .splash-candles { opacity: .35; }
.splash-tags { margin-top: var(--space-8); font-size: var(--fs-sm); color: var(--text-muted); letter-spacing: 1px; text-align: center; }
.splash-tags span { color: var(--brand-primary); }
.splash-loader-wrap { position: absolute; bottom: 56px; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(var(--brand-primary-rgb), .2); border-top-color: var(--brand-primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.splash-loading-text { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Vex AI (chat) ---------- */
.vexai-msg { max-width:82%; padding:10px 14px; border-radius:var(--radius-lg); margin-bottom:var(--space-3); font-size:var(--fs-sm); line-height:1.55; white-space:pre-wrap; }
.vexai-msg.user { background:var(--brand-gradient); color:var(--text-on-brand); margin-left:auto; border-bottom-right-radius:4px; }
.vexai-msg.assistant { background:var(--bg-card); color:var(--text-primary); margin-right:auto; border-bottom-left-radius:4px; border:1px solid var(--border-color); }

/* ---------- Onboarding ---------- */
.onboarding-screen { min-height: 100vh; display: flex; flex-direction: column; padding: var(--space-5); }
.onboarding-skip { align-self: flex-end; color: var(--text-secondary); font-size: var(--fs-sm); padding: var(--space-2); }
.onboarding-illustration { margin: var(--space-4) 0; }
.onboarding-market-card { padding: var(--space-4); }
.onboarding-market-head {
  display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap;
  gap: var(--space-3); margin-bottom: var(--space-4);
}
.onboarding-market-pair { display: flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: 700; }
.onboarding-coin-badge {
  width: 24px; height: 24px; border-radius: 50%; background: #f7931a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.onboarding-market-pair .icon-sm { width: 14px; height: 14px; color: var(--text-muted); }
.onboarding-market-perf { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.onboarding-market-perf .badge svg { width: 11px; height: 11px; }
.onboarding-perf-label { font-size: var(--fs-xs); color: var(--text-muted); }
.onboarding-market-price-row { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-4); }
.onboarding-market-price-row .instrument-price { font-size: var(--fs-2xl); }
.onboarding-market-chart { height: 180px; position: relative; margin-bottom: var(--space-4); }
.onboarding-chart-tooltip {
  position: absolute; background: var(--bg-elevated); border: 1px solid var(--border-color-light);
  border-radius: var(--radius-sm); padding: 4px 9px; font-size: var(--fs-xs); font-weight: 700;
  color: var(--text-primary); pointer-events: none; white-space: nowrap; transform: translateY(-100%);
  box-shadow: 0 2px 10px rgba(0,0,0,.3); z-index: 2; opacity: 0; transition: opacity .2s;
}
.onboarding-chart-tooltip .muted { color: var(--text-muted); font-weight: 500; margin-left: 4px; }
.onboarding-chart-vline {
  position: absolute; top: 0; width: 0; border-left: 1px dashed var(--border-color-light);
  pointer-events: none; z-index: 1;
}
.onboarding-market-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3);
  padding-top: var(--space-4); border-top: 1px solid var(--border-color);
}
.onboarding-stat-icon {
  width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; margin-bottom: 5px;
}
.onboarding-stat-icon svg { width: 12px; height: 12px; }
.onboarding-stat-icon.neutral { background: var(--bg-elevated); color: var(--text-secondary); }
.onboarding-stat-icon.success { background: var(--success-bg); color: var(--success); }
.onboarding-stat-icon.danger { background: var(--danger-bg); color: var(--danger); }
.onboarding-stat-icon.brand { background: var(--brand-soft-bg); color: var(--brand-primary); }
.onboarding-title { font-size: var(--fs-2xl); font-weight: 700; text-align: center; margin-bottom: var(--space-3); }
.onboarding-text { color: var(--text-secondary); text-align: center; font-size: var(--fs-base); line-height: 1.6; margin-bottom: var(--space-5); }
.dots { display: flex; justify-content: center; gap: 6px; margin-bottom: var(--space-6); }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--border-color-light); }
.dots span.active { width: 20px; border-radius: 4px; background: var(--brand-primary); }
.onboarding-footer { margin-top: auto; }
.onboarding-login-link { text-align: center; margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- Logo au-dessus des formulaires (connexion / inscription) ---------- */
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: var(--space-6); }
.auth-logo .logo-mark { width: 52px; height: 52px; }
.auth-logo .logo-text { font-size: var(--fs-xl); }

/* ---------- Landing ---------- */
.landing-badge {
  display: inline-block; padding: 7px 14px; border-radius: var(--radius-pill);
  border: 1px solid rgba(var(--brand-primary-rgb), .35); color: var(--brand-primary);
  background: var(--brand-soft-bg);
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px; margin-bottom: var(--space-4);
}
.landing-title { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.2; margin-bottom: var(--space-3); }
.landing-subtitle { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.6; margin-bottom: var(--space-5); }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-6) 0; text-align: center; }
.landing-feature-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2);
  color: var(--brand-primary);
}
.landing-feature-icon svg { width: 24px; height: 24px; }
.landing-feature-label { font-size: 11.5px; color: var(--text-secondary); line-height: 1.3; }
.landing-hero-art {
  border-radius: var(--radius-xl); overflow: hidden; margin-top: var(--space-4);
  background: var(--bg-hero-gradient); border: 1px solid var(--border-color);
  min-height: 180px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Home CTA vers À propos ("Découvrir Vexcapital") ---------- */
.home-cta-card {
  margin-top: var(--space-6); padding: var(--space-5); border-radius: var(--radius-xl);
  background: var(--bg-card); border: 1px solid var(--border-color); text-align: center;
}
.home-cta-card .home-cta-heading { font-size: var(--fs-lg); font-weight: 700; margin-bottom: var(--space-2); }
.home-cta-card .home-cta-body { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.6; margin-bottom: var(--space-4); }

/* ---------- Page À propos ---------- */
.about-section { margin: var(--space-8) 0; }
.about-section-heading { font-size: var(--fs-2xl); font-weight: 700; margin-bottom: var(--space-4); text-align: center; }
.about-section-body { color: var(--text-secondary); font-size: var(--fs-base); line-height: 1.7; text-align: center; max-width: 560px; margin: 0 auto; }

.about-pillars, .about-ecosystem { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
@media (max-width: 640px) {
  .about-pillars, .about-ecosystem { grid-template-columns: 1fr; }
}
.about-card {
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border-color); text-align: center;
}
.about-card-icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--brand-soft-bg);
  color: var(--brand-primary); display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-3);
}
.about-card-icon svg { width: 22px; height: 22px; }
.about-card-title { font-weight: 700; font-size: var(--fs-md); margin-bottom: var(--space-2); }
.about-card-body { color: var(--text-secondary); font-size: var(--fs-sm); line-height: 1.6; }

.about-security-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
@media (max-width: 480px) {
  .about-security-list { grid-template-columns: 1fr; }
}
.about-security-item {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4);
  border-radius: var(--radius-md); background: var(--bg-card); border: 1px solid var(--border-color);
  font-size: var(--fs-sm); font-weight: 600;
}
.about-security-item .about-security-icon {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft-bg);
  color: var(--brand-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.about-security-item .about-security-icon svg { width: 18px; height: 18px; }

.about-kyc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-4); margin-top: var(--space-5); }
@media (max-width: 480px) {
  .about-kyc-grid { grid-template-columns: 1fr; }
}
.about-kyc-card {
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border-color);
}
.about-kyc-level {
  display: inline-block; padding: 4px 12px; border-radius: var(--radius-pill);
  background: var(--brand-soft-bg); color: var(--brand-primary);
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px; margin-bottom: var(--space-2);
}
.about-kyc-card .about-card-body { text-align: left; }

.about-transparency-card {
  padding: var(--space-5); border-radius: var(--radius-lg); background: var(--bg-elevated);
  border: 1px solid var(--border-color); text-align: center; margin-top: var(--space-5);
}
.about-transparency-card .about-card-body { margin-bottom: var(--space-3); }

.about-final-cta { text-align: center; margin: var(--space-8) 0 var(--space-6); }
.about-final-cta .btn { min-width: 220px; }
.about-final-cta .about-login-hint { margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--text-secondary); }

/* ---------- Pages légales longues (Confidentialité, Politique KYC) ---------- */
.legal-doc { max-width: 640px; margin: 0 auto; }
.legal-toc {
  padding: var(--space-4); border-radius: var(--radius-lg); background: var(--bg-card);
  border: 1px solid var(--border-color); display: flex; flex-direction: column; gap: var(--space-2);
}
.legal-toc-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px; }
.legal-toc a { color: var(--text-secondary); font-size: var(--fs-sm); text-decoration: none; }
.legal-toc a:hover { color: var(--brand-primary); }

/* ---------- Footer public (accueil.php + a-propos.php) ---------- */
.public-footer {
  margin-top: var(--space-8); padding: var(--space-6) 0 var(--space-5);
  border-top: 1px solid var(--border-color);
}
.public-footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.public-footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); margin-bottom: var(--space-5); }
@media (max-width: 480px) {
  .public-footer-cols { grid-template-columns: 1fr 1fr; }
}
.public-footer-col { display: flex; flex-direction: column; gap: var(--space-2); }
.public-footer-col-heading { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 2px; }
.public-footer-col a { color: var(--text-secondary); font-size: var(--fs-sm); text-decoration: none; }
.public-footer-col a:hover { color: var(--brand-primary); }
.public-footer-copy { font-size: 11px; color: var(--text-muted); text-align: center; }

/* ---------- Dashboard ---------- */
.greeting-name { font-size: var(--fs-xl); font-weight: 700; }
.greeting-sub { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 2px; }
.balance-card { background: var(--bg-balance-gradient); }
.balance-label { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: var(--fs-sm); }
.balance-label svg { width: 15px; height: 15px; }
.balance-value { font-size: var(--fs-3xl); font-weight: 700; margin-top: 6px; }
.balance-value .cur { font-size: var(--fs-md); color: var(--text-secondary); font-weight: 600; margin-left: 4px; }
.balance-row { display: flex; align-items: flex-end; justify-content: space-between; }
.pnl-row { margin-top: var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); }

.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); text-align: center; margin: var(--space-5) 0; }
.quick-action-icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2); color: var(--text-primary);
}
.quick-action-icon.accent { color: var(--info); }
.quick-action-icon svg { width: 22px; height: 22px; }
.quick-action-label { font-size: 11px; color: var(--text-secondary); }

.ai-card { display: flex; align-items: center; gap: var(--space-4); background: var(--bg-ai-gradient); }
.ai-card .logo-mark { width: 44px; height: 44px; flex-shrink: 0; }
.ai-card-title { font-weight: 700; font-size: var(--fs-md); }
.ai-card-text { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: 2px; }
.ai-card-badge { margin-left: auto; font-size: 10.5px; color: var(--text-muted); background: var(--bg-elevated); padding: 3px 8px; border-radius: var(--radius-pill); flex-shrink: 0; }

.ai-slider { position: relative; }
.ai-slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  gap: var(--space-3); scrollbar-width: none; -ms-overflow-style: none;
}
.ai-slider-track::-webkit-scrollbar { display: none; }
.ai-slide { scroll-snap-align: start; flex: 0 0 100%; min-width: 100%; }
.ai-slide-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ai-slide-btn {
  display: inline-block; align-self: flex-start; margin-top: 4px; padding: 6px 14px;
  background: var(--brand-primary); color: #000; font-size: 12.5px; font-weight: 700;
  border-radius: var(--radius-pill); text-decoration: none;
}
.ai-slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: var(--space-2); }
.ai-slider-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border-subtle); transition: background .15s, width .15s; cursor: pointer; }
.ai-slider-dots span.active { background: var(--brand-primary); width: 16px; border-radius: 3px; }
.ai-slider-arrow {
  display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-elevated); color: var(--text-primary);
  align-items: center; justify-content: center; cursor: pointer; border: 1px solid var(--border-subtle);
}
.ai-slider-arrow::before { content: ''; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.ai-slider-arrow-prev { left: -4px; }
.ai-slider-arrow-prev::before { transform: rotate(-135deg); margin-left: 3px; }
.ai-slider-arrow-next { right: -4px; }
.ai-slider-arrow-next::before { transform: rotate(45deg); margin-right: 3px; }
@media (hover: hover) and (pointer: fine) {
  .ai-slider-arrow { display: flex; }
}

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.promo-card { min-height: 110px; display: flex; flex-direction: column; justify-content: space-between; }
.promo-label { font-size: 11px; color: var(--text-muted); }
.promo-value { font-size: var(--fs-sm); font-weight: 700; margin-top: 4px; }
.promo-link { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-secondary); margin-top: var(--space-2); }
.promo-link svg { width: 14px; height: 14px; }

/* ---------- Marché : lignes d'actifs (denses, type terminal de trading) ---------- */
.market-row {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) 0; border-bottom: 1px solid var(--border-color);
}
.market-row:last-child { border-bottom: none; }
.market-row:active { background: var(--bg-elevated); }
.market-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; color: #05070a;
}
img.market-icon { object-fit: cover; background: var(--bg-elevated); }
.market-info { flex: 1; min-width: 0; }
.market-pair { font-weight: 700; font-size: var(--fs-base); display: flex; align-items: center; gap: 6px; }
.market-lev { font-size: 9.5px; color: var(--text-muted); background: var(--bg-elevated); padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.market-name { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1px; }
.market-price-wrap { text-align: right; flex-shrink: 0; }
.market-price { font-weight: 700; font-size: var(--fs-base); }
.market-change { font-size: var(--fs-xs); font-weight: 700; margin-top: 2px; }
.market-change.up { color: var(--success); }
.market-change.down { color: var(--danger); }
.fav-star { color: var(--text-muted); flex-shrink: 0; }
.fav-star.active { color: var(--brand-primary); }
.fav-star svg { width: 16px; height: 16px; }
.search-bar { margin-bottom: var(--space-3); }
.market-columns {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--fs-xs); color: var(--text-muted); padding: 2px 0 6px;
  border-bottom: 1px solid var(--border-color); margin-bottom: 2px;
}
.market-columns .col-price { margin-left: auto; margin-right: var(--space-4); }
.market-columns .col-change { width: 64px; text-align: right; }

/* ---------- Détail marché : graphique, carnet, vue d'ensemble, données ---------- */
.ma-legend { display: flex; gap: var(--space-4); font-size: var(--fs-xs); font-weight: 600; }
.volume-chart { height: 46px; }
.orderbook-mid-price { text-align: center; }

/* ---------- Signaux ---------- */
.signal-card { margin-bottom: var(--space-4); }
.signal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.signal-pair { font-size: var(--fs-lg); font-weight: 700; display: flex; align-items: center; gap: var(--space-2); }
.signal-pair-icon { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #0a0d10; }
.signal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.signal-stat-label { font-size: 11px; color: var(--text-muted); }
.signal-stat-value { font-weight: 700; font-size: var(--fs-base); margin-top: 2px; }
.signal-stat-value.buy { color: var(--success); }
.signal-stat-value.sell { color: var(--danger); }
.signal-chart { height: 90px; border-radius: var(--radius-md); background: var(--bg-chart-gradient); border: 1px solid var(--border-color); margin-bottom: var(--space-3); }
.signal-meta { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-bottom: var(--space-4); }

.detail-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border-color); font-size: var(--fs-base); }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { color: var(--text-secondary); }
.detail-row .v { font-weight: 700; }
.detail-row .v.buy { color: var(--success); }
.detail-row .v.sell { color: var(--danger); }

/* ---------- Bandeau compte à rebours (fenêtre de copie) ---------- */
.signal-countdown-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px var(--space-4); background: var(--brand-soft-bg);
  border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.signal-countdown-strip strong { color: var(--brand-primary); font-variant-numeric: tabular-nums; }

/* ---------- Ligne de signal dense (onglets Actifs / Historique) ---------- */
.signal-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-color); }
.signal-row:last-child { border-bottom: none; }
.signal-row:active { background: var(--bg-elevated); }
.signal-row-icon { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; color: #05070a; }
.signal-row-info { flex: 1; min-width: 0; }
.signal-row-pair { font-weight: 700; font-size: var(--fs-base); }
.signal-row-meta { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1px; }
.signal-row-right { text-align: right; flex-shrink: 0; }
.signal-row-entry { font-weight: 700; font-size: var(--fs-base); }

/* ---------- Investir / Plans ---------- */
.plan-card { position: relative; overflow: hidden; margin-bottom: var(--space-4); }
.plan-card.premium { border-color: rgba(var(--brand-primary-rgb), .45); background: var(--premium-tint-bg); }
.plan-card.vip { background: var(--vip-gradient); border-color: var(--vip-border); }
.plan-name { font-size: var(--fs-sm); font-weight: 700; letter-spacing: 1.5px; color: var(--text-secondary); }
.plan-card.vip .plan-name { color: var(--vip-text-soft); }
.plan-price { font-size: var(--fs-2xl); font-weight: 700; margin: 4px 0 2px; }
.plan-card.vip .plan-price { color: var(--vip-text-strong); }
.plan-duration { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--space-4); }
.plan-card.vip .plan-duration { color: var(--vip-text-soft); }
.plan-features { margin-bottom: var(--space-5); }
.plan-feature { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); margin-bottom: var(--space-2); color: var(--text-secondary); }
.plan-card.vip .plan-feature { color: var(--vip-text-strong); }
.plan-feature svg { width: 16px; height: 16px; color: var(--success); flex-shrink: 0; }
.plan-disclaimer { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: var(--space-4); line-height: 1.5; }

/* ---------- Champs type "order ticket" (TradeFi) ---------- */
.order-field-row { display: flex; gap: var(--space-3); margin-bottom: var(--space-4); }
.order-field {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  padding: 10px 14px; cursor: pointer;
}
.order-field-label { display: block; font-size: var(--fs-xs); color: var(--text-muted); }
.order-field-value { display: flex; align-items: center; gap: 4px; font-size: var(--fs-base); font-weight: 700; margin-top: 2px; }
.order-field-value svg { width: 14px; height: 14px; color: var(--text-muted); }

/* ---------- TradeFi : ticket d'ordre à 2 colonnes (fidèle à la référence) ---------- */
.tradefi-layout { display: flex; gap: var(--space-4); align-items: flex-start; }
.tradefi-form { flex: 1.35; min-width: 0; }
.tradefi-book { flex: 1; min-width: 0; font-size: 11px; }
.tradefi-book .orderbook-row { font-size: 10.5px; padding: 2px 0; }
.qty-stepper { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 4px; }
.stepper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-color-light); }
.stepper-dot.active { width: 14px; height: 14px; border: 2px solid var(--text-primary); background: transparent; }

/* ---------- Actifs / Portefeuille (fidèle à la référence : header compte,
   total des actifs, équivalent BTC, P&L, 2 colonnes, 5 actions rapides,
   onglets Actif/Account, liste d'actifs détenus) ---------- */
.wallet-account { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--text-secondary); font-weight: 600; }
.wallet-avatar { width: 26px; height: 26px; }
.wallet-avatar svg { width: 15px; height: 15px; color: var(--text-muted); }
.wallet-account svg { width: 13px; height: 13px; color: var(--text-muted); }

.wallet-total-row { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: var(--fs-sm); margin-top: var(--space-2); }
.wallet-total-row svg { width: 14px; height: 14px; }
.wallet-total-value { display: flex; align-items: center; gap: 6px; margin-top: 4px; position: relative; }
.wallet-total-value .balance-value { font-size: var(--fs-3xl); }
.wallet-total-value svg { width: 16px; height: 16px; color: var(--text-muted); }
.wallet-mini-chart { width: 110px; height: 26px; margin-left: auto; opacity: .8; }
.wallet-btc-eq { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: var(--fs-xs); margin-top: 2px; }
.wallet-btc-eq svg { width: 12px; height: 12px; }
.wallet-pnl-row {
  display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-secondary);
  margin-top: var(--space-3); font-weight: 600;
}
.wallet-pnl-row strong { color: var(--text-primary); }
.wallet-pnl-row strong.up { color: var(--success); }
.wallet-pnl-row strong.down { color: var(--danger); }
.wallet-pnl-row svg { width: 14px; height: 14px; color: var(--text-muted); margin-left: 2px; }

.wallet-two-col { display: flex; gap: var(--space-8); margin: var(--space-4) 0 var(--space-5); }

.holding-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-color); }
.holding-row:last-child { border-bottom: none; }
.holding-icon { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; }
.holding-info { flex: 1; min-width: 0; }
.holding-symbol { font-weight: 700; font-size: var(--fs-base); }
.holding-qty { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1px; }
.holding-qty.up { color: var(--success); }
.holding-qty.down { color: var(--danger); }
.holding-values { text-align: right; flex-shrink: 0; }
.holding-qty-value { font-weight: 700; font-size: var(--fs-base); }
.holding-usd-value { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 1px; }

.tx-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-color); }
.tx-row:last-child { border-bottom: none; }
.tx-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tx-icon svg { width: 18px; height: 18px; }
.tx-info { flex: 1; min-width: 0; }
.tx-type { font-weight: 700; font-size: var(--fs-base); }
.tx-date { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.tx-right { text-align: right; flex-shrink: 0; }
.tx-amount { font-weight: 700; font-size: var(--fs-base); }
.tx-amount.pos { color: var(--success); }
.tx-amount.neg { color: var(--danger); }

/* ---------- Dépôt / paiement ---------- */
.payment-row {
  display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4);
  background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  margin-bottom: var(--space-3);
}
.payment-icon { width: 46px; height: 46px; border-radius: var(--radius-md); overflow: hidden; flex-shrink: 0; background: #fff; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; }
.payment-row:hover .payment-icon { border-color: rgba(var(--brand-primary-rgb), .5); }
.payment-row { transition: border-color .15s ease; }
.payment-row:hover { border-color: rgba(var(--brand-primary-rgb), .4); }
.payment-icon svg { width: 100%; height: 100%; }
.payment-name { font-weight: 700; font-size: var(--fs-base); }
.payment-desc { font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }
.payment-chevron { color: var(--text-muted); flex-shrink: 0; }
.payment-chevron svg { width: 18px; height: 18px; }
.help-card { display: flex; align-items: flex-start; gap: var(--space-3); background: var(--info-bg); border-color: transparent; }
.help-card svg { width: 22px; height: 22px; color: var(--info); flex-shrink: 0; }

/* ---------- Retrait ---------- */
.summary-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) 0; font-size: var(--fs-sm); color: var(--text-secondary); }
.summary-row .v { color: var(--success); font-weight: 700; }
.info-note { display: flex; align-items: center; gap: var(--space-2); color: var(--text-muted); font-size: 11.5px; margin-top: var(--space-3); }
.info-note svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ---------- Profil ---------- */
.profile-header { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: var(--space-6); }
.profile-avatar-wrap { position: relative; margin-bottom: var(--space-3); }
.profile-avatar { width: 88px; height: 88px; }
.profile-avatar svg { width: 46px; height: 46px; color: var(--text-muted); }
.avatar-edit { position: absolute; bottom: 0; right: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--info); display: flex; align-items: center; justify-content: center; border: 3px solid var(--bg-primary); }
.avatar-edit svg { width: 14px; height: 14px; color: #fff; }
.profile-name { font-size: var(--fs-lg); font-weight: 700; }
.profile-meta { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 2px; }
.menu-list { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; }
.menu-row { display: flex; align-items: center; gap: var(--space-3); padding: 15px var(--space-4); border-bottom: 1px solid var(--border-color); }
.menu-row:last-child { border-bottom: none; }
.menu-row svg { width: 19px; height: 19px; color: var(--text-secondary); flex-shrink: 0; }
.menu-row-label { flex: 1; font-size: var(--fs-base); }
.menu-row-value { color: var(--info); font-size: var(--fs-sm); margin-right: 4px; }
.menu-row-chevron { color: var(--text-muted); flex-shrink: 0; }
.menu-row-chevron svg { width: 17px; height: 17px; color: var(--text-muted); }

/* ---------- Support ---------- */
.support-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-5) 0; }
.support-shortcut { text-align: center; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-2); }
.support-shortcut-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--info-bg); color: var(--info); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-2); }
.support-shortcut-icon svg { width: 19px; height: 19px; }
.support-shortcut-label { font-size: 11.5px; font-weight: 600; }
.ticket-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) 0; border-bottom: 1px solid var(--border-color); }
.ticket-row:last-child { border-bottom: none; }
.ticket-subject { font-weight: 600; font-size: var(--fs-base); }
.ticket-meta { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.ticket-meta .id { color: var(--info); }
.ticket-date { font-size: 11.5px; color: var(--text-muted); flex-shrink: 0; }
