/* ==========================================================================
   ECN GROUP - DASHBOARD & AUTHENTICATION DESIGN SYSTEM
   Thème : Luxe Haute Finance, Noir Obsidienne & Or 24K Métallique
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. BOUTONS UTILITAIRES DASHBOARD (ZÉRO BOUTON BLANC)
   -------------------------------------------------------------------------- */
button.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  text-decoration: none;
  background: transparent;
  color: var(--text-primary);
}

button.btn-outline, a.btn-outline, .btn-outline {
  background: rgba(18, 23, 36, 0.85) !important;
  color: var(--gold-light) !important;
  border: 1px solid var(--gold-border) !important;
  backdrop-filter: blur(12px);
}

button.btn-outline:hover, a.btn-outline:hover, .btn-outline:hover {
  background: rgba(212, 175, 55, 0.18) !important;
  border-color: var(--gold-primary) !important;
  color: #ffffff !important;
  box-shadow: var(--gold-glow-sm) !important;
  transform: translateY(-2px);
}

button.btn-primary, a.btn-primary, .btn-primary {
  background: var(--gold-gradient) !important;
  color: #050608 !important;
  box-shadow: 0 4px 18px rgba(212, 175, 55, 0.35) !important;
  font-weight: 700 !important;
  border: none !important;
}

button.btn-primary:hover, a.btn-primary:hover, .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(212, 175, 55, 0.55) !important;
  background: linear-gradient(135deg, #fff0c2 0%, #e0b842 50%, #c4962c 100%) !important;
}

/* --------------------------------------------------------------------------
   1. STYLES SPÉCIFIQUES À LA PAGE LOGIN / INSCRIPTION (login.html)
   -------------------------------------------------------------------------- */
.auth-page-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--bg-deep);
  position: relative;
  overflow-x: hidden;
}

.auth-header {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 10;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--gold-border);
  transition: all var(--transition-fast);
}

.auth-back-link:hover {
  color: var(--gold-light);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  transform: translateX(-3px);
}

.auth-main-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 5;
}

.auth-card {
  background: rgba(12, 16, 24, 0.88);
  border: 1px solid var(--gold-border-bright);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 44px);
  width: 100%;
  max-width: 490px;
  box-shadow: var(--shadow-elevated), var(--gold-glow-md);
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  height: 58px;
  width: auto;
  margin: 0 auto 14px auto;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.auth-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
}

.auth-sub {
  font-size: 0.85rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-surface-2);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.2);
  margin-bottom: 28px;
}

.auth-tab-btn {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-tab-btn.active {
  background: var(--gold-gradient);
  color: #050608;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.auth-pane {
  display: none;
  animation: fadeIn 0.35s ease;
}

.auth-pane.active {
  display: block;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.auth-forgot {
  color: var(--gold-light);
  transition: color var(--transition-fast);
}

.auth-forgot:hover {
  color: #ffffff;
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(212, 175, 55, 0.18);
}

.auth-divider span {
  padding: 0 14px;
}

.btn-coldwallet-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 20px;
  background: rgba(18, 23, 34, 0.8);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-coldwallet-auth:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: var(--gold-glow-sm);
}

.auth-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   2. DASHBOARD LAYOUT (dashboard.html)
   -------------------------------------------------------------------------- */
.dashboard-body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow-x: hidden;
}

/* Sidebar Gauche de Navigation */
.dashboard-sidebar {
  width: 280px;
  background: #080a10;
  border-right: 1px solid var(--gold-border);
  height: 100vh;
  height: 100dvh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sidebar-header {
  padding: 24px 20px 18px 20px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-logo {
  height: 42px;
  width: auto;
}

.sidebar-brand-text {
  display: flex;
  flex-direction: column;
}

.sidebar-brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  color: var(--gold-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Profil Résumé dans la Sidebar */
.sidebar-user-card {
  margin: 16px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid var(--gold-primary);
  flex-shrink: 0;
}

.user-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #080a10;
  border-radius: 50%;
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-badge {
  font-size: 0.7rem;
  color: var(--gold-light);
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Menu de Navigation de la Sidebar */
.sidebar-nav {
  flex: 1;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-title {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 12px 12px 6px 12px;
  font-weight: 700;
}

.sidebar-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.sidebar-nav-btn svg {
  color: var(--gold-muted);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.sidebar-nav-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
}

.sidebar-nav-btn:hover svg {
  color: var(--gold-primary);
}

.sidebar-nav-btn.active {
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-light);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--gold-primary);
}

.sidebar-nav-btn.active svg {
  color: var(--gold-light);
}

.sidebar-badge-count {
  margin-left: auto;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--gold-primary);
  color: #050608;
  font-weight: 700;
}

.sidebar-footer {
  padding: 16px 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
}

.btn-sidebar-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: #ef4444;
}

/* --------------------------------------------------------------------------
   3. CONTENU PRINCIPAL DU DASHBOARD & TOPBAR
   -------------------------------------------------------------------------- */
.dashboard-main {
  flex: 1;
  margin-left: 280px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  position: relative;
}

/* Topbar */
.dashboard-topbar {
  height: 75px;
  background: rgba(8, 10, 16, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gold-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 900;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-page-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.referral-quick-box {
  display: none;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--gold-border);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
}

@media (min-width: 900px) {
  .referral-quick-box {
    display: flex;
  }
}

.referral-link-preview {
  color: var(--gold-light);
  font-family: monospace;
  font-weight: 600;
}

.btn-copy-ref {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color var(--transition-fast);
}

.btn-copy-ref:hover {
  color: var(--gold-primary);
}

.topbar-pack-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-topbar-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.btn-topbar-site:hover {
  color: #fff;
  border-color: var(--gold-border);
  background: rgba(212, 175, 55, 0.08);
}

/* Bouton Burger Mobile pour la Sidebar */
.dashboard-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--gold-light);
  cursor: pointer;
  padding: 6px;
}

/* Zone de Contenu Dynamique */
.dashboard-content-area {
  flex: 1;
  padding: 32px;
}

.dashboard-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.dashboard-tab-panel.active {
  display: block;
}

/* --------------------------------------------------------------------------
   4. COMPOSANTS : VUE D'ENSEMBLE (OVERVIEW)
   -------------------------------------------------------------------------- */
.welcome-hero-card {
  background: linear-gradient(135deg, rgba(22, 28, 44, 0.9) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid var(--gold-border-bright);
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.welcome-hero-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.welcome-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: #ffffff;
  margin-bottom: 8px;
}

.welcome-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 550px;
}

.welcome-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Grille de Métriques KPIs */
.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.kpi-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: var(--gold-glow-sm);
  background: var(--bg-surface-2);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kpi-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient-soft);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.kpi-subtitle {
  font-size: 0.8rem;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   5. COMPOSANTS : MON PROFIL & SÉLECTEUR DE PACK
   -------------------------------------------------------------------------- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 992px) {
  .profile-grid {
    grid-template-columns: 1fr 1.6fr;
  }
}

.profile-card-main {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold-primary);
  margin: 0 auto 18px auto;
  overflow: hidden;
  box-shadow: var(--gold-glow-md);
}

.profile-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.profile-id-tag {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-family: monospace;
  margin-bottom: 20px;
}

.profile-details-list {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 20px;
  margin-top: 20px;
}

.profile-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.profile-detail-label {
  color: var(--text-muted);
}

.profile-detail-value {
  color: #ffffff;
  font-weight: 600;
}

/* Grille des 3 Packs Proposés */
.packs-selection-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pack-tier-row {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  transition: all var(--transition-normal);
}

.pack-tier-row.current-active {
  border: 2px solid var(--gold-primary);
  background: linear-gradient(135deg, rgba(22, 28, 44, 0.8) 0%, rgba(10, 13, 20, 0.95) 100%);
  box-shadow: var(--gold-glow-sm);
}

.pack-tier-info h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.pack-tier-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold-light);
}

.pack-tier-features {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   6. COMPOSANTS : ARBRE MLM / RÉSEAU D'AFFILIATION
   -------------------------------------------------------------------------- */
.mlm-stats-banner {
  background: var(--bg-surface-card);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.mlm-ref-share-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface-2);
  border: 1px solid var(--gold-border-bright);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  flex: 1;
  max-width: 480px;
}

.mlm-ref-input {
  background: transparent;
  border: none;
  color: var(--gold-light);
  font-family: monospace;
  font-size: 0.9rem;
  width: 100%;
  outline: none;
}

/* Visualisation Arborescente MLM */
.mlm-tree-wrapper {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 36px 20px;
  overflow-x: auto;
  text-align: center;
  margin-bottom: 30px;
}

.mlm-tree-node-card {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  min-width: 180px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: all var(--transition-fast);
}

.mlm-tree-node-card:hover {
  border-color: var(--gold-light);
  transform: translateY(-3px);
  box-shadow: var(--gold-glow-sm);
}

.mlm-tree-node-card.root-node {
  border-color: var(--gold-primary);
  background: var(--gold-gradient-soft);
}

.mlm-tree-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  margin-bottom: 8px;
  overflow: hidden;
}

.mlm-tree-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mlm-tree-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.mlm-tree-tier {
  font-size: 0.72rem;
  color: var(--gold-light);
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.mlm-connector-line {
  width: 2px;
  height: 28px;
  background: var(--gold-primary);
  margin: 0 auto;
}

.mlm-branch-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. COMPOSANTS : COMMISSIONS & RETRAITS
   -------------------------------------------------------------------------- */
.commissions-balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 30px;
}

.comm-balance-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 26px;
  position: relative;
}

.comm-balance-card.highlight {
  border-color: var(--gold-primary);
  background: linear-gradient(135deg, #151a28 0%, #0b0e16 100%);
  box-shadow: var(--gold-glow-sm);
}

.comm-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold-light);
  margin: 8px 0;
}

/* Tableau Historique des Commissions */
.dashboard-table-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow-x: auto;
}

.dashboard-table-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.dashboard-table th {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.dashboard-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.dashboard-table tr:hover td {
  background: rgba(212, 175, 55, 0.03);
}

.status-badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge-pending {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  font-size: 0.75rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. COMPOSANTS : FORMATIONS & MARKETPLACE
   -------------------------------------------------------------------------- */
.course-featured-player {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 30px;
}

.course-player-screen {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  margin-bottom: 18px;
}

.course-player-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.btn-play-course {
  position: absolute;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: none;
  color: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--gold-glow-md);
  transition: transform var(--transition-fast);
}

.btn-play-course:hover {
  transform: scale(1.1);
}

.course-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.course-item-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.course-item-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: var(--shadow-card);
}

.course-card-body {
  padding: 20px;
}

.course-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 12px 0;
}

.course-progress-fill {
  height: 100%;
  background: var(--gold-gradient);
  border-radius: var(--radius-pill);
}

/* Grille Marketplace Membre */
.market-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
}

.market-card {
  background: var(--bg-surface-1);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-light);
  box-shadow: var(--gold-glow-sm);
}

.market-card-media {
  height: 190px;
  overflow: hidden;
  position: relative;
}

.market-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.market-card:hover .market-card-media img {
  transform: scale(1.05);
}

.market-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* --------------------------------------------------------------------------
   9. RESPONSIVE DASHBOARD (MOBILE & TABLETTE)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.9);
  }

  .dashboard-main {
    margin-left: 0;
  }

  .dashboard-mobile-toggle {
    display: block;
  }

  .dashboard-content-area {
    padding: 20px 16px;
  }

  .dashboard-topbar {
    padding: 0 16px;
  }
}
