/* ══════════════════════════════════════════════════
   broker.css — Dashboard Démarcheur NoraDrops
   Thème : Dark Premium / Gold
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;600&family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --gold: #f0b90b;
  --gold-dim: #c99b09;
  --gold-glow: rgba(240,185,11,0.15);
  --gold-border: rgba(240,185,11,0.25);
  --bg: #0a0a0c;
  --bg-card: #111115;
  --bg-card2: #16161c;
  --bg-hover: #1c1c24;
  --text: #e8e8f0;
  --text-muted: #6b6b80;
  --text-dim: #9999b0;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --font-mono: 'Roboto Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typographie chiffres ── */
.bnb-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.3px;
}

.usd-sub {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0;
}

/* ── Layout principal ── */
.broker-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* ── Header page ── */
.broker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--gold-border);
  margin-bottom: 32px;
}

.broker-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.broker-logo-badge {
  width: 44px; height: 44px;
  background: var(--gold);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.broker-title {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}
.broker-title span { color: var(--gold); }

.broker-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.broker-code-badge {
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  padding: 8px 16px;
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.broker-code-badge:hover { background: rgba(240,185,11,0.22); }

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.stat-card:hover { border-color: var(--gold-border); transform: translateY(-2px); }
.stat-card.highlight { border-color: var(--gold-border); background: var(--bg-card2); }
.stat-card.highlight::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.stat-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--gold-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  margin-bottom: 14px;
}

.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}
/* Stat CA BNB : utilise Roboto Mono */
.stat-value.gold {
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Commission banner ── */
.commission-banner {
  background: linear-gradient(135deg, #1a1600, #0f0f00);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.commission-info { display: flex; flex-direction: column; gap: 2px; }
.commission-label { font-size: 12px; color: var(--gold-dim); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.commission-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 30px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.commission-bnb { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.commission-right { display: flex; align-items: center; gap: 12px; }
.commission-note { font-size: 12px; color: var(--text-muted); text-align: right; max-width: 200px; line-height: 1.4; }

/* ── Sections et grille principale ── */
.broker-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) { .broker-grid { grid-template-columns: 1fr; } }

.section-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.section-title .icon { font-size: 16px; }

/* ── Bouton créer commande ── */
.btn-create {
  background: var(--gold);
  color: #000;
  border: none; border-radius: var(--radius-sm);
  padding: 9px 16px;
  font-family: 'Syne', sans-serif;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex; align-items: center; gap: 6px;
}
.btn-create:hover { background: #ffd020; transform: scale(1.03); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  font-size: 12px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--gold-border); color: var(--gold); }

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px; cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.1); }

/* ── Tableau des commandes ── */
.orders-list { padding: 0; }

.order-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.order-item:hover { background: var(--bg-hover); }
.order-item:last-child { border-bottom: none; }

.order-service { font-size: 13px; font-weight: 500; color: var(--text); }
.order-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.order-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}
.order-amount-usd {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  font-family: 'DM Sans', sans-serif;
}
.order-comm {
  font-size: 10px;
  color: var(--success);
  opacity: 0.8;
  margin-top: 1px;
  font-family: var(--font-mono);
}

.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.status-pending_payment { background: rgba(245,158,11,0.1); color: var(--warning); }
.status-paid            { background: rgba(59,130,246,0.1); color: var(--info); }
.status-published       { background: rgba(34,197,94,0.1);  color: var(--success); }
.status-expired         { background: rgba(107,107,128,0.1); color: var(--text-muted); }
.status-cancelled       { background: rgba(239,68,68,0.1);  color: var(--danger); }

.order-actions { display: flex; gap: 6px; align-items: center; }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}
.empty-state .empty-icon { font-size: 32px; margin-bottom: 10px; opacity: 0.4; }

/* ── Leaderboard ── */
.leaderboard-list { padding: 0; }

.lb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}
.lb-item:hover { background: var(--bg-hover); }
.lb-item:last-child { border-bottom: none; }
.lb-item.me { background: var(--gold-glow); }

.lb-rank {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  min-width: 28px;
  text-align: center;
}
.lb-rank.gold-rank { color: var(--gold); }
.lb-rank.silver-rank { color: #c0c0c0; }
.lb-rank.bronze-rank { color: #cd7f32; }
.lb-rank.default-rank { color: var(--text-muted); font-size: 14px; }

.lb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
}

.lb-name { font-size: 13px; font-weight: 500; color: var(--text); flex: 1; }
.lb-orders { font-size: 11px; color: var(--text-muted); }

.lb-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  text-align: right;
}
.lb-amount-usd {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  text-align: right;
  margin-top: 1px;
}

/* ── Modale créer commande ── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 28px;
  width: min(520px, calc(100vw - 40px));
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  margin-bottom: 24px;
  display: flex; align-items: center; gap: 8px;
}
.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none;
  color: var(--text-muted); font-size: 20px;
  cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

/* ── Formulaire ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 7px;
}
.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 10px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
  outline: none;
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control option { background: var(--bg-card); }

.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin-bottom: 4px;
}
.service-card {
  background: var(--bg);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.service-card:hover { border-color: var(--gold-border); }
.service-card.selected { border-color: var(--gold); background: var(--gold-glow); }
.service-card input[type="radio"] { display: none; }
.service-icon { font-size: 22px; margin-bottom: 6px; }
.service-name { font-size: 12px; font-weight: 600; color: var(--text); }
.service-price {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.service-price-usd {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
  font-family: 'DM Sans', sans-serif;
}

.price-preview {
  background: var(--bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 16px;
}
.price-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; margin-bottom: 6px; color: var(--text-dim);
  gap: 8px;
}
.price-row:last-child { margin-bottom: 0; color: var(--text); font-weight: 600; }
.price-row .price-val {
  text-align: right;
  display: flex; flex-direction: column; align-items: flex-end; gap: 1px;
}
.price-row .price-val .bnb-part {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.price-row .price-val .usd-part {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
}
.price-total { border-top: 1px solid var(--gold-border); padding-top: 10px; margin-top: 8px; }

.btn-submit {
  width: 100%; padding: 13px;
  background: var(--gold); color: #000;
  border: none; border-radius: var(--radius-sm);
  font-family: 'Syne', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; margin-top: 20px;
  transition: background 0.2s, transform 0.15s;
}
.btn-submit:hover { background: #ffd020; transform: scale(1.01); }
.btn-submit:disabled { background: #3a3a00; color: #666; cursor: not-allowed; transform: none; }

/* ── Modale résultat commande (lien de paiement) ── */
.pay-link-box {
  background: var(--bg);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 16px 0;
}
.pay-link-url {
  font-family: monospace;
  font-size: 13px; color: var(--gold);
  word-break: break-all; margin-bottom: 10px;
}
.btn-copy {
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 7px 14px; border-radius: 6px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background 0.2s;
}
.btn-copy:hover { background: rgba(240,185,11,0.25); }
.btn-copy.copied { color: var(--success); border-color: rgba(34,197,94,0.3); }

.amount-display {
  text-align: center; padding: 20px 0;
}
.amount-big {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -1px;
  line-height: 1.2;
}
.amount-big-usd {
  font-size: 14px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  margin-top: 5px;
}
.amount-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ── Modale publication ── */
.publish-form { padding: 0; }
.publish-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}
.publish-tab {
  padding: 10px 18px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.publish-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

.upload-zone {
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 28px;
  text-align: center; cursor: pointer;
  transition: border-color 0.2s;
}
.upload-zone:hover { border-color: var(--gold-border); }
.upload-zone-icon { font-size: 28px; margin-bottom: 8px; opacity: 0.5; }
.upload-zone-text { font-size: 13px; color: var(--text-muted); }
.upload-zone input { display: none; }

/* ── Candidature ── */
.apply-section {
  max-width: 480px; margin: 60px auto;
  text-align: center;
}
.apply-icon { font-size: 52px; margin-bottom: 20px; }
.apply-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px; font-weight: 800;
  margin-bottom: 10px;
}
.apply-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 30px; }

.apply-features {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 30px; text-align: left;
}
.apply-feature {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: 13px;
}
.apply-feature-icon { font-size: 18px; }

.pending-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  color: var(--warning); border-radius: 8px;
  padding: 12px 20px; font-size: 13px; font-weight: 600;
  margin-top: 16px;
}

/* ── Barre de grade (tier bar) ── */
.tier-bar-wrap {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.tier-bar-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--tier-color, var(--gold));
  opacity: 0.7;
}

.tier-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.tier-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tier-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
  position: relative;
}
.tier-badge::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 12px;
  background: var(--tier-color, var(--gold));
  opacity: 0.1;
}

.tier-info-text {}
.tier-name {
  font-family: 'Syne', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--tier-color, var(--gold));
  line-height: 1;
  margin-bottom: 3px;
}
.tier-sales-count {
  font-size: 12px;
  color: var(--text-muted);
}

.tier-commission-block {
  text-align: right;
}
.tier-comm-rate {
  font-family: var(--font-mono);
  font-size: 32px; font-weight: 600;
  color: var(--tier-color, var(--gold));
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tier-comm-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Barre de progression */
.tier-progress-wrap {
  position: relative;
  margin-bottom: 10px;
}
.tier-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: visible;
  position: relative;
}
.tier-fill {
  height: 100%;
  border-radius: 4px;
  background: var(--tier-color, var(--gold));
  box-shadow: 0 0 10px var(--tier-color, var(--gold));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}
.tier-fill::after {
  content: '';
  position: absolute; right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--tier-color, var(--gold));
  box-shadow: 0 0 8px var(--tier-color, var(--gold));
}

/* Marqueurs des paliers */
.tier-milestones {
  position: absolute; top: 0; left: 0; right: 0; height: 100%;
  pointer-events: none;
}
.tier-milestone {
  position: absolute; top: -4px;
  width: 2px; height: 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 1px;
  transform: translateX(-50%);
}
.tier-milestone.reached {
  background: rgba(255,255,255,0.4);
}

/* Étapes des grades */
.tier-steps {
  display: flex;
  align-items: center;
  margin: 14px 0 12px;
  gap: 0;
}

.tier-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  opacity: 0.35;
  transition: opacity 0.3s;
  position: relative;
}
.tier-step.done     { opacity: 0.6; }
.tier-step.active   { opacity: 1; }
.tier-step.upcoming { opacity: 0.5; }

.tier-step-dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 2px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
  position: relative; z-index: 1;
}
.tier-step.done   .tier-step-dot {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
}
.tier-step.active .tier-step-dot {
  border-color: var(--step-color);
  background: color-mix(in srgb, var(--step-color) 15%, transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--step-color) 50%, transparent);
}
.tier-step.upcoming .tier-step-dot {
  border-color: rgba(255,255,255,0.15);
  border-style: dashed;
}

.tier-step-name {
  font-family: 'Syne', sans-serif;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-dim);
}
.tier-step.active .tier-step-name { color: var(--step-color); }

.tier-step-pts  { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.tier-step-comm {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  color: var(--text-muted);
}
.tier-step.active .tier-step-comm { color: var(--step-color); }
.tier-step.done   .tier-step-comm { color: var(--success); }

/* Ligne entre les steps */
.tier-step-line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.06);
  margin-bottom: 24px; /* aligne avec les dots */
  border-radius: 1px;
}

@media (max-width: 600px) {
  .tier-step-pts  { display: none; }
  .tier-step-comm { display: none; }
  .tier-step-dot  { width: 28px; height: 28px; font-size: 13px; }
}

/* Supprimer les anciens styles labels (remplacés par steps) */

/* Footer : prochain objectif */
.tier-next-info {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.tier-next-text { color: var(--text-muted); }
.tier-next-text strong { color: var(--text); }
.tier-next-bonus {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px; color: var(--text-dim);
  display: flex; align-items: center; gap: 5px;
}
.tier-next-bonus.highlight {
  background: rgba(240,185,11,0.08);
  border-color: var(--gold-border);
  color: var(--gold);
}

@media (max-width: 600px) {
  .tier-bar-top { flex-wrap: wrap; }
  .tier-comm-rate { font-size: 26px; }
  .tier-labels { display: none; }
}

/* ── Barre de grade (tier bar) ── */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--bg-card2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-size: 14px; color: var(--text);
  box-shadow: var(--shadow);
  z-index: 9999;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none; max-width: 320px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }

/* ── Responsive ── */
@media (max-width: 600px) {
  .broker-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .commission-banner { flex-direction: column; align-items: flex-start; }
  .amount-big { font-size: 26px; }
}

/* ── Icônes SVG système ─────────────────────────────────── */
.svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.svg-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stat card icons */
.stat-icon.svg-icon {
  width: 28px; height: 28px;
  color: var(--gold);
  opacity: 0.7;
  margin-bottom: 4px;
}

/* Section title icons */
.section-title .icon.svg-icon {
  width: 18px; height: 18px;
  color: var(--gold);
  opacity: 0.8;
}

/* Apply features icons */
.apply-feature-icon.svg-icon {
  width: 32px; height: 32px;
  color: var(--gold);
}

/* Logo badge */
.broker-logo-badge.svg-icon {
  color: var(--gold);
}
.broker-logo-badge svg {
  width: 52px; height: 52px;
}

/* Service icons modale */
.service-icon.svg-icon {
  width: 36px; height: 36px;
  color: var(--gold);
  transition: color 0.2s;
}
.service-option.selected .service-icon.svg-icon,
.service-option:hover .service-icon.svg-icon {
  color: #fff;
}

/* Order service label icon inline */
.svc-icon.svg-icon {
  width: 14px; height: 14px;
  vertical-align: -2px;
  color: var(--gold);
  opacity: 0.75;
}

/* Leaderboard rank SVG */
.rank-svg.svg-icon {
  width: 20px; height: 20px;
}

/* Grade badge SVG (tier bar) */
.tier-badge svg {
  width: 40px; height: 40px;
}
.tier-step-dot svg {
  width: 18px; height: 18px;
}