/* ==========================================================================
   Styles Admin - Consolidation des styles pour toutes les pages admin
   ========================================================================== */

/* ==========================================================================
   Navigation et Breadcrumb
   ========================================================================== */

.breadcrumb {
  margin-bottom: 1.5rem;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Tri des colonnes
   ========================================================================== */

.sortable-header {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sortable-header:hover {
  color: #374151;
}

.sortable-header.active {
  color: var(--primary);
}

.sort-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 4px;
}

.sort-icon.inactive {
  opacity: 0.3;
}

.sortable-header:hover .sort-icon.inactive {
  opacity: 0.6;
}

/* ==========================================================================
   Tables spécifiques
   ========================================================================== */

.data-table th {
  cursor: pointer;
  user-select: none;
}

/* Styles pour les lignes d'échec */
.failed-row {
  background: #fef2f2;
}

.failed-row:hover {
  background: #fee2e2;
}

/* ==========================================================================
   Badges - Déjà dans design_system.css, juste les variantes manquantes
   ========================================================================== */

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-danger {
  background: var(--danger-light, #fee2e2);
  color: var(--danger);
}

.badge-neutral {
  background: #f3f4f6;
  color: var(--text-muted);
}

/* ==========================================================================
   User Info et Avatars
   ========================================================================== */

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-small {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Formulaires spécifiques admin
   ========================================================================== */

.role-form {
  margin: 0;
}

.role-select {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.role-select:hover {
  border-color: #d1d5db;
}

.role-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(238, 97, 35, 0.1);
}

/* ==========================================================================
   Date et heure
   ========================================================================== */

.datetime {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.time {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   Liens utilisateur
   ========================================================================== */

.user-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.user-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   États vides
   ========================================================================== */

.empty-state {
  padding: 3rem;
  text-align: center;
  color: var(--text-muted);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-wrapper {
  padding: 1rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   Statistiques spécifiques
   ========================================================================== */

.stat-mini.success {
  border-left: 4px solid var(--success);
}

.stat-mini.danger {
  border-left: 4px solid #ef4444;
}

/* ==========================================================================
   Grilles de statistiques pour les pages admin
   ========================================================================== */

.users-stats,
.activities-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 1400px;
  margin: 0 auto 2rem;
  padding: 0;
}

/* ==========================================================================
   Grilles d'informations
   ========================================================================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

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

.info-value {
  font-size: 16px;
  color: var(--text-dark);
  font-weight: 500;
}

/* ==========================================================================
   Détails utilisateur
   ========================================================================== */

.user-detail-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.user-avatar-large {
  width: 80px;
  height: 80px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 600;
}

.user-header-info {
  flex: 1;
}

.user-header-info h2 {
  margin: 0 0 0.5rem 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
}

.user-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.user-actions {
  display: flex;
  gap: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.detail-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.detail-card-title {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  color: var(--text-dark);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-list li:last-child {
  border-bottom: none;
}

.card-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.link-action {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.link-action:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Liste d'activités
   ========================================================================== */

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.login-activity-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.login-activity-item:last-child {
  border-bottom: none;
}

.login-activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-activity-icon.success {
  background: #d1fae5;
  color: #065f46;
}

.login-activity-icon.failure {
  background: #fee2e2;
  color: var(--danger);
}

.login-activity-content {
  flex: 1;
  font-size: 14px;
}

.login-activity-content time {
  color: var(--text-muted);
  font-size: 12px;
}

.empty-message {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  cursor: pointer;
}

.modal-content {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-width: 500px;
  width: 90%;
}

.modal-title {
  margin: 0 0 1rem 0;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}

.modal-description {
  margin-bottom: 1rem;
  color: var(--text);
}

.modal-code-block {
  background: #f3f4f6;
  padding: 1rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 16px;
  text-align: center;
  margin-bottom: 1rem;
}

.modal-warning {
  background: #fef3c7;
  color: #92400e;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-warning::before {
  content: "⚠️";
  font-size: 16px;
}

.modal-button {
  background: #ff6f00;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
  transition: background 0.2s;
}

.modal-button:hover {
  background: #e65100;
}

.modal-button:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Live Streaming - Picture in Picture
   ========================================================================== */

.webcam-pip {
  position: absolute;
  bottom: 80px;
  right: 20px;
  width: 200px;
  height: 150px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 10;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.webcam-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webcam-pip.active {
  display: block;
  animation: pipFadeIn 0.3s ease;
}

@keyframes pipFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Make sure webcam container has relative position */
.webcam-container {
  position: relative;
}

/* Viewer container also needs relative position for PiP */
#viewerContainer {
  position: relative;
}

/* Viewer-specific PiP adjustments */
#viewerWebcamPip {
  display: none;
}

#viewerWebcamPip.active {
  display: block;
}

/* PiP notice for viewers */
.pip-notice {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pip-notice .btn-sm {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: background 0.2s;
}

.pip-notice .btn-sm:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .users-stats,
  .activities-stats {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 16px;
  }
  
  .breadcrumb {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .users-stats,
  .activities-stats {
    grid-template-columns: 1fr;
  }
  
  .user-detail-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .user-header-info {
    text-align: center;
  }
  
  .user-badges {
    justify-content: center;
  }
  
  .user-actions {
    width: 100%;
    flex-direction: column;
  }
  
  .user-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
}
/* ==========================================================================
   Styles spécifiques à la page permissions
   ========================================================================== */

.permissions-table-wrapper {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  margin-bottom: 2rem;
}

.permissions-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.permissions-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.permissions-table thead {
  background: var(--bg-light);
}

.permissions-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #374151;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.permissions-table th:first-child {
  width: 25%;
}

.permissions-table th.role-header {
  text-align: center;
  width: 25%;
}

.permissions-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition-fast);
}

.permissions-table tbody tr:last-child {
  border-bottom: none;
}

.permissions-table td {
  padding: 16px;
  vertical-align: middle;
}

.resource-name {
  font-weight: 500;
  color: var(--text-dark);
}

.resource-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.resource-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.resource-icon svg {
  width: 100%;
  height: 100%;
}

.permission-cell {
  text-align: center;
}

.permission-control {
  padding: 0 20px;
}

/* Barre de permissions */
.permission-bar {
  position: relative;
  margin: 12px 0;
}

.permission-track {
  height: 6px;
  background: var(--bg-light);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.permission-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 3px;
}

.permission-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  gap: 2px;
}

.permission-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: white;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.permission-btn.active {
  background: white;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px var(--secondary), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.permission-btn.active::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--dot-color, var(--secondary));
  border-radius: 50%;
}

.permission-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 111, 0, 0.2);
}

.permission-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
  font-weight: 500;
  min-height: 20px;
}

/* Légende des permissions */
.permissions-legend {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.permissions-legend h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.legend-items {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.legend-color {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.legend-text {
  font-size: 14px;
  color: #4b5563;
}

.legend-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
  .permissions-table-wrapper::after {
    content: '';
    position: absolute;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8));
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s;
  }
  
  .permissions-table-container {
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
    margin: 0 -1rem;
    padding: 0 1rem;
  }
  
  .permissions-table {
    min-width: 500px;
  }
  
  .permissions-table th {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .permissions-table th.role-header {
    min-width: 120px;
  }
  
  .permissions-table td {
    padding: 12px 8px;
  }
  
  .resource-info {
    gap: 8px;
  }
  
  .resource-icon {
    width: 20px;
    height: 20px;
  }
  
  .permission-control {
    padding: 0 5px;
  }
  
  .permission-bar {
    margin: 8px 0;
  }
  
  .permission-btn {
    width: 18px;
    height: 18px;
  }
  
  .permission-btn.active::after {
    width: 6px;
    height: 6px;
  }
  
  .permission-label {
    font-size: 11px;
  }
  
  .permissions-legend {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .permissions-legend h3 {
    font-size: 16px;
  }
  
  .legend-items {
    gap: 0.75rem;
  }
  
  .legend-item {
    flex-wrap: wrap;
  }
  
  .legend-color {
    width: 20px;
    height: 20px;
  }
  
  .legend-text {
    font-size: 13px;
    flex: 1;
    min-width: 0;
  }
  
  .legend-note {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .permissions-table {
    min-width: 400px;
  }
  
  .permissions-table th,
  .permissions-table td {
    padding: 10px 5px;
  }
  
  .resource-icon {
    display: none;
  }
  
  .permission-buttons {
    gap: 2px;
  }
  
  .permission-btn {
    width: 16px;
    height: 16px;
  }
}

/* Classes pour les niveaux de permission */
.permission-fill-0 { width: 0%; background: #e5e7eb; }
.permission-fill-1 { width: 25%; background: #10b981; }
.permission-fill-2 { width: 50%; background: #3b82f6; }
.permission-fill-3 { width: 75%; background: #f59e0b; }
.permission-fill-4 { width: 100%; background: #ff6f00; }

.permission-btn.active-0 {
  border-color: #e5e7eb;
  box-shadow: 0 0 0 2px #e5e7eb, 0 1px 2px rgba(0, 0, 0, 0.05);
  --dot-color: #e5e7eb;
}

.permission-btn.active-1 {
  border-color: #10b981;
  box-shadow: 0 0 0 2px #10b981, 0 1px 2px rgba(0, 0, 0, 0.05);
  --dot-color: #10b981;
}

.permission-btn.active-2 {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6, 0 1px 2px rgba(0, 0, 0, 0.05);
  --dot-color: #3b82f6;
}

.permission-btn.active-3 {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px #f59e0b, 0 1px 2px rgba(0, 0, 0, 0.05);
  --dot-color: #f59e0b;
}

.permission-btn.active-4 {
  border-color: #ff6f00;
  box-shadow: 0 0 0 2px #ff6f00, 0 1px 2px rgba(0, 0, 0, 0.05);
  --dot-color: #ff6f00;
}

/* Couleurs de légende */
.legend-color-none { background: #e5e7eb; }
.legend-color-read { background: #10b981; }
.legend-color-create { background: #3b82f6; }
.legend-color-edit { background: #f59e0b; }
.legend-color-delete { background: #ff6f00; }
/* Dashboard Container */
.dashboard-container {
    display: flex;
    height: 100vh;
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Sidebar */
.sidebar {
    width: 72px;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
    position: relative;
    z-index: 1000;
    border-right: 1px solid #e5e7eb;
}

.sidebar:hover {
    width: 240px;
}

.sidebar-header {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-link {
    text-decoration: none;
}

.sidebar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar .logo:hover {
    background: #f5f7fa;
}

.logo-image {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 8px;
    overflow-y: auto;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px;
    color: #5e6c84;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border-radius: 8px;
}

.nav-link:hover {
    color: #172b4d;
    background: #f4f5f7;
}

.nav-item.active .nav-link {
    color: #ee6123;
    background: #fff5f1;
}

.nav-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-text {
    margin-left: 16px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar:hover .nav-text {
    opacity: 1;
}

.nav-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 16px 0;
}

/* Search Container */
.search-container {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #8a94a6;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #e7e9ee;
    border-radius: 8px;
    font-size: 14px;
    background: #f5f7fa;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #ee6123;
    background: #fff;
}

.search-input::placeholder {
    color: #8a94a6;
}

/* User Menu in Nav */
.nav-actions .user-menu {
    position: relative;
}

.nav-actions .user-button {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.nav-actions .user-button:hover {
    transform: scale(1.05);
}

.nav-actions .user-button:hover .user-avatar {
    box-shadow: 0 0 0 3px rgba(238, 97, 35, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #ee6123 0%, #ff6f00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    text-transform: uppercase;
    box-shadow: 0 2px 8px rgba(238, 97, 35, 0.3);
    transition: all 0.2s ease;
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 12px;
    background: #fff;
    border: 1px solid rgba(231, 233, 238, 0.8);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 240px;
    z-index: 1002;
    overflow: hidden;
}

/* Petite flèche en haut du dropdown */
.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 16px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(231, 233, 238, 0.8);
    border-top: 1px solid rgba(231, 233, 238, 0.8);
    transform: rotate(45deg);
}

@media (max-width: 480px) {
    .user-dropdown {
        right: -8px;
        min-width: 200px;
    }
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, #fff5f1 0%, #fff 100%);
    border-bottom: 1px solid #f3f4f6;
}

.user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-email {
    font-size: 15px;
    color: #2a2f3a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.user-plan {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 6px;
}

.badge-admin {
    background: #fee2e2;
    color: #dc2626;
}

.badge-manager {
    background: #dbeafe;
    color: #2563eb;
}

.badge-coach {
    background: #f3e8ff;
    color: #9333ea;
}

.badge-user {
    background: #f0f9ff;
    color: #0891b2;
}

.badge-guest {
    background: #f3f4f6;
    color: #6b7280;
}

.dropdown-divider {
    display: none;
}

.dropdown-menu {
    list-style: none;
    padding: 8px;
    margin: 0;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #2a2f3a;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-link:hover {
    background: #f5f7fa;
    color: #ee6123;
}

/* Style spécifique pour le bouton de déconnexion */
.dropdown-menu li:last-child .dropdown-link {
    color: #dc2626;
}

.dropdown-menu li:last-child .dropdown-link:hover {
    background: #fee2e2;
    color: #b91c1c;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Navigation */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #e7e9ee;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.sidebar-toggle {
    width: 40px;
    height: 40px;
    border: 1px solid #e7e9ee;
    background: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sidebar-toggle:hover {
    background: #f5f7fa;
}

.sidebar-toggle svg {
    width: 20px;
    height: 20px;
    stroke: #2a2f3a;
}

.nav-title {
    flex: 1;
}

.nav-title h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2a2f3a;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Button icon size */
.btn-icon {
    width: 16px;
    height: 16px;
}

/* Page Content */
.page-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
}

.welcome-section {
    margin-bottom: 32px;
}

.welcome-section h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 600;
    color: #2a2f3a;
}

.welcome-section p {
    margin: 0;
    font-size: 16px;
    color: #8a94a6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.stat-card {
    display: flex;
    gap: 16px;
}

.stat-card .stat-icon {
    background: #fff5f1;
    flex-shrink: 0;
}

.stat-card .stat-icon svg {
    stroke: #ee6123;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    color: #2a2f3a;
}

.stat-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #8a94a6;
}

.stat-link {
    color: #ee6123;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.stat-link:hover {
    transform: translateX(4px);
}

/* Desktop specific */
@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-container {
        width: 280px;
    }
}

/* Mobile and Tablet */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -240px;
        width: 240px;
        z-index: 1001;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
        height: 100vh;
    }
    
    .sidebar:hover {
        width: 240px;
    }
    
    .sidebar.mobile-open {
        left: 0;
    }
    
    .sidebar .nav-text,
    .sidebar .user-name,
    .sidebar .chevron-icon {
        opacity: 1;
    }
    
    .sidebar .user-button {
        justify-content: flex-start;
    }
    
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    /* Top Navigation Mobile */
    .top-nav {
        padding: 12px 16px;
        gap: 12px;
    }
    
    .nav-title {
        flex: 1;
        min-width: 0;
    }
    
    .nav-title h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .search-container {
        display: none;
    }
    
    .btn-primary {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .btn-primary .btn-icon {
        width: 14px;
        height: 14px;
    }
    
    .btn-primary .btn-text {
        display: none;
    }
    
    /* Page Content Mobile */
    .page-content {
        padding: 20px 16px;
    }
    
    .welcome-section h2 {
        font-size: 24px;
    }
    
    .welcome-section p {
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stat-content h3 {
        font-size: 16px;
    }
    
    .stat-content p {
        font-size: 13px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .nav-title h1 {
        font-size: 16px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .nav-actions .user-button {
        width: 36px;
        height: 36px;
    }
}

/* Mobile Overlay */
@media (max-width: 768px) {
    .dashboard-container::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .dashboard-container.sidebar-open::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    animation: fadeIn 0.4s ease forwards;
}

.stat-card:nth-child(2) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e7e9ee;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e7e9ee;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #172b4d;
}

.card-body {
    padding: 24px;
}

.card-danger {
    border-color: #fee;
}

.card-danger .card-header {
    background: #fef5f5;
    border-bottom-color: #fee;
}

.card-danger .card-title {
    color: #dc3545;
}

/* Forms */
.form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #5e6c84;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #e7e9ee;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #ee6123;
    box-shadow: 0 0 0 3px rgba(238, 97, 35, 0.1);
}

.form-help {
    display: block;
    font-size: 13px;
    color: #8a94a6;
    margin-top: 4px;
}

.form-section {
    margin: 32px 0;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #172b4d;
    margin-bottom: 8px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* Additional Button Styles */
.btn-secondary {
    background: #f5f7fa;
    color: #5e6c84;
    border: 1px solid #e7e9ee;
}

.btn-secondary:hover {
    background: #e7e9ee;
    color: #172b4d;
}

.btn-danger {
    background: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Content Wrapper */
.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-info {
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #bbdefb;
}

/* Carte streaming highlight */
.stat-card-primary {
    background: linear-gradient(135deg, #ee6123 0%, #d9551e 100%) !important;
    color: white !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 8px 25px rgba(238, 97, 35, 0.3) !important;
    transition: all 0.3s ease !important;
}

.stat-card-primary:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 35px rgba(238, 97, 35, 0.4) !important;
}

.stat-card-primary .stat-icon {
    background: rgba(255, 255, 255, 0.2) !important;
}

.stat-card-primary .stat-icon svg {
    stroke: white !important;
}

.stat-card-primary .stat-content h3 {
    color: white !important;
    font-size: 20px !important;
}

.stat-card-primary .stat-content p {
    color: rgba(255, 255, 255, 0.9) !important;
}

.stat-card-primary .stat-link {
    color: white !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-block !important;
    margin-top: 8px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.stat-card-primary .stat-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateX(0px) !important;
}
/* Devise Layout Styles */
.devise-body {
  background: linear-gradient(135deg, #FFF5F3 0%, #FDEAE6 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.devise-container {
  width: 100%;
  max-width: 450px;
  padding: 20px;
}

.devise-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.devise-header {
  background: #fff;
  padding: 30px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.devise-logo-link {
  display: inline-block;
}

.devise-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.devise-content {
  padding: 40px 30px;
}

.devise-content h2 {
  color: #332B26;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.devise-content p {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
}

/* Devise Form Styles */
.devise-form {
  margin-top: 20px;
}

.devise-form .field {
  margin-bottom: 20px;
}

.devise-form label {
  display: block;
  color: #332B26;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

.devise-form input[type="email"],
.devise-form input[type="password"],
.devise-form input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f9f9f9;
}

.devise-form input[type="email"]:focus,
.devise-form input[type="password"]:focus,
.devise-form input[type="text"]:focus {
  outline: none;
  border-color: #DE8C76;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(222, 140, 118, 0.1);
}

.devise-form input[type="checkbox"] {
  margin-right: 8px;
}

.devise-form .field_with_errors {
  display: inline;
}

.devise-form .field_with_errors input {
  border-color: #dc3545;
}

.devise-form em {
  font-size: 13px;
  color: #666;
  font-style: normal;
}

/* Devise Actions */
.devise-actions {
  margin-top: 30px;
}

.devise-actions input[type="submit"] {
  width: 100%;
  padding: 14px 24px;
  background: #DE8C76;
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.devise-actions input[type="submit"]:hover {
  background: #c97a66;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(222, 140, 118, 0.3);
}

/* Devise Links */
.devise-links {
  margin-top: 30px;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.devise-links a {
  color: #DE8C76;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: inline-block;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.devise-links a:hover {
  color: #c97a66;
  text-decoration: underline;
}

.devise-links br {
  display: none;
}

.devise-links > * {
  display: block;
  margin: 8px 0;
}

/* Remember me checkbox */
.devise-remember {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.devise-remember label {
  margin: 0;
  margin-left: 8px;
  font-weight: normal;
  color: #666;
  font-size: 14px;
}

/* Devise Footer */
.devise-footer {
  text-align: center;
  margin-top: 30px;
  color: #999;
  font-size: 14px;
}

/* Alerts in Devise */
.devise-content .alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.devise-content .alert-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.devise-content .alert-danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Responsive */
@media (max-width: 480px) {
  .devise-container {
    padding: 10px;
  }
  
  .devise-content {
    padding: 30px 20px;
  }
  
  .devise-logo {
    height: 50px;
  }
  
  .devise-content h2 {
    font-size: 20px;
  }
}
#flash-messages {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
}

.flash-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 15px;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.flash-message::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
}

.flash-notice {
  background-color: #f0f9ff;
  color: #0369a1;
  border: 1px solid #e0f2fe;
}

.flash-notice::before {
  background-color: #0ea5e9;
}

.flash-alert {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fee2e2;
}

.flash-alert::before {
  background-color: #ef4444;
}

.flash-close {
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: inherit;
  opacity: 0.5;
  cursor: pointer;
  padding: 0;
  margin-left: 20px;
  transition: opacity 0.2s;
}

.flash-close:hover {
  opacity: 0.8;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.flash-message.removing {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Mobile responsive */
@media (max-width: 480px) {
  #flash-messages {
    left: 10px;
    right: 10px;
    top: 10px;
    max-width: none;
  }
  
  .flash-message {
    font-size: 14px;
    padding: 14px 16px;
  }
}

/* Auto-hide after 5 seconds */
.flash-message {
  animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
}

.salaire-container {
    max-width: 1400px;
    margin: 0 auto 0;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}


.instructions {
    background: #FFF5F3;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 5px solid #DE8C76;
}

.instructions strong {
    color: #DE8C76;
    font-size: 18px;
}

.instructions ul {
    margin-top: 10px;
    list-style-type: none;
    padding-left: 20px;
}

.instructions li {
    margin: 8px 0;
    position: relative;
}

.instructions li:before {
    content: "✓";
    position: absolute;
    left: -20px;
    color: #DE8C76;
    font-weight: bold;
}

.table-wrapper {
    width: 100%;
}

#mainTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
}

#mainTable th {
    background-color: #DE8C76;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #ddd;
    font-size: 12px;
}

#mainTable td {
    padding: 10px 8px;
    text-align: center;
    border: 1px solid #ddd;
}

#mainTable tr:nth-child(even) {
    background-color: #f9f9f9;
}

#mainTable tr:hover {
    background-color: #FFF5F3;
}

.ca-input {
    width: 90px;
    padding: 6px;
    border: 2px solid #DE8C76;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    background: #FFFACD;
}

.ca-input:focus {
    outline: none;
    border-color: #c77a65;
    box-shadow: 0 0 5px rgba(222, 140, 118, 0.3);
}

.highlight {
    background-color: #FFFACD;
    font-weight: bold;
}

.reserve {
    background-color: #d4edda;
    font-weight: bold;
}

.bonus {
    background-color: #cce5ff;
    font-weight: bold;
}

.total-row {
    background-color: #e9ecef;
    font-weight: bold;
    border-top: 2px solid #DE8C76;
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.summary-box {
    background: #FFF5F3;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #FDEAE6;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-box h3 {
    margin-top: 0;
    color: #DE8C76;
    font-size: 22px;
    margin-bottom: 20px;
}

.summary-box p {
    margin: 12px 0;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.currency {
    color: #28a745;
    font-weight: bold;
    font-size: 18px;
}

.bonus-reserve {
    background-color: #ffe0b3;
    font-weight: bold;
    color: #d84315;
}

.add-month-container {
    text-align: center;
    margin: 30px 0;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.add-month-btn, .reset-btn {
    background: #DE8C76;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.add-month-btn:hover {
    background: #c77a65;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(222, 140, 118, 0.3);
}

.reset-btn {
    background: #6c757d;
}

.reset-btn:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3);
}

/* Tablet */
@media (max-width: 1024px) {
    .salaire-container {
        padding: 30px;
    }
    
    #mainTable {
        font-size: 12px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .salaire-container {
        margin: 1rem -16px 0;
        padding: 20px;
        box-shadow: none;
        border-radius: 0;
    }
    
    
    .instructions {
        padding: 15px;
        font-size: 14px;
    }
    
    .instructions strong {
        font-size: 16px;
    }
    
    .instructions li {
        font-size: 13px;
        margin: 6px 0;
    }
    
    /* Table wrapper for mobile */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -20px 20px;
        padding: 0 20px;
        position: relative;
    }
    
    .table-wrapper::after {
        content: '→';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
        padding: 10px;
        font-size: 20px;
        color: #DE8C76;
        pointer-events: none;
        opacity: 0.8;
    }
    
    #mainTable {
        font-size: 11px;
        min-width: 700px;
    }
    
    #mainTable thead {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    #mainTable tbody {
        display: table;
        width: 100%;
        table-layout: fixed;
    }
    
    #mainTable th,
    #mainTable td {
        padding: 8px 4px;
        font-size: 10px;
        min-width: 80px;
    }
    
    #mainTable th:first-child,
    #mainTable td:first-child {
        min-width: 100px;
        position: sticky;
        left: 0;
        background: #fff;
        z-index: 1;
    }
    
    #mainTable tr:nth-child(even) td:first-child {
        background-color: #f9f9f9;
    }
    
    .ca-input {
        width: 60px;
        padding: 4px;
        font-size: 11px;
    }
    
    .summary {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .summary-box {
        padding: 20px;
    }
    
    .summary-box h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .summary-box p {
        font-size: 14px;
        margin: 10px 0;
    }
    
    .currency {
        font-size: 16px;
    }
    
    .add-month-container {
        margin: 20px 0;
    }
    
    .add-month-btn, .reset-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .salaire-container {
        padding: 15px;
    }
    
    .salaire-container h1 {
        font-size: 20px;
    }
    
    .instructions {
        padding: 12px;
    }
    
    #mainTable th,
    #mainTable td {
        font-size: 9px;
        padding: 6px 2px;
        min-width: 65px;
    }
    
    .ca-input {
        width: 50px;
        font-size: 10px;
    }
    
    .add-month-btn, .reset-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #332B26;
  background-color: #F9F9F9;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar */
.navbar {
  background-color: #FFFFFF;
  padding: 1.5rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-img {
  height: 50px;
  max-height: 50px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #332B26;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #DE8C76;
}

/* Hero Section */
.hero-section {
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: white;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(222, 140, 118, 0.7);
  z-index: 1;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 100px;
  position: relative;
  z-index: 2;
}

.navbar {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.3rem);
  max-width: 700px;
  font-weight: 300;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3rem);
  color: #DE8C76;
  margin-bottom: 4rem;
  font-weight: 600;
}

/* Lieu Section */
.lieu-section {
  background-color: #FFFFFF;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.content-text h3 {
  color: #332B26;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.content-text p {
  margin-bottom: 2rem;
  color: #332B26;
  line-height: 1.8;
}

.features-list {
  list-style: none;
}

.features-list li {
  padding: 0.7rem 0;
  color: #332B26;
  font-weight: 400;
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: "✓";
  color: #DE8C76;
  font-weight: bold;
  margin-right: 1rem;
  font-size: 1.2rem;
}

.image-placeholder {
  background: #EDB26E;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  font-size: 1.2rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.image-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(51, 43, 38, 0.3);
}

.image-placeholder span {
  position: relative;
  z-index: 1;
  font-weight: 500;
}

/* Hébergements Section */
.hebergements-section {
  background-color: #F9F9F9;
}

.hebergements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2.5rem;
}

.hebergement-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease;
  border: 1px solid rgba(222, 140, 118, 0.2);
}

.hebergement-card:hover {
  transform: translateY(-5px);
}

.hebergement-card .image-placeholder {
  height: 280px;
  margin: 0;
  border-radius: 0;
}

.hebergement-card h3 {
  padding: 2rem 2rem 1rem;
  color: #332B26;
  font-weight: 600;
  font-size: 1.4rem;
}

.hebergement-card p {
  padding: 0 2rem;
  color: #332B26;
  line-height: 1.8;
}

.amenities {
  list-style: none;
  padding: 1.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.amenities li {
  color: #332B26;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}

.amenities li::before {
  content: "•";
  color: #DE8C76;
  font-weight: bold;
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Activités Section */
.activites-section {
  background: linear-gradient(135deg, #FFF5F3 0%, #FDEAE6 100%);
  position: relative;
  overflow: hidden;
}

.activites-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(222, 140, 118, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(222, 140, 118, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(222, 140, 118, 0.06) 0%, transparent 40%);
  z-index: 0;
}

.activites-section .container {
  position: relative;
  z-index: 1;
}

.activites-section .section-title {
  color: #332B26;
  position: relative;
}

.activites-section .section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #DE8C76;
}

.activities-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.activity-item {
  text-align: center;
  padding: 0;
  border-radius: 20px;
  background-color: #FFFFFF;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.activity-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(222, 140, 118, 0.2);
}

.activity-item img {
  width: 100%;
  height: 200px !important;
  object-fit: cover;
  margin-bottom: 0 !important;
}

.activity-item h3,
.activity-item p {
  padding: 0 1.5rem;
}

.activity-item h3 {
  margin-top: 1.5rem;
}

.activity-item p {
  padding-bottom: 1.5rem;
}

.activity-icon {
  width: 80px;
  height: 80px;
  background-color: #DE8C76;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.activity-item h3 {
  color: #332B26;
  margin-bottom: 0.8rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.activity-item p {
  color: #332B26;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Services Section */
.services-section {
  background-color: #F9F9F9;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background-color: #FFFFFF;
  padding: 2.5rem;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 1px solid rgba(222, 140, 118, 0.2);
}

.service-card:hover {
  border-color: #EDB26E;
}

.service-card h3 {
  color: #332B26;
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 1.3rem;
}

.service-card p {
  color: #332B26;
  line-height: 1.8;
}

/* Contact Section */
.contact-section {
  background-color: #332B26;
  color: #FFFFFF;
  overflow-x: hidden;
}

.contact-section .section-title {
  color: #FFFFFF;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.contact-info h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.date-highlight {
  font-size: 1.3rem;
  color: #DE8C76;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.contact-details {
  margin-top: 2rem;
  background-color: rgba(222, 140, 118, 0.1);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(222, 140, 118, 0.3);
}

.contact-details p {
  margin-bottom: 0.8rem;
  line-height: 1.8;
}

/* Tarifs Grid */
.tarifs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.tarif-option {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #DE8C76;
}

.tarif-option h4 {
  color: #DE8C76;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.price {
  font-size: 2.5rem;
  color: #FFFFFF;
  font-weight: 700;
}

.reservation-info {
  background-color: #DE8C76;
  color: #FFFFFF;
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
}

.reservation-info p {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.disclaimer-text {
  text-align: center;
  color: #DE8C76;
  font-size: 1.1rem;
  margin: 2rem 0;
}

.special-requests {
  background-color: rgba(222, 140, 118, 0.2);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 2rem;
  border: 1px solid rgba(222, 140, 118, 0.5);
}

.special-requests p:first-child {
  color: #DE8C76;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Contact Form */
.contact-form {
  background-color: rgba(222, 140, 118, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid rgba(222, 140, 118, 0.3);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.form-note {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.6;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1.2rem;
  border: 1px solid rgba(222, 140, 118, 0.3);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.9);
  color: #332B26;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #EDB26E;
}

.cta-button {
  background-color: #DE8C76;
  color: #FFFFFF;
  padding: 1.2rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #c97a66;
  transform: translateY(-2px);
}

/* Payment Acompte */
.payment-acompte {
  background-color: rgba(255, 255, 255, 0.95);
  padding: 3rem;
  border-radius: 20px;
  text-align: center;
  max-width: 500px;
  margin: 2rem auto;
  color: #332B26;
}

.payment-acompte h4 {
  color: #332B26;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.acompte-amount {
  font-size: 3.5rem;
  color: #DE8C76;
  font-weight: 700;
  margin: 1rem 0;
}

.acompte-desc {
  color: #666;
  margin-bottom: 2rem;
}

.formule-selection {
  text-align: left;
  margin: 2rem 0;
  background-color: rgba(222, 140, 118, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
}

.formule-selection label {
  display: block;
  padding: 0.8rem 0;
  cursor: pointer;
  color: #332B26;
}

.formule-selection input[type="radio"] {
  margin-right: 0.8rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.formule-selection span {
  font-size: 1.1rem;
}

.payment-info {
  margin-top: 1.5rem;
  color: #666;
}

.payment-info small {
  font-style: italic;
}

/* Custom Hotmart Button Styles */
.custom-hotmart-btn.hotmart-fb {
  background-color: #DE8C76 !important;
  color: #FFFFFF !important;
  padding: 1.2rem 3rem !important;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  border: none !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: all 0.3s ease !important;
  font-family: 'Poppins', sans-serif !important;
}

.custom-hotmart-btn.hotmart-fb:hover {
  background-color: #c97a66 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 20px rgba(222, 140, 118, 0.3) !important;
}

.hotmart-checkout-btn {
  background-color: #DE8C76;
  color: #FFFFFF;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.hotmart-checkout-btn:hover {
  background-color: #c97a66;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(222, 140, 118, 0.3);
}

.payment-security {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  margin-top: 2rem;
}

/* Seminaire Section - ROCK STYLE */
.seminaire-section {
  background-color: #1a1a1a;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.seminaire-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(222, 140, 118, 0.03) 10px,
      rgba(222, 140, 118, 0.03) 20px
    );
}

.seminaire-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-title-rock {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #DE8C76;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
}

.rock-subtitle {
  font-size: 1.5rem;
  color: #FFFFFF;
  font-weight: 600;
}

.trading-live {
  background: linear-gradient(135deg, #DE8C76 0%, #c97a66 100%);
  padding: 3rem;
  border-radius: 20px;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 40px rgba(222, 140, 118, 0.3);
}

.trading-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.trading-description {
  font-size: 1.2rem;
  color: #1a1a1a;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.trading-description strong {
  display: block;
  margin-top: 1rem;
  font-size: 1.4rem;
}

.live-badge {
  background-color: #1a1a1a;
  color: #DE8C76;
  padding: 1rem 2rem;
  border-radius: 50px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: 1px;
}

.team-section {
  position: relative;
  z-index: 1;
}

.team-title {
  text-align: center;
  font-size: 2.5rem;
  color: #DE8C76;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.team-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #FFFFFF;
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  padding: 2rem;
  background-color: rgba(222, 140, 118, 0.1);
  border-radius: 20px;
  border: 2px solid #DE8C76;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-10px);
  background-color: rgba(222, 140, 118, 0.2);
  box-shadow: 0 10px 30px rgba(222, 140, 118, 0.4);
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: block;
  object-fit: cover;
  border: 3px solid #DE8C76;
}

.team-member h4 {
  font-size: 1.5rem;
  color: #DE8C76;
  margin-bottom: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.team-member p {
  color: #FFFFFF;
  line-height: 1.6;
}

/* Extra Rock Section */
.extra-rock-section {
  margin-top: 4rem;
}

.rock-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.rock-item {
  background-color: rgba(26, 26, 26, 0.5);
  padding: 2rem;
  border-radius: 20px;
  border: 2px solid #DE8C76;
}

.rock-title {
  font-size: 1.8rem;
  color: #DE8C76;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.rock-description {
  color: #FFFFFF;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  margin-top: 1rem;
}

.rock-description strong {
  display: block;
  margin-top: 1rem;
  color: #DE8C76;
  font-size: 1.3rem;
}

.disclaimer {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-style: italic;
  text-align: center;
  margin-top: 1rem;
}

/* Classes pour remplacer les styles inline */
.camping-aerial-view {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 20px;
}

.hebergement-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.team-photo-doud {
  object-position: center 35%;
}

.team-photo-rayan {
  object-position: center 70%;
}

.team-photo-marine {
  object-position: center 35%;
}

.rock-event-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  margin: 1rem 0;
}

.special-requests-container {
  background-color: rgba(222, 140, 118, 0.1);
  padding: 1.5rem;
  border-radius: 15px;
  margin: 2rem 0;
  text-align: left;
}

.special-requests-title {
  color: #DE8C76;
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.special-requests-text {
  color: #666;
  line-height: 1.6;
}

.trading-highlight {
  color: #DE8C76;
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  margin: 0.5rem 0;
}

.security-icon {
  vertical-align: middle;
  margin-right: 5px;
}

/* Footer */
.footer {
  background-color: #332B26;
  color: #FFFFFF;
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid rgba(222, 140, 118, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 1rem 0;
  }
  
  .navbar .container {
    padding: 0 15px;
  }
  
  .nav-links {
    display: none;
  }
  
  .logo-img {
    height: 35px;
    max-height: 35px;
    max-width: 140px;
  }
  
  .content-grid,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hebergements-grid {
    grid-template-columns: 1fr;
  }
  
  .activities-wrapper {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .rock-grid {
    grid-template-columns: 1fr;
  }
  
  .tarifs-grid {
    grid-template-columns: 1fr;
  }
  
  .payment-options {
    grid-template-columns: 1fr;
  }
  
  /* Fix payment section overflow on mobile */
  .payment-acompte {
    padding: 1.5rem 1rem;
    margin: 1rem -1rem;
    max-width: calc(100% + 2rem);
    width: calc(100% + 2rem);
  }
  
  .payment-acompte h4 {
    margin-bottom: 1.5rem;
  }
  
  .acompte-amount {
    font-size: 2.5rem;
    margin: 1.5rem 0;
  }
  
  .acompte-desc {
    margin-bottom: 1.5rem;
  }
  
  .custom-hotmart-btn.hotmart-fb {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    width: 100%;
    max-width: 280px;
  }
  
  .contact-form {
    padding: 1.5rem;
  }
  
  .special-requests {
    padding: 1rem !important;
    margin: 1.5rem 0 !important;
  }
  
  #hotmart-payment {
    padding: 0;
  }
  
  .payment-info {
    margin-top: 1rem;
  }
}
/* ==========================================================================
   Design System - Styles partagés pour DoudTrading
   ========================================================================== */

/* Variables CSS pour faciliter la maintenance */
:root {
  /* Couleurs principales */
  --primary: #ee6123;
  --primary-hover: #d9551e;
  --primary-light: #fff5f1;
  --secondary: #ff6f00;
  --accent: #DE8C76;
  
  /* Couleurs neutres */
  --text-dark: #2a2f3a;
  --text-medium: #5e6c84;
  --text-light: #8a94a6;
  --text-muted: #6b7280;
  
  --bg-main: #f5f7fa;
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  
  /* Couleurs de statut */
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #dc2626;
  
  /* Espacements */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  
  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Structure de Page
   ========================================================================== */

.page-container {
  padding: 0 var(--space-lg);
}

/* Utiliser cette classe pour limiter la largeur si nécessaire */
.page-container-limited {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.page-header .text-muted {
  color: var(--text-muted);
  font-size: 14px;
}

/* ==========================================================================
   Cartes
   ========================================================================== */

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: var(--space-lg);
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: var(--space-lg);
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-value {
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* Mini cartes de statistiques pour les pages admin */
.stat-mini {
  background: var(--bg-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid #e7e9ee;
  text-align: center;
  transition: all 0.2s ease;
  cursor: default;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.stat-mini:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.stat-mini .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.stat-mini .stat-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0;
}

/* ==========================================================================
   Tables - Container style comme page salaire
   ========================================================================== */

/* Container principal pour les pages avec tableaux */
.table-page-container {
  max-width: 1400px;
  margin: 0 auto 0;
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Version sans limite de largeur */
.table-page-container-wide {
  margin: 0 24px;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.table-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 1400px;
  margin: -32px auto 2rem;
  padding: 0;
}

.table-page-title h1 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.table-page-title p {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 14px;
}

/* Wrapper pour la table avec overflow */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background: var(--bg-light);
}

.data-table th {
  padding: var(--space-md);
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-medium);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: var(--bg-light);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* Actions dans les tables */
.table-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.action-btn:hover {
  background: var(--bg-light);
  transform: translateY(-1px);
}

.action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-medium);
}

/* ==========================================================================
   Formulaires
   ========================================================================== */

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: var(--space-sm);
}

.form-control {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(238, 97, 35, 0.1);
}

.form-control:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.form-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ==========================================================================
   Boutons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 16px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #f3f4f6;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: var(--border);
  color: #374151;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-block;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: #fee2e2;
  color: var(--danger);
}

.badge-manager {
  background: #fef3c7;
  color: var(--warning);
}

.badge-coach {
  background: #d1fae5;
  color: var(--success);
}

.badge-user {
  background: #e0e7ff;
  color: #4f46e5;
}

/* ==========================================================================
   Utilitaires
   ========================================================================== */

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

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

/* Actions dans les formulaires et tables */
.actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

/* États spéciaux pour les tables */
.failure-reason {
  font-size: 12px;
  color: var(--danger);
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }

.info-list {
  margin: 0;
  padding-left: 20px;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
  .page-container {
    padding: 0 var(--space-md);
  }
  
  .table-page-container,
  .table-page-container-wide {
    margin: 1rem -16px 0;
    padding: 20px;
    border-radius: 0;
  }
  
  .table-page-header {
    flex-direction: column;
    align-items: flex-start;
    margin: -20px -16px 1rem;
    padding: 0 16px;
  }
  
  .table-page-title h1 {
    font-size: 24px;
  }
  
  .page-header h1 {
    font-size: 24px;
  }
  
  .card-body,
  .card-header {
    padding: var(--space-md);
  }
  
  .data-table {
    font-size: 13px;
  }
  
  .data-table th,
  .data-table td {
    padding: var(--space-sm);
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .stat-value {
    font-size: 24px;
  }
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-track {
  background: var(--bg-light);
}

.table-responsive::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
/* ==========================================================================
   Responsive Design - Styles adaptatifs pour tous les appareils
   ========================================================================== */

/* Breakpoints définis */
/* Mobile: < 480px */
/* Tablet: 480px - 768px */
/* Desktop: 769px - 1024px */
/* Wide: > 1024px */

/* ==========================================================================
   Mobile First - Styles de base pour mobile
   ========================================================================== */

/* Container principal */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: #f5f7fa;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow-x: hidden;
}

.page-content {
  flex: 1;
  padding: 16px;
}

/* ==========================================================================
   Tablet (481px - 768px)
   ========================================================================== */

@media (min-width: 481px) and (max-width: 768px) {
  .page-content {
    padding: 20px;
  }
  
  /* Grilles adaptatives */
  .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  /* Tables avec scroll */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ==========================================================================
   Mobile (max-width: 768px) - Adaptations principales
   ========================================================================== */

@media (max-width: 768px) {
  /* Sidebar mobile - overlay */
  .sidebar {
    position: fixed;
    left: -240px;
    top: 0;
    height: 100vh;
    width: 240px;
    z-index: 1000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .sidebar.mobile-open {
    left: 0;
  }
  
  /* Overlay pour fermer la sidebar */
  .dashboard-container.sidebar-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  /* Top navigation mobile */
  .top-nav {
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: white;
  }
  
  .nav-title h1 {
    font-size: 20px;
    margin: 0;
  }
  
  /* Masquer la recherche sur mobile */
  .search-container {
    display: none;
  }
  
  /* Actions du header empilées */
  .nav-actions {
    gap: 8px;
  }
  
  /* Grilles responsive */
  .grid,
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* Cartes pleine largeur */
  .card,
  .stat-card,
  .content-card {
    width: 100%;
    margin-bottom: 16px;
  }
  
  /* Tables responsive avec scroll horizontal */
  .table-container {
    overflow-x: auto;
    margin: 0 -16px;
    padding: 0 16px;
  }
  
  table {
    min-width: 600px;
    font-size: 13px;
  }
  
  th, td {
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  /* Formulaires mobile */
  .form-group {
    margin-bottom: 16px;
  }
  
  .form-control,
  .form-select {
    font-size: 16px; /* Évite le zoom iOS */
  }
  
  /* Boutons pleine largeur */
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .btn-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  /* Modales adaptatives */
  .modal {
    margin: 16px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
  
  /* Typography mobile */
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }
  body { font-size: 14px; }
  small { font-size: 12px; }
  
  /* Espacements réduits */
  .p-4 { padding: 16px; }
  .p-6 { padding: 20px; }
  .m-4 { margin: 16px; }
  .m-6 { margin: 20px; }
  
  /* Images responsive */
  img {
    max-width: 100%;
    height: auto;
  }
  
  /* Pagination mobile */
  .pagination {
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
  }
  
  .pagination .page-link {
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* ==========================================================================
   Très petit mobile (max-width: 480px)
   ========================================================================== */

@media (max-width: 480px) {
  /* Réduction supplémentaire des espacements */
  .page-content {
    padding: 12px;
  }
  
  /* Navigation encore plus compacte */
  .top-nav {
    padding: 8px 12px;
  }
  
  .nav-title h1 {
    font-size: 18px;
  }
  
  /* Tables très compactes */
  table {
    font-size: 12px;
  }
  
  th, td {
    padding: 6px 8px;
  }
  
  /* Masquer certaines colonnes non essentielles */
  .hide-mobile {
    display: none;
  }
  
  /* Boutons plus petits */
  .btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .btn-sm {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Cartes statistiques empilées */
  .stat-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 0;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  /* Actions dans les tables */
  .table-actions {
    gap: 4px;
  }
  
  .action-btn {
    width: 28px;
    height: 28px;
  }
  
  .action-btn svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================================
   Desktop et plus (min-width: 769px)
   ========================================================================== */

@media (min-width: 769px) {
  /* Sidebar desktop */
  .sidebar {
    position: relative;
    width: 72px;
    transition: width 0.3s ease;
  }
  
  .sidebar:hover {
    width: 240px;
  }
  
  /* Masquer le toggle sur desktop */
  .sidebar-toggle {
    display: none;
  }
  
  /* Conteneur principal avec marges */
  .page-content {
    padding: 32px;
  }
  
  /* Grilles desktop */
  .grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .grid-cols-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .grid-cols-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
  
  /* Flexbox utilities */
  .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  
  .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Boutons inline sur desktop */
  .btn {
    width: auto;
  }
  
  .btn-group {
    display: flex;
    flex-direction: row;
    gap: 8px;
  }
}

/* ==========================================================================
   Large Desktop (min-width: 1024px)
   ========================================================================== */

@media (min-width: 1024px) {
  /* Conteneur pleine largeur par défaut */
  .container-limited {
    max-width: 1400px;
    margin: 0 auto;
  }
  
  .container-wide {
    max-width: 1600px;
    margin: 0 auto;
  }
  
  /* Grilles plus complexes */
  .grid-cols-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
  }
  
  .grid-cols-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
  }
  
  /* Layout en colonnes */
  .layout-2-cols {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
  }
  
  .layout-3-cols {
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 32px;
  }
}

/* ==========================================================================
   Utilities Responsive
   ========================================================================== */

/* Affichage conditionnel */
.mobile-only { display: none; }
.tablet-only { display: none; }
.desktop-only { display: none; }

@media (max-width: 480px) {
  .mobile-only { display: block; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .tablet-only { display: block; }
}

@media (min-width: 769px) {
  .desktop-only { display: block; }
}

/* Scroll indicators */
.scroll-indicator::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
}

/* Touch-friendly sizes */
@media (hover: none) and (pointer: coarse) {
  /* Augmenter les zones de tap sur mobile */
  button,
  a,
  .clickable {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* Espacement pour éviter les faux clics */
  .touch-spacing > * {
    margin-bottom: 8px;
  }
}

/* Print styles */
@media print {
  .no-print,
  .sidebar,
  .top-nav,
  .btn,
  .action-btn {
    display: none !important;
  }
  
  .page-content {
    padding: 0;
    max-width: 100%;
  }
  
  table {
    page-break-inside: avoid;
  }
}
/* TraderMade - Solflare Design System Clone */

/* CSS Reset & Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors - TraderMade Orange Palette */
  --tm-orange: #ee6123;
  --tm-orange-dark: #d9551e;
  --tm-orange-light: #ff7438;
  --tm-secondary: #DE8C76;
  
  /* Solflare Color Scheme adapted */
  --tm-yellow: #FFEF46;
  --tm-blue: #3D38C0;
  --tm-pink: #991F5E;
  --tm-pink-light: #FFA6EA;
  --tm-blue-light: #7F9FF6;
  --tm-gray: #D1D4DD;
  --tm-orange-accent: #FF9340;
  
  /* Dark Theme */
  --tm-black: #0A0B0D;
  --tm-black-light: #131517;
  --tm-gray-dark: #1C1D1F;
  --tm-gray-medium: #2A2B2D;
  --tm-gray-light: #3A3B3D;
  
  /* Text Colors */
  --tm-text-primary: #FFFFFF;
  --tm-text-secondary: #A0A0A0;
  --tm-text-muted: #606060;
  
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Inconsolata", "Fira Code", monospace;
  
  /* Spacing */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 80px;
  --spacing-5xl: 96px;
  --spacing-6xl: 128px;
}

/* Base Styles */
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.tradermade-landing {
  background: var(--tm-black);
  color: var(--tm-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

/* Container */
.tm-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Typography */
.tm-mono-02 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-mono-03 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tm-bold-01 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.tm-bold-02 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.tm-bold-03 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.tm-bold-04 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.tm-bold-05 {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
}

.tm-medium-01 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.tm-regular-01 {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.tm-regular-02 {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}

/* Navigation */
.tm-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 11, 13, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-navigation__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--spacing-2xl);
}

.tm-navigation__logo {
  display: flex;
  align-items: center;
}

.tm-navigation__logo .logo {
  height: 32px;
  width: auto;
}

.tm-navigation__menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-xl);
  flex: 1;
  justify-content: center;
  align-items: center;
}

.tm-navigation__menu-item {
  position: relative;
}

.tm-navigation__menu-link {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--tm-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: var(--spacing-sm) 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.tm-navigation__menu-link:hover {
  color: var(--tm-text-primary);
}

.tm-navigation__menu-link .icon-arrow {
  width: 10px;
  height: 10px;
  transition: transform 0.2s ease;
}

.tm-navigation__menu-item:hover .icon-arrow {
  transform: rotate(180deg);
}

.tm-navigation__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--tm-black-light);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: var(--spacing-sm);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  margin-top: var(--spacing-sm);
}

.tm-navigation__menu-item:hover .tm-navigation__dropdown {
  opacity: 1;
  visibility: visible;
}

.tm-navigation__dropdown-link {
  display: block;
  padding: var(--spacing-sm) var(--spacing-md);
  color: var(--tm-text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tm-navigation__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--tm-text-primary);
}

.tm-navigation__actions {
  display: flex;
  gap: var(--spacing-md);
}

/* Buttons */
.tm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tm-button--yellow {
  background: var(--tm-yellow);
  color: var(--tm-black);
}

.tm-button--yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 239, 70, 0.3);
}

.tm-button--obsidian {
  background: var(--tm-gray-dark);
  color: var(--tm-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tm-button--obsidian:hover {
  background: var(--tm-gray-medium);
  transform: translateY(-2px);
}

.tm-button--obsidian-outline {
  background: transparent;
  color: var(--tm-text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.tm-button--obsidian-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.tm-button--titanium {
  background: linear-gradient(135deg, #4A4B4D 0%, #2A2B2D 100%);
  color: var(--tm-text-primary);
}

.tm-button--titanium:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

.tm-button--social {
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-button--social:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.tm-button--social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Hamburger Menu */
.tm-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
}

.tm-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--tm-text-primary);
  transition: all 0.2s ease;
}

/* Hero Section */
.tm-hero {
  padding-top: 72px; /* Navigation height */
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.tm-hero-module {
  width: 100%;
  text-align: center;
  padding: var(--spacing-4xl) 0;
}

.tm-hero-module__header {
  margin-bottom: var(--spacing-3xl);
}

.tm-hero-module__logo {
  margin-bottom: var(--spacing-2xl);
}

.tm-hero-module__logo img {
  height: 64px;
  width: auto;
  filter: brightness(0) invert(1);
}

.tm-hero-module__heading {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 800px;
  margin: 0 auto var(--spacing-xl);
  background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tm-hero-module__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
}

.tm-hero-module__media {
  margin-top: var(--spacing-4xl);
}

.tm-responsive-media {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.tm-responsive-media__inner {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.tm-video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--tm-gray-dark) 0%, var(--tm-black-light) 100%);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
}

.tm-trading-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: var(--spacing-md);
  width: 280px;
  animation: float 20s ease-in-out infinite;
}

.tm-trading-card--1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.tm-trading-card--2 {
  bottom: 20%;
  right: 10%;
  animation-delay: 10s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.live-badge {
  color: #00FF88;
  font-size: 12px;
  font-weight: 600;
}

.viewers {
  color: var(--tm-text-secondary);
  font-size: 12px;
}

.card-content h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-content p {
  color: var(--tm-text-secondary);
  font-size: 14px;
}

/* Stats Module */
.tm-section {
  padding: var(--spacing-4xl) 0;
}

.tm-section--no-overflow {
  overflow: hidden;
}

.tm-stats-module__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-5xl);
  list-style: none;
}

.tm-stats-module__item {
  text-align: center;
}

.tm-stats-module__counter {
  font-size: 40px;
  font-weight: 700;
  color: var(--tm-orange);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-mono);
}

.tm-stats-module__label {
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  font-family: var(--font-mono);
}

/* Featured Title */
.tm-featured-title {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tm-featured-title__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-md);
}

.tm-featured-title__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* Media Cards */
.tm-media-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-4xl);
  background: var(--bg-color);
  border-radius: 24px;
  padding: var(--spacing-3xl);
  min-height: 400px;
}

.tm-media-card--left {
  flex-direction: row;
}

.tm-media-card__media {
  flex: 1;
}

.tm-media-card__content {
  flex: 1;
  color: var(--tm-black);
}

.tm-media-card__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--spacing-md);
}

.tm-media-card__title {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
}

.tm-animation-placeholder {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-icon-shield,
.tm-icon-key {
  font-size: 120px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

/* Primary Cards */
.tm-primary-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-4xl);
  background: var(--bg-color);
  border-radius: 24px;
  padding: var(--spacing-4xl);
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.tm-primary-card--left {
  flex-direction: row;
}

.tm-primary-card__media {
  flex: 1;
  position: relative;
}

.tm-primary-card__icon {
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-lg);
  width: 48px;
  height: 48px;
  z-index: 10;
}

.tm-primary-card__content {
  flex: 1;
  color: var(--tm-text-primary);
}

.tm-primary-card__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.tm-primary-card__text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  opacity: 0.9;
}

.tm-primary-card__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Chart Animation */
.tm-chart-animation {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding: var(--spacing-xl);
}

.tm-chart-line {
  width: 30%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  animation: chart-grow 2s ease-in-out infinite;
}

.tm-chart-line:nth-child(1) {
  height: 60%;
  animation-delay: 0s;
}

.tm-chart-line:nth-child(2) {
  height: 80%;
  animation-delay: 0.2s;
}

.tm-chart-line:nth-child(3) {
  height: 45%;
  animation-delay: 0.4s;
}

@keyframes chart-grow {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.2); }
}

/* Lock Animation */
.tm-lock-animation {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-lock-icon {
  font-size: 100px;
  animation: lock-pulse 2s ease-in-out infinite;
}

@keyframes lock-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* Features Module */
.tm-features-module {
  text-align: center;
}

.tm-features-module__tag {
  margin-bottom: var(--spacing-2xl);
}

.tm-section-tag {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
}

.tm-section-tag__text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
}

.tm-features-module__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-3xl);
}

.tm-features-module__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-3xl);
}

.tm-feature-card {
  background: var(--bg-color);
  border-radius: 20px;
  padding: var(--spacing-3xl);
  text-align: center;
  transition: transform 0.2s ease;
}

.tm-feature-card:hover {
  transform: translateY(-4px);
}

.tm-feature-card__media {
  margin-bottom: var(--spacing-lg);
}

.tm-feature-icon {
  font-size: 64px;
  display: inline-block;
  animation: icon-bounce 3s ease-in-out infinite;
}

@keyframes icon-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.tm-feature-card__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-black);
  opacity: 0.7;
  margin-bottom: var(--spacing-sm);
}

.tm-feature-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tm-black);
}

.tm-features-module__actions {
  margin-top: var(--spacing-3xl);
}

/* Support Module */
.tm-support-module {
  background: var(--tm-gray-dark);
  border-radius: 24px;
  padding: var(--spacing-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tm-support-module__header {
  margin-bottom: var(--spacing-2xl);
}

.tm-support-module__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-md);
}

.tm-support-module__title {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-xl);
}

.tm-support-module__content {
  max-width: 600px;
  margin: 0 auto;
}

.tm-support-module__text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl);
  color: var(--tm-text-secondary);
}

.tm-support-module__actions {
  margin-top: var(--spacing-xl);
}

.tm-support-module__tag {
  position: absolute;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
}

.tm-section-tag-counter__counter {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--tm-orange);
  display: flex;
  align-items: center;
}

.tm-section-tag-counter__hours {
  margin-right: 4px;
}

.tm-section-tag-counter__separator {
  animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.tm-support-module__sunburst {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(238, 97, 35, 0.2) 0%, transparent 70%);
  animation: rotate 60s linear infinite;
  pointer-events: none;
}

.tm-support-module__sun {
  position: absolute;
  top: 50%;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--tm-orange) 0%, rgba(238, 97, 35, 0) 70%);
  border-radius: 50%;
  transform: translateY(-50%);
  animation: sun-glow 4s ease-in-out infinite;
}

@keyframes rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes sun-glow {
  0%, 100% { opacity: 0.6; transform: translateY(-50%) scale(1); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.1); }
}

/* Testimonials */
.tm-testimonials-module {
  max-width: 1200px;
  margin: 0 auto;
}

.tm-testimonials-module__header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.tm-testimonials-module__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-md);
}

.tm-testimonials-module__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.tm-testimonials-module__subtitle {
  font-size: 16px;
  color: var(--tm-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.tm-testimonials-slider {
  overflow: hidden;
  padding: var(--spacing-xl) 0;
}

.tm-testimonials-wrapper {
  display: flex;
  gap: var(--spacing-lg);
  transition: transform 0.3s ease;
}

.tm-testimonial-card {
  flex: 0 0 380px;
  background: var(--tm-gray-dark);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: var(--spacing-2xl);
}

.tm-testimonial-card__author {
  margin-bottom: var(--spacing-lg);
}

.tm-author {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.tm-author__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
}

.tm-author__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tm-author__name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.tm-author__reference {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tm-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tm-testimonial-card__text {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  color: var(--tm-text-secondary);
}

.tm-testimonial-card__published-at {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Pre-footer */
.tm-pre-footer-module {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.tm-pre-footer-module__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
}

.tm-pre-footer-module__subtitle {
  font-size: 18px;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-3xl);
}

.tm-pre-footer-module__media {
  max-width: 400px;
  margin: 0 auto;
}

.tm-flag-animation {
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tm-flag {
  font-size: 100px;
  animation: flag-wave 3s ease-in-out infinite;
}

@keyframes flag-wave {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

/* Footer */
.tm-footer {
  background: var(--tm-black-light);
  margin-top: var(--spacing-5xl);
}

.tm-footer__cta {
  padding: var(--spacing-5xl) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-footer-cta {
  text-align: center;
}

.tm-footer-cta__header {
  margin-bottom: var(--spacing-2xl);
}

.tm-footer-cta__eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-md);
}

.tm-footer-cta__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.3;
}

.tm-footer-cta__logo {
  margin-bottom: var(--spacing-2xl);
}

.tm-footer-cta__logo img {
  height: 80px;
  width: auto;
}

.tm-footer-cta__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.tm-footer__nav {
  padding: var(--spacing-3xl) 0;
}

.tm-footer-nav {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: var(--spacing-4xl);
  align-items: start;
}

.tm-footer-nav__secondary ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tm-footer-nav__secondary a {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-nav__secondary a:hover {
  color: var(--tm-text-primary);
}

.tm-footer-nav__primary {
  display: flex;
  justify-content: center;
}

.tm-footer-nav__primary > ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-5xl);
}

.tm-footer-nav__primary-section-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  text-decoration: none;
  display: block;
  margin-bottom: var(--spacing-md);
}

.tm-footer-nav__primary ul ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tm-footer-nav__primary ul ul a {
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.tm-footer-nav__primary ul ul a:hover {
  color: var(--tm-orange);
}

.tm-footer-nav__social {
  display: flex;
  gap: var(--spacing-sm);
}

.tm-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--spacing-3xl) 0;
}

.tm-footer-bottom {
  text-align: center;
}

.tm-footer-bottom__content {
  margin-bottom: var(--spacing-2xl);
}

.tm-footer-bottom__logo {
  height: 48px;
  width: auto;
  margin-bottom: var(--spacing-lg);
}

.tm-footer-bottom__tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tm-text-secondary);
  margin-bottom: var(--spacing-md);
}

.tm-footer-bottom__slogan {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tm-footer-bottom__copy {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--tm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tm-bold-01 {
    font-size: 48px;
  }
  
  .tm-bold-02 {
    font-size: 40px;
  }
  
  .tm-stats-module__list {
    gap: var(--spacing-3xl);
  }
  
  .tm-media-card,
  .tm-primary-card {
    flex-direction: column;
  }
  
  .tm-features-module__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tm-footer-nav {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .tm-footer-nav__primary > ul {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }
  
  .tm-footer-nav__social {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tm-navigation__menu,
  .tm-navigation__actions .tm-button:not(.tm-button--yellow) {
    display: none;
  }
  
  .tm-hamburger {
    display: flex;
  }
  
  .tm-hero-module__heading {
    font-size: 36px;
  }
  
  .tm-hero-module__actions {
    flex-direction: column;
    width: 100%;
  }
  
  .tm-hero-module__actions .tm-button {
    width: 100%;
    max-width: 320px;
  }
  
  .tm-stats-module__list {
    flex-direction: column;
    gap: var(--spacing-2xl);
  }
  
  .tm-featured-title__title {
    font-size: 32px;
  }
  
  .tm-media-card,
  .tm-primary-card {
    padding: var(--spacing-2xl);
  }
  
  .tm-primary-card__title {
    font-size: 28px;
  }
  
  .tm-features-module__grid {
    grid-template-columns: 1fr;
  }
  
  .tm-support-module {
    padding: var(--spacing-2xl);
  }
  
  .tm-support-module__title {
    font-size: 32px;
  }
  
  .tm-support-module__sun {
    display: none;
  }
  
  .tm-testimonials-wrapper {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  
  .tm-testimonial-card {
    scroll-snap-align: center;
  }
  
  .tm-footer-cta__actions {
    flex-direction: column;
    align-items: center;
  }
  
  .tm-footer-cta__actions .tm-button {
    width: 100%;
    max-width: 280px;
  }
  
  .tm-footer-nav__secondary ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .tm-container {
    padding: 0 var(--spacing-md);
  }
  
  .tm-hero-module__heading {
    font-size: 28px;
  }
  
  .tm-bold-01,
  .tm-bold-02 {
    font-size: 28px;
  }
  
  .tm-stats-module__counter {
    font-size: 32px;
  }
  
  .tm-trading-card {
    width: 240px;
    padding: var(--spacing-sm);
  }
  
  .tm-feature-card {
    padding: var(--spacing-xl);
  }
  
  .tm-testimonial-card {
    flex: 0 0 300px;
  }
}
/* Traders Index Styles */

/* Hero Section */
.traders-hero {
  background: linear-gradient(135deg, #1a1f2e 0%, #2a3f5f 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.traders-hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.traders-hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.hero-stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  opacity: 0.8;
  margin-top: 8px;
}

/* Top Performers Section */
.top-performers-section {
  background: var(--bg-light);
  padding: 40px 0;
  margin-bottom: 40px;
}

.top-performers-section h2 {
  font-size: 1.75rem;
  margin-bottom: 24px;
  text-align: center;
}

.top-performers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.top-performer-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.top-performer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.rank-1 .rank-badge {
  background: #FFD700;
  color: #333;
}

.rank-2 .rank-badge {
  background: #C0C0C0;
  color: #333;
}

.rank-3 .rank-badge {
  background: #CD7F32;
  color: white;
}

.trader-avatar {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
}

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

.top-performer-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.performance-highlight {
  margin-bottom: 24px;
}

.return-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.return-value.positive {
  color: #10b981;
}

.return-value.negative {
  color: #ef4444;
}

.period {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mini-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.mini-stat {
  text-align: center;
}

.mini-stat .value {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-dark);
}

.mini-stat .label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Filters Section */
.filters-section {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-bottom: 40px;
}

.filters-form {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.filter-group {
  flex: 1;
  min-width: 150px;
}

.filter-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  background: white;
}

/* Traders Grid */
.traders-section {
  padding: 0 0 60px;
}

.traders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.trader-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: box-shadow 0.2s;
}

.trader-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.trader-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.trader-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trader-info .trader-avatar {
  width: 48px;
  height: 48px;
  margin: 0;
}

.trader-info h3 {
  font-size: 1.125rem;
  margin: 0 0 8px;
}

.trader-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.risk-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.risk-badge.risk-prudent {
  background: #e0f2fe;
  color: #0369a1;
}

.risk-badge.risk-moderate {
  background: #fef3c7;
  color: #d97706;
}

.risk-badge.risk-aggressive {
  background: #fee2e2;
  color: #dc2626;
}

.live-badge {
  font-size: 0.75rem;
  color: #dc2626;
  font-weight: 600;
}

.trader-stats {
  margin-bottom: 20px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.stat-row:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.stat-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
}

.stat-value.positive {
  color: #10b981;
}

.stat-value.negative {
  color: #ef4444;
}

.trader-bio {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

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

.trader-actions .btn {
  flex: 1;
  text-align: center;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state p {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Trader Profile Page */
.trader-profile-page {
  background: var(--bg-light);
  min-height: 100vh;
}

/* Profile Header */
.profile-header {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  margin-bottom: 40px;
}

.profile-header-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

.profile-info {
  display: flex;
  gap: 24px;
  flex: 1;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.profile-details h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.profile-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.member-since {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trader-bio {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}

.profile-actions {
  flex-shrink: 0;
}

.btn-lg {
  padding: 12px 32px;
  font-size: 1.125rem;
}

/* Performance Section */
.performance-section {
  margin-bottom: 40px;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.performance-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.performance-card.highlight {
  background: var(--primary);
  color: white;
}

.performance-card.highlight .perf-label,
.performance-card.highlight .perf-detail {
  color: rgba(255, 255, 255, 0.9);
}

.perf-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.perf-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.perf-value.positive {
  color: #10b981;
}

.perf-value.negative {
  color: #ef4444;
}

.performance-card.highlight .perf-value {
  color: white;
}

.perf-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.content-main {
  min-width: 0;
}

/* Chart Section */
.chart-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chart-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

/* Trades Section */
.trades-section {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.trades-section h2 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.trades-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.trade-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-light);
  border-radius: 8px;
  transition: background 0.2s;
}

.trade-item:hover {
  background: #f3f4f6;
}

.trade-symbol {
  font-weight: 600;
  margin-bottom: 4px;
}

.trade-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.trade-result {
  font-weight: 700;
  font-size: 1.125rem;
}

.trade-result.profit {
  color: #10b981;
}

.trade-result.loss {
  color: #ef4444;
}

/* Sidebar Widgets */
.content-sidebar > div {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-sidebar h3 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* Stream Widget */
.stream-preview {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.stream-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.stream-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background 0.2s;
}

.stream-link:hover .stream-overlay {
  background: rgba(0, 0, 0, 0.7);
}

.stream-overlay i {
  font-size: 3rem;
  margin-bottom: 12px;
}

.stream-info p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Trading Style */
.style-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.style-tag {
  padding: 6px 12px;
  background: var(--bg-light);
  border-radius: 20px;
  font-size: 0.875rem;
  color: var(--text-dark);
}

.style-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.style-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.style-item .label {
  color: var(--text-muted);
}

.style-item .value {
  font-weight: 600;
}

/* Risk Management */
.risk-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.risk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
}

.risk-item i {
  color: var(--primary);
  width: 20px;
}

/* Responsive */
@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .content-sidebar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .traders-hero {
    padding: 40px 0;
  }
  
  .traders-hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .top-performers-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-form {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .traders-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    padding: 24px 0;
  }
  
  .profile-info {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin: 0 auto;
  }
  
  .profile-meta {
    justify-content: center;
  }
  
  .profile-header-content {
    flex-direction: column;
    align-items: center;
  }
  
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .content-sidebar {
    grid-template-columns: 1fr;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
