/* ═══════════════════════════════════════════════════════ */
/*  RESET & BASE                                          */
/* ═══════════════════════════════════════════════════════ */
.app-shell { display: flex; min-height: 100vh; }

/* Overlay sombre pour le menu mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 150;
}
.sidebar-overlay.active { display: block; }

/* ═══════════════════════════════════════════════════════ */
/*  SIDEBAR (Desktop)                                     */
/* ═══════════════════════════════════════════════════════ */
.sidebar {
  width: 260px;
  background: rgba(11, 30, 58, 0.95);
  backdrop-filter: blur(20px);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 30px 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 14px;
  padding: 0 24px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 20px;
}

.sidebar-logo svg {
  width: 44px; height: 44px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(212,175,55,0.3);
}

.sidebar-logo-text {
  font-size: 1.15rem; font-weight: 800; color: var(--or); line-height: 1.1;
}

.sidebar-logo-text small {
  display: block; font-size: 0.7rem; color: rgba(255,255,255,0.4);
  margin-top: 4px; font-weight: normal;
}

.nav-group { margin-bottom: 20px; }
.nav-group-title {
  padding: 0 24px; font-size: 0.65rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,0.3); font-weight: 700; margin-bottom: 8px;
}

.nav-item {
  display: flex; align-items: center; padding: 10px 24px;
  color: rgba(255,255,255,0.7); cursor: pointer; transition: all 0.2s ease;
  font-size: 0.95rem; border-left: 3px solid transparent; text-decoration: none;
}

.nav-item:hover { color: white; background: rgba(255,255,255,0.03); }
.nav-item.active {
  color: var(--or); border-left-color: var(--or);
  background: linear-gradient(90deg, rgba(212,175,55,0.1), transparent); font-weight: 600;
}

/* ═══════════════════════════════════════════════════════ */
/*  MAIN CONTENT                                          */
/* ═══════════════════════════════════════════════════════ */
.main-content {
  flex: 1; margin-left: 260px; padding: 30px;
  min-height: 100vh; max-width: 1200px;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; gap: 15px;
}

.mobile-menu-btn {
  display: none;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  color: white; padding: 8px 12px; border-radius: 10px;
  font-size: 1.2rem; cursor: pointer;
}

.topbar-title { font-size: 1.8rem; font-weight: 800; color: white; flex: 1; }
.topbar-actions { display: flex; gap: 16px; align-items: center; }

.user-badge { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; font-weight: 600; color: white; }
.user-badge .avatar {
  width: 36px; height: 36px; background: var(--or); color: var(--bleu-fonce);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* ─── KPI CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  width: 100%;
}

.kpi-card {
  width: 100%;
  min-width: 0;
  background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 20px; padding: 20px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.kpi-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: radial-gradient(ellipse at top, rgba(255,255,255,0.1), transparent 70%); pointer-events: none;
}

.kpi-label { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; font-weight: 700; }

.kpi-value {
  font-size: clamp(1.2rem, 6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  position: relative;
  z-index: 1;
  word-break: break-word;
}

.kpi-card.gold .kpi-value { color: var(--or); text-shadow: 0 0 20px rgba(212,175,55,0.3); }
.kpi-card.green .kpi-value { color: var(--vert-clair); text-shadow: 0 0 20px rgba(46,204,113,0.3); }
.kpi-card.red .kpi-value { color: var(--rouge); text-shadow: 0 0 20px rgba(231,76,60,0.3); }

/* ─── JAUGE (Gauge) ─── */
.gauge-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.gauge-box {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
  border-radius: 24px; padding: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-title { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-weight: 600; margin-bottom: 15px; }

.gauge-circle {
  width: 110px; height: 110px; border-radius: 50%; margin: 0 auto; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.gauge-inner {
  width: 90px; height: 90px; background: #0b1e3a; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-inner span { font-size: 1.3rem; font-weight: 800; color: white; }
.gauge-inner small { font-size: 0.6rem; color: rgba(255,255,255,0.4); text-transform: uppercase; text-align: center; padding: 0 4px; }

/* ─── SECTIONS & ACTIONS ─── */
.section { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 24px; padding: 24px; margin-bottom: 24px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-title { font-size: 1.1rem; color: white; font-weight: 700; }

/* ─── ALERTES ─── */
.alert-item { padding: 16px 20px; border-radius: 16px; margin-bottom: 12px; background: rgba(255,255,255,0.02); border-left: 4px solid; }
.alert-critique { border-color: var(--rouge); background: linear-gradient(90deg, rgba(231,76,60,0.1), transparent); }
.alert-avertissement { border-color: var(--orange); }
.alert-info { border-color: var(--bleu-info); }
.alert-header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.alert-message { font-size: 0.95rem; color: rgba(255,255,255,0.8); }

/* ─── TABLEAUX & MODALES ─── */
.table-glass { width: 100%; border-collapse: collapse; min-width: 400px; }
.table-glass th { padding: 12px; text-align: left; color: var(--or); font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.table-glass td { padding: 12px; color: rgba(255,255,255,0.8); font-size: 0.9rem; border-bottom: 1px solid rgba(255,255,255,0.05); }

.modal-overlay { position: fixed; inset: 0; background: rgba(5,15,30,0.8); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-overlay.active { display: flex; }
.modal { max-width: 500px; width: 100%; background: #0f2a52; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; padding: 30px; max-height: 90vh; overflow-y: auto; }
.modal h3 { color: white; margin-bottom: 20px; font-size: 1.4rem; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   LOGIN + FLIP CARD (Glassmorphism & Bug Miroir Corrigé)
   ═══════════════════════════════════════════════════════════ */
.login-container { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }

/* Configuration de base de la carte 3D */
.flip-container {
  perspective: 1500px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.flip-card {
  position: relative;
  width: 100%;
  height: 580px; /* Hauteur fixe indispensable pour la 3D */
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.flip-card.flipped {
  transform: rotateY(180deg);
}

/* Les deux faces */
.flip-face {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  
  /* ✅ Effet Glassmorphism rétabli */
  background: rgba(11, 30, 58, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 30px;
  padding: 30px;
  box-sizing: border-box;
}

/* ✅ Force le contexte 3D pour empêcher le miroir */
.flip-front {
  transform: rotateY(0deg); 
  z-index: 2;
}
/* ✅ Compense la rotation du parent */
.flip-back {
  transform: rotateY(180deg); 
  z-index: 1;
}

/* On neutralise les anciens styles de login-card pour laisser passer le verre */
.flip-face .login-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  text-align: left;
}

/* Champs de formulaire style Glass */
.login-form-group { text-align: left; margin-bottom: 20px; }
.login-form-group label { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; font-weight: 600; }
.login-form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}
.login-form-group input:focus {
  outline: none;
  border-color: var(--or);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.login-logo svg { width: 80px; height: 80px; margin-bottom: 20px; }
.login-title { color: var(--or); font-size: 2rem; font-weight: 800; margin-bottom: 5px; }
.login-subtitle { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 30px; }
.login-btn { width: 100%; padding: 16px; font-size: 1rem; margin-top: 10px; }
.login-hint { margin-top: 20px; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* Checkbox conditions d'utilisation */
.terms-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  line-height: 1.4;
  text-align: left;
}
.terms-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--or);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
}
.terms-check a { color: var(--or); text-decoration: underline; }
.btn:disabled { opacity: 0.4 !important; cursor: not-allowed !important; }

/* ==========================================
   ICÔNES SVG POUR LES ACTIONS
   ========================================== */
.action-btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.2s ease; color: rgba(255,255,255,0.7);
}
.action-btn-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.action-btn-icon:hover { background: rgba(255,255,255,0.15); color: white; transform: translateY(-2px); }
.action-btn-icon.gold:hover { color: var(--or); border-color: var(--or); background: rgba(212,175,55,0.15); }
.action-btn-icon.red:hover { color: var(--rouge); border-color: var(--rouge); background: rgba(231,76,60,0.15); }
.action-btn-icon.green:hover { color: var(--vert-clair); border-color: var(--vert-clair); background: rgba(46,204,113,0.15); }

/* ==========================================
   ONGLETS DYNAMIQUES DES PARAMÈTRES
   ========================================== */
.settings-tabs {
  display: flex; gap: 8px; background: rgba(255,255,255,0.04); padding: 6px;
  border-radius: 40px; border: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px; overflow-x: auto; box-shadow: inset 0 2px 10px rgba(0,0,0,0.2);
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 30px; background: transparent; border: none;
  color: rgba(255,255,255,0.6); cursor: pointer; font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); white-space: nowrap;
}
.settings-tab svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: all 0.3s ease; }
.settings-tab.active {
  background: linear-gradient(135deg, rgba(245, 217, 122, 0.95), rgba(212, 175, 55, 0.95));
  color: var(--bleu-fonce); box-shadow: 0 4px 15px rgba(212,175,55,0.4), inset 0 1px 0 rgba(255,255,255,0.4);
  transform: scale(1.02);
}
.settings-tab.active svg { transform: scale(1.1); stroke-width: 2.5; }

.settings-panel { display: none; }
.settings-panel.active { display: block; animation: fadeIn 0.4s ease; }

/* Style pour la Pop-up de confirmation sur mesure */
.custom-confirm-overlay {
  position: fixed; inset: 0; background: rgba(5,15,30,0.85); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 10000; padding: 20px;
  animation: fadeIn 0.2s ease;
}
.custom-confirm-box {
  background: linear-gradient(165deg, #0f2a52, #0b1e3a); border: 1px solid var(--or);
  border-radius: 24px; padding: 30px; max-width: 400px; width: 100%; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
}
.custom-confirm-box h3 { color: var(--or); font-size: 1.3rem; margin-bottom: 12px; }
.custom-confirm-box p { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin-bottom: 24px; line-height: 1.5; }
.custom-confirm-actions { display: flex; gap: 12px; }
.custom-confirm-actions .btn { flex: 1; }

/* ==========================================
   STYLE CARTE (LEAFLET)
   ========================================== */
.custom-tooltip {
  background: rgba(11, 30, 58, 0.9) !important;
  border: 1px solid var(--or) !important;
  color: var(--or) !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  padding: 4px 8px !important;
  backdrop-filter: blur(5px);
}
.custom-tooltip::before { border-top-color: var(--or) !important; }

/* ─── Contrôle des couches (Plan / Satellite) Dark Theme ─── */
.leaflet-control-layers {
  background: #0b1e3a !important;
  color: #fff !important;
  border: 1px solid #d4af37 !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 24px rgba(0,0,0,0.55) !important;
  padding: 8px 14px !important;
  font-family: inherit !important;
}
.leaflet-control-layers-expanded { padding: 10px 14px !important; }
.leaflet-control-layers label {
  color: #fff !important;
  font-size: 0.85rem !important;
  margin: 5px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.leaflet-control-layers-selector {
  accent-color: #d4af37 !important;
  width: 14px !important;
  height: 14px !important;
}
.leaflet-control-layers-toggle {
  background-color: #0b1e3a !important;
  border: 1px solid #d4af37 !important;
  border-radius: 10px !important;
  background-size: 22px !important;
}
.leaflet-control-layers-separator {
  border-top: 1px solid rgba(212,175,55,0.35) !important;
  margin: 6px 0 !important;
}

/* ─── Marqueur technicien (point bleu pulsant) ─── */
.tech-pulse-marker {
  position: relative;
  width: 32px;
  height: 32px;
}
.tech-pulse-marker .tech-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  background: #2196f3;
  border: 4px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px rgba(33,150,243,0.9), 0 0 30px rgba(33,150,243,0.5);
  z-index: 2;
}
.tech-pulse-marker .tech-pulse {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 22px;
  background: rgba(33,150,243,0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: techPulse 2s ease-out infinite;
  z-index: 1;
}
@keyframes techPulse {
  0%   { width: 22px; height: 22px; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

/* ─── Bouton "Partager ma position" (dégradé bleu → rouge) ─── */
.btn-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #2196f3, #1565c0);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(33,150,243,0.4);
  font-family: inherit;
}
.btn-share svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
  animation: iconBob 1.6s ease-in-out infinite;
}
@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(33,150,243,0.6);
}
.btn-share.active {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  box-shadow: 0 4px 15px rgba(231,76,60,0.5);
}
.btn-share.active svg {
  animation: wavePulse 1.4s ease-in-out infinite;
}
@keyframes wavePulse {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* ═══════════════════════════════════════════════════════════
   ANALYSE VIDÉO — Icône poisson & cartes glassmorphism
   ═══════════════════════════════════════════════════════════ */
.analyse-fish-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  filter: drop-shadow(0 8px 22px rgba(212,175,55,0.45));
  animation: fishFloat 3s ease-in-out infinite;
}
@keyframes fishFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.analyse-fish-icon svg {
  width: 90px;
  height: 90px;
}
.behavior-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}
.behavior-card {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, border-color 0.2s;
}
.behavior-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212,175,55,0.45);
}
.behavior-card .behavior-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}
.behavior-card .behavior-head svg {
  width: 16px;
  height: 16px;
  color: var(--or);
}
.behavior-card .behavior-value {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}
.behavior-card .behavior-value.good {
  color: var(--vert-clair);
  text-shadow: 0 0 12px rgba(46,204,113,0.35);
}
.behavior-card .behavior-value.warn {
  color: var(--orange);
  text-shadow: 0 0 12px rgba(243,156,18,0.35);
}
.behavior-card .behavior-value.bad {
  color: var(--rouge);
  text-shadow: 0 0 12px rgba(231,76,60,0.35);
}
.behavior-card .behavior-desc {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.45;
}
.analyse-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.25);
  border-top-color: var(--or);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.btn.analyse-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════ */
/*  RESPONSIVE (MOBILE)                                   */
/* ═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .main-content { margin-left: 0; padding: 15px 15px 40px 15px; width: 100%; max-width: 100vw; overflow-x: hidden; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu-btn { display: block; }
  .topbar { display: flex; flex-wrap: nowrap; gap: 10px; align-items: center; justify-content: space-between; width: 100%; }
  .topbar-title { font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; margin: 0; }
  .topbar-actions { gap: 8px; flex-shrink: 0; }
  .user-badge { gap: 0; }
  .user-badge span { display: none; }
  .user-badge .avatar { width: 30px; height: 30px; font-size: 0.7rem; }
  #btn-logout { padding: 6px 10px; font-size: 0.75rem; }

  /* Grille mobile 2x2 */
  .cards-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .kpi-value { font-size: 1.5rem; }

  /* Jauges en colonnes sur mobile */
  .gauge-row { display: flex; flex-direction: column; gap: 12px; }
  .gauge-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 15px 20px; }
  .gauge-title { margin-bottom: 0; width: 40%; text-align: left; }
  .gauge-circle { width: 80px; height: 80px; margin: 0; }
  .gauge-inner { width: 64px; height: 64px; }
  .gauge-inner span { font-size: 1rem; }

  .section { overflow: hidden; width: 100%; }
  div[style*="overflow-x:auto"] { width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ═══════════════════════════════════════════════════════ */
/*  SPLASH SCREEN                                         */
/* ═══════════════════════════════════════════════════════ */
#splash-screen { position: fixed; inset: 0; z-index: 9999; background: radial-gradient(ellipse at 50% 60%, #0f2a52 0%, #05101c 65%, #000 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.splash-bubbles { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bubble { position: absolute; bottom: -30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(245, 217, 122, 0.9), rgba(212, 175, 55, 0.2)); box-shadow: 0 0 12px rgba(212, 175, 55, 0.4); animation: bubbleUp 5s ease-in infinite; }
.bubble.b1 { left: 15%; width: 6px; height: 6px; animation-delay: 0s; }
.bubble.b2 { left: 28%; width: 4px; height: 4px; animation-delay: 0.8s; }
.bubble.b3 { left: 45%; width: 8px; height: 8px; animation-delay: 0.3s; }
.bubble.b4 { left: 62%; width: 5px; height: 5px; animation-delay: 1.5s; }
.bubble.b5 { left: 78%; width: 6px; height: 6px; animation-delay: 0.6s; }
.bubble.b6 { left: 88%; width: 4px; height: 4px; animation-delay: 2s; }
@keyframes bubbleUp { 0% { transform: translateY(0) scale(0.5); opacity: 0; } 10% { opacity: 0.9; } 85% { opacity: 0.4; } 100% { transform: translateY(-100vh) scale(1.2); opacity: 0; } }
.splash-ripple { position: absolute; top: 50%; left: 50%; z-index: 3; transform: translate(-50%, -50%); border-radius: 50%; border: 1.5px solid rgba(212, 175, 55, 0.5); width: 160px; height: 160px; opacity: 0; animation: rippleOut 2.5s cubic-bezier(0.16, 1, 0.3, 1) 0.9s infinite; }
.splash-ripple.r2 { animation-delay: 1.5s; } .splash-ripple.r3 { animation-delay: 2.1s; }
@keyframes rippleOut { 0% { width: 160px; height: 160px; opacity: 0.7; border-color: rgba(212, 175, 55, 0.6); } 100% { width: 420px; height: 420px; opacity: 0; border-color: rgba(212, 175, 55, 0); } }
.splash-content { text-align: center; position: relative; z-index: 10; }
.splash-logo svg { width: 120px; height: 120px; animation: logoRise 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; }
@keyframes logoRise { 0% { opacity: 0; transform: translateY(60px) scale(0.4); filter: blur(10px) drop-shadow(0 0 0 rgba(212,175,55,0)); } 60% { opacity: 1; filter: blur(0) drop-shadow(0 0 40px rgba(212,175,55,0.8)); } 80% { transform: translateY(-6px) scale(1.05); filter: blur(0) drop-shadow(0 0 50px rgba(212,175,55,0.9)); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0) drop-shadow(0 0 30px rgba(212,175,55,0.6)); } }
.splash-name { font-family: 'Segoe UI', sans-serif; font-size: 2rem; font-weight: 800; letter-spacing: 8px; margin-top: 28px; background: linear-gradient(135deg, #f5d97a 0%, #d4af37 50%, #f5d97a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: textIn 0.7s ease 1.1s both; }
.splash-brand { font-family: 'Segoe UI', sans-serif; font-size: 0.7rem; color: rgba(255,255,255,0.45); letter-spacing: 4px; text-transform: uppercase; margin-top: 10px; animation: textIn 0.7s ease 1.3s both; }
@keyframes textIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
#splash-screen.fade-out { animation: fadeOutSplash 0.7s ease 2.2s forwards; pointer-events: none; }
@keyframes fadeOutSplash { 0% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (max-width: 500px) { .splash-logo svg { width: 96px; height: 96px; } .splash-name { font-size: 1.5rem; letter-spacing: 6px; } .splash-brand { font-size: 0.62rem; letter-spacing: 3px; } }