/* =====================================================================
   ALERTE 112 — Correctifs V17 (lots UI) — v2
   ===================================================================== */

/* 12. Retirer la phrase "CENTRAL 112 · VEILLE OPÉRATIONNELLE" dans Missions */
#panel-left #missions-body::after {
  content: none !important;
  display: none !important;
}

/* 9. Ne plus afficher "Autres services non encore construits" dans Mes bâtiments */
.v8-unbuilt-services {
  display: none !important;
}

/* 7. HUD : médaillon de niveau D'ORIGINE (rond métal, chiffre au centre),
   collé au début de la barre d'XP ; pseudo au-dessus ; ⚙ juste dessous */
.hud-top {
  align-items: flex-start !important;
}
.player-corner {
  margin: 10px 0 0 12px !important;
}
.hud-player-bar,
.hud-player-bar.v16-hud-xpbar {
  padding: 0 !important;
  gap: 0 !important;
  align-items: flex-end !important;
}
/* médaillon rond d'origine, taille contenue pour rester au ras de la barre */
.hud-player-bar .v16-xp-medal {
  position: relative !important;
  top: 10px !important;
  width: 42px !important;
  height: 42px !important;
  margin: 0 2px 0 0 !important;
  clip-path: inset(0 round 11px);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .6)) !important;
}
.hud-player-bar .v16-xp-medal .v16-xp-medal-svg {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
/* chiffre du niveau : centré dans le médaillon, design d'origine (blanc + halo) */
.hud-player-bar .level-badge,
.hud-player-bar .v16-xp-level-num {
  position: relative !important;
  z-index: 2 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95), 0 0 8px rgba(56, 189, 248, 0.55) !important;
}
.hud-player-bar .level-stack {
  margin-left: -6px !important;
  min-width: 178px !important;
  gap: 3px !important;
}
.hud-player-bar .player-pseudo-row {
  padding-left: 10px !important;
}
#hud-pseudo {
  font-size: 13px !important;
  font-weight: 800 !important;
  max-width: 170px !important;
  overflow: visible !important;
  line-height: 1.15 !important;
}
.v16-xp-frame {
  padding: 3px 8px 3px 6px !important;
}
.xp-bar-container {
  width: 162px !important;
  height: 20px !important;
  border-radius: 999px !important;
}
.xp-text {
  font-size: 10px !important;
  font-weight: 700 !important;
}

/* 7b. Paramètres : juste sous la barre d'XP, discret */
.quick-left {
  top: 76px !important;
  left: 10px !important;
}
.orb.orb-settings {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  font-size: 16px !important;
  line-height: 36px !important;
}
.orb.orb-settings * {
  font-size: 16px !important;
}

/* 22. Retirer l'onglet Journal d'alliance */
#btn-side-tab-history {
  display: none !important;
}

/* 27. Panneaux Missions / Appels / Bâtiments sur toute la hauteur */
html body #panel-left,
html body #v5-calls-panel,
html body #panel-right,
html body #mission-focus,
html body .mission-focus {
  top: 4px !important;
  bottom: 0 !important;
  height: auto !important;
  max-height: none !important;
}
#panel-left .panel-body,
#panel-left #missions-body,
#v5-calls-panel .v5-calls-body,
#panel-right .panel-body,
#panel-right .v8-building-body,
#panel-right #stations-body {
  max-height: none !important;
  height: auto !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* =====================================================================
   Refonte visuelle : Paramètres / Alliances / Appels d'alliance
   ===================================================================== */

/* Cartes de modales plus propres */
.modal-box {
  background: linear-gradient(180deg, #0f1b2e 0%, #0b1526 100%) !important;
  border: 1px solid #29415f !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 70px rgba(2, 8, 23, .65) !important;
}
.modal-box h2 {
  letter-spacing: .3px !important;
}

/* Paramètres */
#settings-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  padding: 4px 2px 8px !important;
}
#settings-body > * {
  background: rgba(30, 41, 59, .45) !important;
  border: 1px solid rgba(148, 163, 184, .16) !important;
  border-radius: 12px !important;
  padding: 10px 12px !important;
}
#settings-body h3,
#settings-body h4 {
  color: #7dd3fc !important;
  font-size: 13px !important;
  margin: 0 0 6px !important;
}
#v17-save-tools {
  background: linear-gradient(135deg, rgba(14, 165, 233, .12), rgba(30, 41, 59, .4)) !important;
  border-color: rgba(14, 165, 233, .4) !important;
}

/* Modale Alliance (Conforme Capture Utilisateur) */
#alliance-modal .modal-box,
#alliance-modal .alliance-dialog-box,
#alliance-modal > div {
  max-width: 860px !important;
  width: min(860px, 95vw) !important;
  background: #1e2024 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid #3f3f46 !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.7) !important;
}
.alliance-modal-header {
  background: #7c5ce6 !important;
  border-radius: 12px 12px 0 0 !important;
  padding: 10px 18px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}
.alliance-modal-header h3,
.alliance-modal-header h2 {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.alliance-modal-header .modal-close-btn {
  color: #ffffff !important;
  opacity: 0.9 !important;
  font-size: 18px !important;
}
.alliance-modal-header .modal-close-btn:hover {
  opacity: 1 !important;
}
#alliance-content-area {
  background: #1e2024 !important;
  padding: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
#alliance-content-area .v8-group-name,
#alliance-content-area strong {
  color: #e2e8f0 !important;
}
#alliance-content-area button {
  border-radius: 8px !important;
}

/* Téléphone violet (missions d'alliance & renforts) : PLEINE HAUTEUR */
html body #panel-violet-phone {
  top: 4px !important;
  bottom: 0 !important;
  height: auto !important;
  max-height: none !important;
}
html body #panel-violet-phone .violet-content,
html body #panel-violet-phone #violet-phone-body {
  flex: 1 1 auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow-y: auto !important;
}
#panel-violet-phone {
  background: linear-gradient(180deg, #241a3d 0%, #141c33 100%) !important;
  border: 1px solid #4c3a80 !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(2, 8, 23, .55) !important;
  overflow: hidden !important;
}
#panel-violet-phone .violet-header,
#panel-violet-phone header,
#panel-violet-phone > div:first-child {
  background: linear-gradient(135deg, #5b21b6, #4338ca) !important;
}
#panel-violet-phone button {
  border-radius: 8px !important;
}
#panel-violet-phone .violet-tab-btn,
#panel-violet-phone [class*="tab"] {
  transition: background .15s ease !important;
}
#panel-violet-phone ::-webkit-scrollbar { width: 8px; }
#panel-violet-phone ::-webkit-scrollbar-thumb { background: #4c3a80; border-radius: 8px; }

/* Champs de saisie homogènes */
.modal-box input[type="text"],
.modal-box input[type="number"],
.modal-box input[type="password"],
#panel-violet-phone input {
  background: #0b1220 !important;
  border: 1px solid #334155 !important;
  border-radius: 8px !important;
  color: #e2e8f0 !important;
}

/* Boutons "Tout collecter" et boutons d'action cohérents */
.btn-cyan {
  border-radius: 10px !important;
}

/* Modale véhicule V17 */
#v17-vehicle-modal > div {
  background: linear-gradient(180deg, #12203a, #0d1730) !important;
}

/* =====================================================================
   Nouveau lot — Accueil, onboarding, alliances
   ===================================================================== */

/* 18. Choix du service : les 3 services, sans texte en dessous */
#onboarding-service-stage p.small.muted,
#onboarding-service-stage .small,
#onboarding-footnote {
  display: none !important;
}
#onboarding-service-stage .branch-card strong {
  font-size: 16px !important;
  letter-spacing: .3px;
}

/* 19. Écran d'accueil (ALERTE 112 / JOUER / SE CONNECTER) — carte verre + radar */
#v16-auth-screen {
  background:
    radial-gradient(1100px 520px at 50% -12%, rgba(56, 189, 248, .20), transparent 60%),
    radial-gradient(900px 480px at 88% 112%, rgba(124, 58, 237, .18), transparent 55%),
    linear-gradient(180deg, #061120 0%, #0b203e 52%, #050d1c 100%) !important;
}
#v16-auth-landing {
  position: relative;
  max-width: 560px !important;
  padding: 40px 44px 42px !important;
  border-radius: 24px !important;
  background: linear-gradient(160deg, rgba(14, 34, 64, .82), rgba(5, 12, 26, .88)) !important;
  backdrop-filter: blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.2) !important;
  border: 1px solid rgba(125, 211, 252, .3) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .62), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}
/* anneaux radar animés derrière la carte */
#v16-auth-landing::before {
  content: '';
  position: absolute;
  inset: -110px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: repeating-radial-gradient(circle at 50% 42%, transparent 0 46px, rgba(56, 189, 248, .10) 47px 48px);
  animation: v19-radar 9s linear infinite;
}
@keyframes v19-radar {
  from { transform: scale(.86); opacity: .35; }
  50% { opacity: .8; }
  to { transform: scale(1.12); opacity: .15; }
}
/* petite devise sous le logo */
#v16-auth-landing::after {
  content: '⚡ DOUBLE-V URGENCES · services de secours';
  position: absolute;
  top: 16px;
  left: 24px;
  right: 24px;
  color: rgba(186, 230, 253, .75);
  font: 800 10px/1.4 system-ui, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  pointer-events: none;
}
.v16-auth-logo-svg {
  width: min(430px, 80vw) !important;
  filter: drop-shadow(0 12px 30px rgba(56, 189, 248, .4)) drop-shadow(0 2px 6px rgba(0, 0, 0, .7));
  animation: v17-logo-float 5s ease-in-out infinite;
}
@keyframes v17-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.v16-auth-landing-actions {
  width: min(330px, 86vw) !important;
  gap: 14px !important;
}
.v16-btn-3d.orange {
  min-height: 58px !important;
  font-size: 22px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%) !important;
  box-shadow: 0 10px 26px rgba(234, 88, 12, .5), 0 4px 0 #9a3412, inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  animation: v17-play-pulse 2.4s ease-in-out infinite;
}
@keyframes v17-play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.035); }
}
.v16-btn-3d.blue {
  min-height: 56px !important;
  font-size: 20px !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #0ea5e9 0%, #0369a1 100%) !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, .42), 0 4px 0 #075985, inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}
.v16-btn-3d:hover {
  filter: brightness(1.1) saturate(1.1) !important;
}

/* Bande d'urgence décorative en haut et en bas de l'accueil */
#v16-auth-screen::before,
#v16-auth-screen::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  background: repeating-linear-gradient(45deg, #dc2626 0 18px, #f8fafc 18px 36px);
  opacity: .8;
  z-index: 3;
}
#v16-auth-screen::before { top: 0; }
#v16-auth-screen::after { bottom: 0; }

/* Teinte météo : le monde devient gris sous la pluie / la neige */
/* la teinte de la carte est pilotée progressivement par le JS (v18WeatherFrame) */

/* 19. Bouton "Accepter tous les appels" */
#v17-accept-all {
  font-family: inherit;
  letter-spacing: .2px;
  z-index: 5;
}
#v17-accept-all:hover {
  filter: brightness(1.12);
}

/* 7/13. Niveau de clan dans le téléphone violet */
#v17-clan-banner strong {
  letter-spacing: .3px;
}

/* =====================================================================
   V18 — Gyrophares réalistes sous les véhicules (marqueurs carte)
   ===================================================================== */
#map .marker-vehicle .vehicle-map-body {
  position: relative;
}
#map .marker-vehicle .v17-lights {
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  pointer-events: none;
}
#map .marker-vehicle .v17-lights i {
  position: absolute;
  top: 50%;
  width: 30%;
  height: 14%;
  margin-top: -7%;
  border-radius: 50%;
  opacity: 0;
  filter: blur(.5px);
}
#map .marker-vehicle .v17-lights .v17-l-a {
  left: 0;
  background: radial-gradient(circle, var(--v17-l1) 0%, transparent 60%);
  box-shadow: 0 0 4px 1px var(--v17-l1);
  animation: v17-strobe .55s linear infinite;
}
#map .marker-vehicle .v17-lights .v17-l-b {
  right: 0;
  background: radial-gradient(circle, var(--v17-l2) 0%, transparent 60%);
  box-shadow: 0 0 4px 1px var(--v17-l2);
  animation: v17-strobe .55s linear infinite .275s;
}
@keyframes v17-strobe {
  0%   { opacity: 0; }
  8%   { opacity: .75; }
  40%  { opacity: .75; }
  52%  { opacity: 0; }
  100% { opacity: 0; }
}

/* =====================================================================
   V18b — Anneau de progression sur le marqueur de mission
   ===================================================================== */
#map .marker-mission {
  overflow: visible !important;
}
#map .marker-mission .v17-mring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}
#map .marker-mission .v17-mring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}
#map .marker-mission .v17-mring circle {
  fill: none;
  stroke-width: 3.5;
}
#map .marker-mission .v17-mring .v17-mr-bg {
  stroke: rgba(2, 6, 23, .6);
}
#map .marker-mission .v17-mring .v17-mr-fg {
  stroke: #38bdf8;
  stroke-linecap: round;
  transition: stroke-dashoffset .35s linear;
  filter: drop-shadow(0 0 3px rgba(56, 189, 248, .7));
}
#map .marker-mission .v17-mring.v17-mr-wait .v17-mr-fg {
  stroke: #fbbf24;
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, .7));
}
#map .marker-mission .v17-mring.v17-mr-done .v17-mr-fg {
  stroke: #34d399;
  filter: drop-shadow(0 0 3px rgba(52, 211, 153, .7));
}

/* =====================================================================
   V18c — Gyros invisibles en vue large + pourcentages d'intervention
   jamais coupés
   ===================================================================== */
/* gyros masqués en dézoomé (classe posée par v17-fixes.js selon le zoom) */
#map.v17-gyro-off .v17-lights {
  display: none !important;
}
/* libellé « N % » sous le pin d'intervention : lisible, pas rogné */
#map .marker-mission.v9-work-active {
  overflow: visible !important;
  z-index: 5;
}
#map .marker-mission.v9-work-active .v9-work-percent {
  top: calc(100% + 4px) !important;
  padding: 2px 6px !important;
  line-height: 1.3;
  border: 1px solid rgba(11, 49, 64, .9);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .55);
}
#map .maplibregl-marker:has(.marker-mission.v9-work-active) {
  overflow: visible;
  z-index: 5;
}
/* Vidéo d'intro : accélération matérielle GPU, fluidité maximale et plein écran */
.v8-splash {
  transform: translateZ(0) !important;
  will-change: opacity !important;
  backface-visibility: hidden !important;
}
#v8-intro-video,
.v8-intro-video {
  object-fit: cover !important;
  object-position: center 92% !important;
  background: #000 !important;
  transform: translateZ(0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
}

/* =====================================================================
   V18d — Améliorations validées : HUD verre dépoli, halo, indicateur unique,
   fondu d'intro, météo
   ===================================================================== */
/* cadre disgracieux autour de la barre d'XP : supprimé */
.hud-player-bar .v16-xp-frame {
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.hud-player-bar .v16-xp-neon-top,
.hud-player-bar .v16-xp-neon-bot {
  display: none !important;
}
.hud-player-bar .xp-bar-container {
  border: 0 !important;
  box-shadow: none !important;
  background: rgba(10, 20, 38, .85) !important;
}

/* HUD verre dépoli : devises et orbes uniquement (la barre XP reste sans cadre) */
.currency-corner .stat-pill {
  background: linear-gradient(135deg, rgba(15, 23, 42, .72), rgba(30, 41, 59, .52)) !important;
  backdrop-filter: blur(12px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(12px) saturate(1.25) !important;
  border: 1px solid rgba(148, 163, 184, .28) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
}
.hud-top .hud-player-bar.v16-hud-xpbar {
  padding: 0 !important;
}
.hud-top {
  top: 4px !important;
  left: 4px !important;
  right: 4px !important;
}
.player-corner {
  margin: 2px 0 0 4px !important;
}
.quick-bottom-left,
.quick-bottom-right {
  bottom: 0 !important;
}
.quick-left .orb,
.quick-bottom-left .orb,
.quick-bottom-right .orb {
  background: linear-gradient(145deg, rgba(71, 85, 105, .82), rgba(15, 23, 42, .78)) !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .16) !important;
}
/* Halo lumineux discret sous les véhicules */
#map .marker-vehicle .vehicle-map-body {
  position: relative;
}
#map .marker-vehicle .vehicle-map-body::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, .30) 0%, rgba(56, 189, 248, .12) 38%, rgba(56, 189, 248, 0) 70%);
  filter: blur(2px);
  pointer-events: none;
  z-index: -1;
}
/* Un SEUL indicateur de progression sur le pin : notre anneau (le libellé %
   et le cercle conique v9 sont masqués), avec le % au centre. */
#map .marker-mission.v9-work-active {
  background: transparent !important;
  box-shadow: none !important;
}
#map .marker-mission.v9-work-active .v9-work-center,
#map .marker-mission.v9-work-active .v9-work-percent,
#map .marker-mission .v17-mring .v17-mr-pct {
  display: none !important;
}
/* Fondu rapide et propre entre la vidéo et le jeu (350ms sans latence) */
#v8-splash.closing {
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.35s ease-out !important;
}
.v16-auth-screen:not(.hidden) {
  animation: v18-fade-in 1.1s ease-out both;
}
@keyframes v18-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* Couche météo (au-dessus de la carte, sous le HUD) */
#v18-weather {
  position: fixed;
  inset: 0;
  z-index: 24;
  pointer-events: none;
  opacity: 0;
  transition: opacity .6s ease;
}
#v18-weather.on {
  opacity: 1;
}
/* icône Interventions : gyrophares qui pulse discrètement */
#btn-missions .v21-rays {
  transform-origin: 12px 12px;
  animation: v21-ray-pulse 1.6s ease-in-out infinite;
}
@keyframes v21-ray-pulse {
  0%, 100% { opacity: .45; transform: scale(.94); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* =====================================================================
   Trafic civil (sans lampadaires sur la carte)
   ===================================================================== */
#map .v18-car {
  pointer-events: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  z-index: 2 !important;
}
#map .v18-car .v18-car-spin {
  display: block;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
}
#map .v18-car svg {
  display: block;
}

/* Création de compte : plus de bande grise autour du bouton Continuer */
#onboarding-modal .onboarding-actions {
  background: transparent !important;
  padding: 0 !important;
  margin-top: 12px !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* =====================================================================
   V23 — Panneaux animés, boussole, mini-radar, pastilles de statut,
   effets sur les pins, éclairage des casernes
   ===================================================================== */
@keyframes v23-slide-in {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-box,
.shop-screen:not(.hidden),
.mission-focus:not(.hidden) {
  animation: v23-slide-in .22s ease-out both;
}
#shop-credits::before,
#shop-billets::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: -4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23f59e0b' stroke='%23fde68a' stroke-width='1.8'/%3E%3Ccircle cx='12' cy='12' r='6.5' fill='%23d97706' stroke='%23fef3c7' stroke-width='1'/%3E%3Ctext x='12' y='15.5' text-anchor='middle' font-size='9.5' font-weight='900' fill='%23fff' font-family='sans-serif'%3EC%3C/text%3E%3C/svg%3E") center / contain no-repeat;
}
#shop-billets::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 20'%3E%3Crect x='1.5' y='2' width='25' height='16' rx='3' fill='%23059669' stroke='%236ee7b7' stroke-width='1.5'/%3E%3Ccircle cx='14' cy='10' r='4.2' fill='%2310b981' stroke='%23ecfdf5' stroke-width='1'/%3E%3Ctext x='14' y='12.8' text-anchor='middle' font-size='8' font-weight='900' fill='%23fff' font-family='sans-serif'%3EB%3C/text%3E%3C/svg%3E");
  width: 24px;
}

/* =====================================================================
   V24 — Logos personnalisés sur les orbes et les devises
   ===================================================================== */
.quick-left .orb .orb-icon-img,
.quick-bottom-left .orb .orb-icon-img,
.quick-bottom-right .orb .orb-icon-img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .7));
  pointer-events: none;
}
#btn-missions .orb-icon-img {
  width: 30px !important;
  height: 30px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .9)) brightness(1.15) saturate(1.15);
}
.currency-icon-img {
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .6));
}
.currency-icon-img.coin-img {
  width: 30px !important;
  height: 30px !important;
}
.currency-icon-img.billet-img {
  width: 38px !important;
  height: 24px !important;
}
/* fonds colorés qui font ressortir tes logos */
.quick-bottom-right .orb:nth-child(1) { background: linear-gradient(145deg, rgba(120, 53, 15, .92), rgba(69, 26, 3, .9)) !important; }
.quick-bottom-right .orb:nth-child(2) { background: linear-gradient(145deg, rgba(30, 64, 175, .92), rgba(30, 27, 75, .9)) !important; }
.quick-bottom-right .orb:nth-child(3) { background: linear-gradient(145deg, rgba(91, 33, 182, .92), rgba(46, 16, 101, .9)) !important; }
.quick-bottom-right .orb:nth-child(4) { background: linear-gradient(145deg, rgba(6, 78, 59, .92), rgba(6, 44, 37, .9)) !important; }
.quick-bottom-right .orb:nth-child(5) { background: linear-gradient(145deg, rgba(12, 74, 110, .92), rgba(8, 40, 68, .9)) !important; }

/* =====================================================================
   V25 — Orbes sur fond noir + rangement en 1 clic
   ===================================================================== */
.quick-left .orb,
.quick-bottom-left .orb,
.quick-bottom-right .orb {
  background: linear-gradient(145deg, #0b1220 0%, #020617 100%) !important;
  border: 1.5px solid rgba(148, 163, 184, .35) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .65), inset 0 1px 0 rgba(255, 255, 255, .12) !important;
  transition: transform .32s ease, opacity .3s ease !important;
}
.quick-bottom-right .orb:nth-child(1),
.quick-bottom-right .orb:nth-child(2),
.quick-bottom-right .orb:nth-child(3),
.quick-bottom-right .orb:nth-child(4),
.quick-bottom-right .orb:nth-child(5) {
  background: linear-gradient(145deg, #0b1220, #020617) !important;
}
.quick-left .orb .orb-icon-img,
.quick-bottom-left .orb .orb-icon-img,
.quick-bottom-right .orb .orb-icon-img {
  width: 30px !important;
  height: 30px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .9)) brightness(1.15) saturate(1.15);
}
#btn-missions.orb-missions,
#btn-hotline,
#btn-season,
#btn-quests,
#btn-shop,
#btn-clan,
#btn-stations,
#btn-settings {
  background: linear-gradient(145deg, #0b1220, #020617) !important;
  border: 1.5px solid rgba(148, 163, 184, .35) !important;
}

#v25-toggle {
  position: fixed;
  right: 0;
  top: auto;
  bottom: 0;
  transform: none;
  width: 16px;
  height: 26px;
  border-radius: 6px 0 0 6px;
  background: rgba(2, 6, 23, .75);
  border: 1px solid rgba(148, 163, 184, .3);
  border-right: 0;
  color: rgba(226, 232, 240, .6);
  font: 800 12px/1 system-ui, sans-serif;
  cursor: pointer;
  z-index: 30;
  box-shadow: -2px 0 8px rgba(0, 0, 0, .4);
  opacity: .65;
}
#v25-toggle:hover { color: #38bdf8; background: #0b1220; opacity: 1; }
.v25-hidden .quick-left,
.v25-hidden .quick-bottom-left {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
.v25-hidden .quick-bottom-right {
  transform: translateX(140%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Toutes les icônes : plus de pastille noire, juste le logo + son ombre */
#btn-settings,
#btn-missions.orb-missions,
#btn-hotline,
#btn-season,
#btn-quests,
#btn-shop,
#btn-clan,
#btn-stations,
#btn-settings:hover,
#btn-missions.orb-missions:hover,
#btn-hotline:hover,
#btn-season:hover,
#btn-quests:hover,
#btn-shop:hover,
#btn-clan:hover,
#btn-stations:hover {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.quick-left .orb .orb-icon-img,
.quick-bottom-left .orb .orb-icon-img,
.quick-bottom-right .orb .orb-icon-img {
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .95)) drop-shadow(0 0 3px rgba(148, 163, 184, .35));
}
#btn-settings .orb-icon-img {
  width: 27px !important;
  height: 27px !important;
}
.quick-left {
  left: auto !important;
  right: 10px !important;
  top: 68px !important;
  flex-direction: row !important;
  justify-content: flex-end !important;
}
.currency-billets {
  gap: 3px;
  padding-right: 7px !important;
}
.currency-coins {
  gap: 4px !important;
}

#map .v23-status-dot {
  display: none !important;
}
#map .v23-fx {
  position: absolute;
  left: 50%;
  top: -14px;
  transform: translateX(-50%);
  font-size: 14px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.7));
  animation: v23-fx-float 1.6s ease-in-out infinite;
}
@keyframes v23-fx-float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .75; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}
#map .marker-vehicle:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(2, 6, 23, .9);
  border: 1px solid rgba(148, 163, 184, .4);
  color: #e2e8f0;
  font: 700 10px/1.3 system-ui, sans-serif;
  z-index: 40;
  pointer-events: none;
}
#map.v18-w-rain .marker-vehicle .vehicle-map-body::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 24px;
  height: 6px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(125, 211, 252, .45), transparent 70%);
  pointer-events: none;
}

/* Interrupteurs dans les paramètres */
.v18-opt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  margin-top: 6px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
}
.v18-opt-row input {
  width: 16px;
  height: 16px;
  accent-color: #0ea5e9;
  cursor: pointer;
}
/* Si le véhicule porte une photo, l'image doit passer au-dessus des gyros */
#map .marker-vehicle .vehicle-map-body > img {
  position: relative;
  z-index: 1;
}

/* =====================================================================
   V18 — Refonte visuelle : Connexion / Bâtiments / Réglages
   ===================================================================== */

/* --- Modale Connexion / Inscription (par-dessus l'accueil) --- */
#v16-auth-modal-wrap .v16-auth-box {
  background: linear-gradient(180deg, rgba(15, 27, 46, .97) 0%, rgba(9, 16, 30, .97) 100%) !important;
  border: 1px solid #2b4a6e !important;
  border-radius: 18px !important;
  box-shadow: 0 28px 80px rgba(1, 6, 16, .75), 0 0 0 1px rgba(56, 189, 248, .08), 0 0 42px rgba(56, 189, 248, .10) !important;
  overflow: hidden !important;
}
#v16-auth-modal-wrap .v16-auth-box-head {
  background: linear-gradient(135deg, #0c4a8a 0%, #1e3a8a 55%, #172554 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, .35) !important;
  padding: 14px 18px !important;
  position: relative !important;
  overflow: hidden !important;
}
#v16-auth-modal-wrap .v16-auth-box-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 26px, rgba(255, 255, 255, .045) 26px 52px);
  pointer-events: none;
}
#v16-auth-modal-wrap .v16-auth-box-head h2 {
  color: #f0f9ff !important;
  font-size: 19px !important;
  letter-spacing: 1.2px !important;
  text-shadow: 0 2px 10px rgba(2, 8, 23, .6) !important;
  margin: 0 !important;
}
#v16-auth-modal-wrap .v16-auth-close {
  color: #bae6fd !important;
  border-radius: 8px !important;
  transition: background .15s ease, color .15s ease !important;
}
#v16-auth-modal-wrap .v16-auth-close:hover {
  background: rgba(56, 189, 248, .18) !important;
  color: #fff !important;
}
#v16-auth-modal-wrap .v16-auth-box-body {
  padding: 18px 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}
#v16-auth-modal-wrap .v16-auth-desc {
  color: #94a3b8 !important;
  font-size: 12.5px !important;
  margin: 0 0 8px !important;
  padding: 8px 11px !important;
  background: rgba(14, 165, 233, .09) !important;
  border: 1px solid rgba(14, 165, 233, .22) !important;
  border-left: 3px solid #0ea5e9 !important;
  border-radius: 8px !important;
}
#v16-auth-modal-wrap .v16-auth-field-label {
  color: #7dd3fc !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .8px !important;
  text-transform: uppercase !important;
  margin: 6px 0 3px !important;
}
#v16-auth-modal-wrap .v16-auth-input {
  background: #060d1a !important;
  border: 1px solid #22405f !important;
  border-radius: 10px !important;
  padding: 10px 13px !important;
  color: #e2e8f0 !important;
  font-size: 14px !important;
  transition: border-color .15s ease, box-shadow .15s ease !important;
}
#v16-auth-modal-wrap .v16-auth-input:focus {
  outline: none !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .18) !important;
}
#v16-auth-modal-wrap .v16-remember-row {
  color: #9fb3c8 !important;
  font-size: 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 4px !important;
}
#v16-auth-modal-wrap .v16-remember-row input[type="checkbox"] {
  accent-color: #0ea5e9;
  width: 15px !important;
  height: 15px !important;
}
#v16-auth-modal-wrap .v16-auth-msg:not(.hidden) {
  background: rgba(220, 38, 38, .14) !important;
  border: 1px solid rgba(248, 113, 113, .45) !important;
  border-radius: 9px !important;
  color: #fecaca !important;
  padding: 8px 11px !important;
  font-size: 12.5px !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair {
  display: flex !important;
  gap: 10px !important;
  margin-top: 12px !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair .v16-btn-3d {
  flex: 1 1 0 !important;
}
#v16-auth-modal-wrap .v16-guest-footer {
  text-align: center !important;
  color: #8fa3ba !important;
  margin-top: 14px !important;
  padding: 0 6px 4px !important;
}
#v16-auth-modal-wrap .v16-guest-footer p {
  font-size: 12.5px !important;
  margin: 0 0 9px !important;
}

/* --- Panneau Bâtiments (droite) --- */
#panel-right {
  background: linear-gradient(180deg, rgba(13, 23, 42, .96) 0%, rgba(8, 15, 30, .96) 100%) !important;
  border: 1px solid #253d5c !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 50px rgba(2, 8, 23, .55) !important;
  overflow: hidden !important;
}
#panel-right .panel-right-side-tabs {
  background: linear-gradient(180deg, #0e1f3a 0%, #0b1730 100%) !important;
  border-bottom: 1px solid rgba(56, 189, 248, .22) !important;
  gap: 6px !important;
  padding: 8px 10px !important;
}
#panel-right .panel-right-tab {
  border-radius: 9px !important;
  transition: background .15s ease, box-shadow .15s ease !important;
}
#panel-right .panel-right-tab.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, .35), rgba(30, 64, 175, .35)) !important;
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .5) !important;
}
#panel-right #stations-body {
  padding: 10px 12px 14px !important;
}
#stations-body .v4-panel-subheader {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #7dd3fc !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  margin: 12px 0 7px !important;
  padding: 6px 10px !important;
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(14, 165, 233, 0)) !important;
  border-left: 3px solid #0ea5e9 !important;
  border-radius: 7px !important;
}
#stations-body .v4-building-row {
  background: rgba(30, 45, 70, .55) !important;
  border: 1px solid rgba(120, 155, 195, .18) !important;
  border-radius: 11px !important;
  padding: 9px 11px !important;
  margin: 0 0 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: border-color .15s ease, background .15s ease, transform .12s ease !important;
}
#stations-body .v4-building-row:hover {
  border-color: rgba(56, 189, 248, .55) !important;
  background: rgba(37, 56, 88, .65) !important;
  transform: translateX(2px) !important;
}
#stations-body .v4-building-symbol {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  background: linear-gradient(135deg, #14395e 0%, #0d2038 100%) !important;
  border: 1px solid rgba(56, 189, 248, .3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
#stations-body .v4-building-name {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
#stations-body .v4-building-name strong {
  color: #e8f1fa !important;
  font-size: 13px !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#stations-body .v4-building-name small {
  color: #8ea6c0 !important;
  font-size: 11px !important;
}
#stations-body .v4-blue-action {
  border-radius: 9px !important;
  font-weight: 700 !important;
  transition: filter .15s ease, transform .12s ease !important;
}
#stations-body .v4-blue-action:hover {
  filter: brightness(1.18) !important;
  transform: translateY(-1px) !important;
}
#stations-body .v4-panel-tip {
  color: #7e94ad !important;
  font-size: 11.5px !important;
  background: rgba(30, 45, 70, .4) !important;
  border: 1px dashed rgba(120, 155, 195, .3) !important;
  border-radius: 9px !important;
  padding: 8px 11px !important;
  margin-top: 12px !important;
}
#stations-body .v8-group-name {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  color: #7dd3fc !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: .4px !important;
  text-transform: uppercase !important;
  margin: 12px 0 7px !important;
  padding: 6px 10px !important;
  background: linear-gradient(90deg, rgba(14, 165, 233, .16), rgba(14, 165, 233, 0)) !important;
  border-left: 3px solid #0ea5e9 !important;
  border-radius: 7px !important;
}
#stations-body .v8-list-row {
  background: rgba(30, 45, 70, .55) !important;
  border: 1px solid rgba(120, 155, 195, .18) !important;
  border-radius: 11px !important;
  padding: 9px 11px !important;
  margin: 0 0 7px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: border-color .15s ease, background .15s ease, transform .12s ease !important;
}
#stations-body .v8-list-row:hover {
  border-color: rgba(56, 189, 248, .55) !important;
  background: rgba(37, 56, 88, .65) !important;
  transform: translateX(2px) !important;
}
#stations-body .v8-list-row strong {
  color: #e8f1fa !important;
  font-size: 13px !important;
  flex: 1 1 auto !important;
}
#stations-body .v8-list-icon {
  display: grid !important;
  place-items: center !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 10px !important;
  font-size: 18px !important;
  background: linear-gradient(135deg, #14395e 0%, #0d2038 100%) !important;
  border: 1px solid rgba(56, 189, 248, .3) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
#stations-body .v8-list-row button {
  border-radius: 9px !important;
  font-weight: 700 !important;
  transition: filter .15s ease, transform .12s ease !important;
}
#stations-body .v8-list-row button:hover {
  filter: brightness(1.18) !important;
  transform: translateY(-1px) !important;
}
#stations-body .v8-empty {
  color: #7e94ad !important;
}

/* --- Réglages : finitions --- */
#settings-body > * {
  transition: border-color .15s ease, background .15s ease !important;
}
#settings-body > *:hover {
  border-color: rgba(56, 189, 248, .38) !important;
}

/* =====================================================================
   V29 — Nouvelle interface d'accueil / connexion (plein écran + modale)
   ===================================================================== */
#v16-auth-screen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  padding: 0 !important;
  z-index: 9990 !important;
  background: #04070d !important;
  overflow: hidden !important;
}
#v16-auth-screen.hidden {
  display: none !important;
}
#v16-auth-screen::before,
#v16-auth-screen::after {
  display: none !important;
  content: none !important;
}

#v16-auth-landing {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: max(100vw, calc(100vh * 2048 / 1144)) !important;
  height: max(100vh, calc(100vw * 1144 / 2048)) !important;
  max-width: none !important;
  max-height: none !important;
  transform: translate(-50%, -50%) !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: url('../assets/intro/auth-screen-bg.jpg') center / 100% 100% no-repeat !important;
}
#v16-auth-landing::before,
#v16-auth-landing::after,
#v16-auth-landing .v16-auth-logo {
  display: none !important;
  content: none !important;
}
#v16-auth-landing .v16-auth-landing-actions {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

#v16-auth-landing .v16-btn-3d.orange,
#v16-auth-landing .v16-btn-3d.blue {
  position: absolute !important;
  left: 33.94% !important;
  width: 32.08% !important;
  height: 11.71% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 1.5px solid transparent !important;
  border-radius: 6px !important;
  color: transparent !important;
  font-size: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  animation: none !important;
  outline: none !important;
  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease, transform .12s ease !important;
}
#v16-auth-landing .v16-btn-3d.orange {
  top: 44.23% !important;
}
#v16-auth-landing .v16-btn-3d.orange:hover,
#v16-auth-landing .v16-btn-3d.orange:focus-visible {
  background: rgba(239, 68, 68, 0.14) !important;
  border-color: rgba(254, 202, 202, 0.72) !important;
  box-shadow: 0 0 30px rgba(239, 68, 68, 0.65), inset 0 0 20px rgba(239, 68, 68, 0.25) !important;
}
#v16-auth-landing .v16-btn-3d.blue {
  top: 60.14% !important;
}
#v16-auth-landing .v16-btn-3d.blue:hover,
#v16-auth-landing .v16-btn-3d.blue:focus-visible {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(248, 113, 113, 0.55) !important;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.4), inset 0 0 16px rgba(255, 255, 255, 0.12) !important;
}
#v16-auth-landing .v16-btn-3d.orange:active,
#v16-auth-landing .v16-btn-3d.blue:active {
  transform: scale(0.992) !important;
}

/* --- Modale Connexion / Inscription (verre dépoli + logo au-dessus) --- */
#v16-auth-modal-wrap {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9995 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 18px !important;
  padding: 16px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  background: rgba(3, 7, 16, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}
#v16-auth-modal-wrap.hidden {
  display: none !important;
}
.v16-auth-modal-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}
.v16-auth-modal-brand .v16-auth-modal-logo-svg {
  width: min(340px, 78vw) !important;
  height: auto !important;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .85)) drop-shadow(0 0 18px rgba(56, 189, 248, .3));
}
#v16-auth-modal-wrap .v16-auth-box {
  width: min(420px, 92vw) !important;
  max-height: 94dvh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(165deg, rgba(20, 32, 48, 0.88) 0%, rgba(10, 18, 30, 0.92) 100%) !important;
  backdrop-filter: blur(20px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}
@media (max-height: 650px) {
  #v16-auth-modal-wrap {
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .v16-auth-modal-brand .v16-auth-modal-logo-svg {
    width: min(200px, 40vw) !important;
    max-height: 40px !important;
  }
  #v16-auth-modal-wrap .v16-auth-box-head {
    padding: 10px 18px 8px !important;
  }
  #v16-auth-modal-wrap .v16-auth-box-body {
    padding: 10px 18px 14px !important;
  }
  #v16-auth-modal-wrap .v16-auth-field-label {
    margin: 4px 0 2px !important;
  }
  #v16-auth-modal-wrap .v16-auth-input {
    padding: 8px 10px !important;
    height: 36px !important;
  }
  #v16-auth-modal-wrap .v16-auth-btn-pair {
    margin-top: 8px !important;
  }
  #v16-auth-modal-wrap .v16-auth-btn-pair .v16-btn-3d {
    min-height: 38px !important;
  }
}
#v16-auth-modal-wrap .v16-auth-box-head {
  position: relative !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  padding: 16px 22px 14px !important;
}
#v16-auth-modal-wrap .v16-auth-box-head::after {
  display: none !important;
  content: none !important;
}
#v16-auth-modal-wrap .v16-auth-box-head h2 {
  width: 100%;
  text-align: center !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: .4px !important;
  color: #f8fafc !important;
  margin: 0 !important;
  text-shadow: none !important;
}
#v16-auth-modal-wrap .v16-auth-close {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}
#v16-auth-modal-wrap .v16-auth-box-body {
  padding: 18px 22px 22px !important;
}
#v16-auth-modal-wrap .v16-auth-desc {
  display: none !important;
}
#v16-auth-modal-wrap .v16-auth-field-label {
  color: #e2e8f0 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: .2px !important;
  margin: 8px 0 4px !important;
}
#v16-auth-modal-wrap .v16-auth-input {
  background: rgba(8, 14, 24, 0.72) !important;
  border: 1px solid rgba(125, 211, 252, 0.38) !important;
  border-radius: 8px !important;
  padding: 11px 13px !important;
  color: #f8fafc !important;
  outline: none !important;
}
#v16-auth-modal-wrap .v16-auth-input:focus {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .22) !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair {
  gap: 12px !important;
  margin-top: 14px !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair .v16-btn-3d {
  min-height: 44px !important;
  border-radius: 9px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-transform: none !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair .v16-btn-3d:first-child {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(148, 163, 184, 0.48) !important;
  color: #f1f5f9 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}
#v16-auth-modal-wrap .v16-auth-btn-pair .v16-btn-3d:last-child {
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
  border: 1px solid #bae6fd !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* Empêcher tout clignotement sur le bouton Missions */
#btn-missions,
#btn-missions.has-alert,
#btn-missions.orb-missions {
  animation: none !important;
}

/* =====================================================================
   V30 — Vignettes 112 SVG, Directions HQ, Profil, Paramètres, Passe, Auth
   ===================================================================== */
.v30-orb-svg {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .85));
}
#btn-missions .v30-orb-svg {
  width: 31px !important;
  height: 31px !important;
}
.v30-cur-svg {
  display: block !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .65));
}
#map .v16-direction-pin {
  width: 38px !important;
  height: 38px !important;
}
#map .v16-direction-pin .v30-dir-crest {
  display: block;
  filter: drop-shadow(0 3px 8px rgba(2, 6, 23, .9));
}

#v16-auth-modal-wrap .hidden {
  display: none !important;
}
#v16-auth-modal-wrap .v16-auth-pass-toggle {
  margin-top: 10px;
  text-align: center;
}
#v16-auth-modal-wrap .v16-auth-pass-link {
  background: none;
  border: 0;
  color: #7dd3fc;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#v16-auth-modal-wrap .v16-auth-pass-link:hover {
  color: #e0f2fe;
}
#v16-auth-newpass-wrap {
  margin-top: 4px;
  width: 100%;
}
#v16-auth-newpass-wrap .v16-auth-input {
  width: 100%;
  box-sizing: border-box;
}
#map {
  transition: filter 1.4s ease;
}
#map.v18-w-rain {
  filter: saturate(.55) brightness(.87) contrast(.96);
}
#map.v18-w-snow {
  filter: saturate(.72) brightness(1.04) contrast(.97);
}
.v8-list-icon.v30-dir-icon {
  width: 28px !important;
  height: 28px !important;
  display: inline-grid !important;
  place-items: center !important;
  background: transparent !important;
  padding: 0 !important;
}

/* --- V30 Profil Moderne --- */
.v30-prof-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.v30-prof-hero {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 58, 138, .48));
  border: 1px solid rgba(56, 189, 248, .35);
  box-shadow: 0 10px 30px rgba(2, 6, 23, .45);
}
.v30-prof-avatar-ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  padding: 2.5px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 18px rgba(56, 189, 248, .35);
}
.v30-prof-avatar-ring img,
.v30-prof-avatar-ring > span:first-child {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0f172a;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 32px;
}
.v30-prof-lvl-pill {
  position: absolute;
  bottom: -4px;
  right: -4px;
  min-width: 26px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border: 2px solid #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.v30-prof-id {
  flex: 1;
  min-width: 0;
}
.v30-prof-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.v30-prof-name-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: #f8fafc;
}
.v30-prof-role {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .15);
  border: 1px solid rgba(56, 189, 248, .4);
  color: #7dd3fc;
}
.v30-prof-role.v30-role-admin {
  background: rgba(245, 158, 11, .18);
  border-color: #f59e0b;
  color: #fcd34d;
}
.v30-prof-sub {
  margin-top: 3px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #cbd5e1;
}
.v30-prof-xp {
  margin-top: 10px;
}
.v30-prof-xp-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #cbd5e1;
  margin-bottom: 5px;
}
.v30-prof-xp-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, .85);
  border: 1px solid rgba(148, 163, 184, .2);
  overflow: hidden;
}
.v30-prof-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8, #34d399);
  border-radius: 999px;
  transition: width .35s ease;
}
.v30-prof-xp-hint {
  margin-top: 4px;
  font-size: 10.5px;
  color: #94a3b8;
}
.v30-prof-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.v30-kpi {
  background: rgba(15, 23, 42, .85);
  border: 1px solid rgba(148, 163, 184, .22);
  border-top: 3px solid #38bdf8;
  border-radius: 10px;
  padding: 10px 10px 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.v30-kpi.kpi-gold { border-top-color: #f59e0b; }
.v30-kpi.kpi-emerald { border-top-color: #10b981; }
.v30-kpi.kpi-cyan { border-top-color: #38bdf8; }
.v30-kpi.kpi-rose { border-top-color: #ef4444; }
.v30-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; color: #94a3b8; letter-spacing: .04em; }
.v30-kpi-val { font-size: 17px; font-weight: 900; color: #f8fafc; line-height: 1.2; }
.v30-kpi small { font-size: 10.5px; color: #64748b; }
.v30-prof-card {
  background: rgba(15, 23, 42, .82);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  padding: 12px 14px;
}
.v30-prof-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.v30-prof-card-head strong { font-size: 13px; color: #f1f5f9; }
.v30-prof-card-head > span, .v30-pill-count {
  font-size: 11px;
  font-weight: 700;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .14);
  padding: 3px 9px;
  border-radius: 999px;
}
.v30-guard-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
}
.v30-guard-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.v30-guard-bar-wrap {
  width: 100%;
  max-width: 34px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.v30-guard-bar {
  width: 100%;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #38bdf8, #0284c7);
  min-height: 6px;
}
.v30-guard-col > span { font-size: 9.5px; color: #7dd3fc; font-weight: 700; margin-top: 3px; }
.v30-guard-col > small { font-size: 9px; color: #64748b; }
.v30-empty-note { color: #94a3b8; font-size: 12px; text-align: center; width: 100%; align-self: center; }
.v30-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.v30-badge-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(2, 6, 23, .65);
  border: 1px solid rgba(51, 65, 85, .8);
}
.v30-badge-item.is-ok {
  background: linear-gradient(135deg, rgba(16, 185, 129, .14), rgba(15, 23, 42, .85));
  border-color: rgba(16, 185, 129, .55);
}
.v30-badge-item.is-lock { opacity: .6; }
.v30-badge-ico { font-size: 20px; flex: none; }
.v30-badge-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.v30-badge-txt strong { font-size: 11.5px; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v30-badge-txt small { font-size: 10px; color: #94a3b8; }
.v30-badge-state { font-size: 12px; color: #34d399; font-weight: 900; }

/* --- V30 Paramètres Modernes --- */
.v30-set-shell {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.v30-set-card {
  background: rgba(15, 23, 42, .86);
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 12px;
  padding: 13px 15px;
}
.v30-set-card.v30-set-accent-cyan {
  border-color: rgba(56, 189, 248, .45);
  background: linear-gradient(135deg, rgba(14, 165, 233, .08), rgba(15, 23, 42, .92));
}
.v30-set-card.v30-set-creator {
  border: 1.5px solid #f59e0b;
  background: linear-gradient(135deg, rgba(245, 158, 11, .14), rgba(15, 23, 42, .94));
}
.v30-set-card.v30-set-danger {
  border-color: rgba(239, 68, 68, .35);
}
.v30-set-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}
.v30-set-head strong { display: block; font-size: 13.5px; color: #f8fafc; }
.v30-set-head small { display: block; font-size: 11px; color: #94a3b8; margin-top: 2px; }
.v30-set-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .15);
  color: #7dd3fc;
  white-space: nowrap;
}
.v30-set-pill.is-ok { background: rgba(16, 185, 129, .18); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, .4); }
.v30-set-pill.is-gold { background: #b45309; color: #fef3c7; }
.v30-set-notice {
  font-size: 11px;
  color: #7dd3fc;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(56, 189, 248, .3);
  border-radius: 8px;
  padding: 7px 10px;
  margin-bottom: 9px;
}
.v30-set-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 9px;
}
.v30-field-lbl {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 3px;
}
.v30-input {
  width: 100%;
  background: #060b16;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #f8fafc;
  padding: 8px 10px;
  font-size: 13px;
}
.v30-input:focus {
  outline: none;
  border-color: #38bdf8;
}
.v30-set-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid rgba(148, 163, 184, .1);
  font-size: 12.5px;
  color: #e2e8f0;
}
.v30-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.v30-avatar-meta strong { display: block; color: #fff; font-size: 14px; margin-bottom: 5px; }
.v30-avatar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.v30-pseudo-row { display: flex; gap: 8px; align-items: center; }
.v30-weather-seg {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}
.v30-seg-btn {
  padding: 7px 6px;
  border-radius: 8px;
  background: rgba(2, 6, 23, .75);
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.v30-seg-btn.active {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  border-color: #bae6fd;
  color: #041e2e;
}
.v30-set-btn-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.v30-contact-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, .12);
  font-size: 12px;
  color: #cbd5e1;
}

/* --- V30 Passe de Combat Moderne (Compact & Pleine Hauteur Directe) --- */
.season-modal-box {
  max-width: 1380px !important;
  width: 96vw !important;
  max-height: 94vh !important;
  padding: 12px 16px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
#season-body {
  overflow: hidden !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}
.v30-pass-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.v30-pass-hero.compact {
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .92));
  border: 1px solid rgba(56, 189, 248, .35);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v30-pass-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.v30-pass-left-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.v30-pass-season-tag { font-size: 13.5px; font-weight: 900; color: #fff; }
.v30-pass-days {
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  background: rgba(56, 189, 248, .15); color: #7dd3fc;
}
.v30-pass-status {
  font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.v30-pass-status.is-free { background: rgba(59, 130, 246, .2); color: #93c5fd; }
.v30-pass-status.is-std { background: rgba(16, 185, 129, .2); color: #6ee7b7; border: 1px solid #10b981; }
.v30-pass-status.is-vip { background: linear-gradient(135deg, #9333ea, #c084fc); color: #fff; }

.v30-pass-mid-progress {
  flex: 1;
  min-width: 180px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  background: rgba(2, 6, 23, .65);
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .18);
}
.v30-pass-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #e2e8f0;
}
.v30-pass-progress-info span { color: #7dd3fc; font-weight: 700; font-size: 10.5px; }
.v30-pass-bar {
  height: 6px; border-radius: 999px; background: #0f172a; overflow: hidden;
}
.v30-pass-bar-fill {
  height: 100%; background: linear-gradient(90deg, #0ea5e9, #22d3ee, #34d399); border-radius: 999px;
}

.v30-pass-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.v30-collect-btn {
  padding: 5px 12px;
  border-radius: 8px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 900;
  cursor: default;
}
.v30-collect-btn.has-items {
  background: linear-gradient(135deg, #0ea5e9, #22d3ee);
  border-color: #bae6fd;
  color: #041d2e;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(34, 211, 238, .35);
}
.v30-jump-now-btn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, .4);
  background: rgba(14, 165, 233, .12);
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.v30-pass-sub-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.v30-pass-offers-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.v30-offer-pill {
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}
.v30-offer-pill span { font-size: 9.5px; opacity: .88; font-weight: 600; }
.v30-offer-pill.offer-std { background: linear-gradient(135deg, #065f46, #059669); border-color: #34d399; }
.v30-offer-pill.offer-vip { background: linear-gradient(135deg, #6b21a8, #9333ea); border-color: #c084fc; }
.v30-offer-pill.offer-ult { background: linear-gradient(135deg, #b45309, #d97706); border-color: #fcd34d; }
.v30-offer-active-pill {
  font-size: 10.5px; font-weight: 800; color: #e9d5ff; padding: 2px 8px; border-radius: 6px;
  background: rgba(147, 51, 234, .2); border: 1px solid rgba(192, 132, 252, .4);
}

.v30-tier-jumps-inline {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #94a3b8;
}
.v30-jump-label { font-weight: 700; color: #64748b; }
.v30-tier-jumps-inline button {
  padding: 2px 7px; border-radius: 999px; background: rgba(15, 23, 42, .9);
  border: 1px solid #334155; color: #cbd5e1; font-size: 10px; font-weight: 700; cursor: pointer;
}
.v30-tier-jumps-inline button:hover { border-color: #38bdf8; color: #fff; }

.v30-pass-board {
  display: flex;
  gap: 6px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.v30-pass-legend {
  flex: 0 0 88px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v30-leg-head {
  height: 28px; border-radius: 6px; background: #0f172a; border: 1px solid #334155;
  display: grid; place-items: center; font-size: 9.5px; font-weight: 900; color: #94a3b8; letter-spacing: .06em;
}
.v30-leg-cell {
  height: 72px; min-height: 72px; max-height: 72px; border-radius: 8px; padding: 4px 6px;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  border: 1px solid #334155;
}
.v30-leg-cell strong { font-size: 10.5px; }
.v30-leg-cell small { font-size: 8.5px; color: #94a3b8; }
.v30-leg-cell.leg-vip { background: rgba(88, 28, 135, .32); border-color: rgba(168, 85, 247, .45); color: #e9d5ff; }
.v30-leg-cell.leg-std { background: rgba(6, 78, 59, .32); border-color: rgba(16, 185, 129, .45); color: #a7f3d0; }
.v30-leg-cell.leg-free { background: rgba(15, 23, 42, .85); border-color: rgba(56, 189, 248, .4); color: #bae6fd; }

.v30-track {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; overflow-y: hidden; padding-bottom: 5px;
  scroll-behavior: smooth;
}
.v30-track::-webkit-scrollbar {
  height: 6px;
}
.v30-track::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
}
.v30-track::-webkit-scrollbar-thumb {
  background: #38bdf8;
  border-radius: 999px;
}

.v30-tier-col {
  flex: 0 0 138px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.v30-tier-cap {
  height: 28px; border-radius: 6px; padding: 2px 4px;
  background: #0f172a; border: 1px solid #334155;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.v30-tier-cap span { font-size: 10px; font-weight: 900; color: #e2e8f0; }
.v30-tier-cap small { font-size: 8.5px; color: #64748b; }
.v30-tier-col.is-current .v30-tier-cap {
  background: linear-gradient(135deg, #0284c7, #0ea5e9); border-color: #bae6fd;
}
.v30-tier-col.is-current .v30-tier-cap span,
.v30-tier-col.is-current .v30-tier-cap small { color: #fff; }
.v30-tier-col.is-next .v30-tier-cap { border-color: #38bdf8; }
.v30-tier-col.is-next .v30-tier-cap small { color: #7dd3fc; }

.v30-reward-card {
  height: 72px; min-height: 72px; max-height: 72px; border-radius: 8px; padding: 4px 5px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; text-align: center;
  border: 1px solid #334155; background: rgba(15, 23, 42, .88);
}
.v30-reward-card.tier-vip { background: rgba(40, 20, 66, .88); border-color: rgba(168, 85, 247, .35); }
.v30-reward-card.tier-std { background: rgba(13, 42, 34, .88); border-color: rgba(16, 185, 129, .35); }
.v30-reward-card.tier-free { background: rgba(15, 23, 42, .9); border-color: rgba(56, 189, 248, .28); }
.v30-reward-card.is-claimable {
  box-shadow: 0 0 10px rgba(56, 189, 248, .35);
  border-color: #38bdf8;
}
.v30-reward-card.is-claimed { opacity: .78; border-color: #10b981; }
.v30-reward-card.is-locked { opacity: .6; }
.v30-rew-ico { font-size: 16px; line-height: 1; }
.v30-rew-lbl {
  font-size: 9.5px; font-weight: 700; color: #f8fafc; line-height: 1.1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 125px;
}
.v30-chip-btn {
  border: 0; border-radius: 999px; padding: 2px 8px; font-size: 9.5px; font-weight: 900; cursor: pointer; color: #fff;
}
.v30-chip-btn.btn-vip { background: linear-gradient(135deg, #9333ea, #a855f7); }
.v30-chip-btn.btn-std { background: linear-gradient(135deg, #059669, #10b981); }
.v30-chip-btn.btn-free { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #082f49; }
.v30-chip-ok { font-size: 9px; font-weight: 800; color: #34d399; }
.v30-chip-lock { font-size: 8.5px; font-weight: 700; color: #94a3b8; }
.v30-chip-wait { font-size: 8.5px; color: #64748b; }
}
.v30-chip-btn.btn-vip { background: linear-gradient(135deg, #9333ea, #c084fc); }
.v30-chip-btn.btn-std { background: linear-gradient(135deg, #059669, #10b981); }
.v30-chip-btn.btn-free { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #041d2e; }
.v30-chip-ok { font-size: 10px; font-weight: 800; color: #4ade80; }
.v30-chip-lock { font-size: 9.5px; color: #fbbf24; }
.v30-chip-wait { font-size: 10px; color: #64748b; }

@media (max-width: 640px) {
  .v30-prof-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .v30-badge-grid, .v30-set-form-grid, .v30-weather-seg, .v30-pass-how { grid-template-columns: 1fr; }
  .v30-pass-legend { display: none; }
}

/* =====================================================================
   V30 — Onglet Alliance à droite au milieu (tiroir ‹ / ›) + badges resserrés
   ===================================================================== */
.quick-bottom-right {
  right: max(18px, var(--sar)) !important;
  bottom: max(10px, var(--sab)) !important;
  gap: 4px !important;
}
.quick-bottom-left {
  left: max(10px, var(--sal)) !important;
  bottom: max(10px, var(--sab)) !important;
  gap: 4px !important;
}
.quick-bottom-right .orb,
.quick-bottom-left .orb {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
}
.quick-bottom-right .orb .orb-icon-img,
.quick-bottom-left .orb .orb-icon-img {
  width: 28px !important;
  height: 28px !important;
}
#btn-missions .orb-icon-img,
#btn-missions .v30-orb-svg {
  width: 30px !important;
  height: 30px !important;
}

/* Tiroir Alliance centré verticalement sur le bord droit */
.quick-middle-right {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  z-index: 35;
  transition: transform .32s ease, opacity .3s ease;
}
.quick-middle-right .orb {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.quick-middle-right .orb .orb-icon-img {
  width: 30px !important;
  height: 30px !important;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .95)) drop-shadow(0 0 3px rgba(96, 165, 250, .4));
}
#v30-clan-toggle {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 28px;
  border-radius: 6px 0 0 6px;
  background: rgba(2, 6, 23, .75);
  border: 1px solid rgba(148, 163, 184, .3);
  border-right: 0;
  color: rgba(226, 232, 240, .65);
  font: 800 12px/1 system-ui, sans-serif;
  cursor: pointer;
  z-index: 35;
  box-shadow: -2px 0 8px rgba(0, 0, 0, .4);
  opacity: .75;
}
#v30-clan-toggle:hover {
  color: #38bdf8;
  background: #0b1220;
  opacity: 1;
}
.v30-clan-hidden .quick-middle-right {
  transform: translate(140%, -50%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* === V30.4: Chiffres de notification en bas à droite des badges === */
.orb .v5-count,
.orb .orb-count,
.orb .orb-badge,
#v5-mission-count,
#orb-count,
#badge-season,
#badge-quests {
  top: auto !important;
  bottom: -3px !important;
  right: -3px !important;
  left: auto !important;
}

/* === V30.5: Languette Alliance à droite + Panneau latéral droit + Clignotement missions === */
#v30-clan-drawer {
  display: none !important;
}
#v30-clan-toggle {
  position: fixed !important;
  right: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 22px !important;
  height: 56px !important;
  padding: 0 !important;
  border-radius: 10px 0 0 10px !important;
  background: rgba(51, 65, 85, .88) !important;
  border: 1px solid rgba(148, 163, 184, .45) !important;
  border-right: 0 !important;
  color: #ffffff !important;
  font: 900 18px/1 system-ui, sans-serif !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 93 !important;
  box-shadow: -3px 0 12px rgba(0, 0, 0, .45) !important;
  opacity: .95 !important;
  transition: right .25s ease, background .18s ease !important;
}
#v30-clan-toggle:hover {
  background: #0ea5e9 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}
body.v30-clan-open #v30-clan-toggle {
  right: min(560px, 48vw) !important;
}
@media (max-width: 720px) {
  body.v30-clan-open #v30-clan-toggle {
    right: min(520px, 68vw) !important;
  }
}

#alliance-modal.modal-backdrop {
  justify-content: center !important;
  align-items: center !important;
  padding: 16px !important;
  background: rgba(0, 0, 0, 0.72) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}
#alliance-modal .modal-box,
#alliance-modal .alliance-dialog-box,
#alliance-modal > div {
  width: min(840px, 94vw) !important;
  max-width: 860px !important;
  height: min(650px, 88vh) !important;
  max-height: 88vh !important;
  margin: auto !important;
  border-radius: 14px !important;
  border: 1.5px solid #3f3f46 !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
}
@media (max-width: 720px) {
  #alliance-modal .modal-box,
  #alliance-modal .alliance-dialog-box,
  #alliance-modal > div {
    width: 96vw !important;
    max-width: 96vw !important;
    height: 94vh !important;
  }
}
#alliance-modal .alliance-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#alliance-modal .alliance-main-content {
  overflow-y: auto !important;
  max-height: none !important;
}

@keyframes v30MissionBlink {
  0%, 100% {
    filter: brightness(.95) drop-shadow(0 1px 3px rgba(0, 0, 0, .75));
    transform: scale(1);
  }
  50% {
    filter: brightness(1.65) saturate(1.3) drop-shadow(0 0 10px rgba(255, 255, 255, .9));
    transform: scale(1.1);
  }
}
#map .marker-mission:not(.v9-work-active) svg {
  animation: v30MissionBlink 1.05s ease-in-out infinite !important;
  transform-origin: center center;
}

/* === V30.6: Badge compteur sur l'onglet Alliance à droite, bouton Virer & Tchat === */
#v30-clan-toggle {
  overflow: visible !important;
}
.v30-clan-badge {
  position: absolute;
  bottom: -6px;
  left: -7px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  font: 900 10px/1 system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .55);
  pointer-events: none;
}
.v30-kick-btn {
  background: rgba(220, 38, 38, .22) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, .55) !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  cursor: pointer;
}
.v30-kick-btn:hover {
  background: #dc2626 !important;
  color: #ffffff !important;
}
.v30-alliance-rf-box {
  background: rgba(88, 28, 135, .22);
  border: 1px solid rgba(168, 85, 247, .45);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
}
.v30-alliance-rf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px;
  color: #e2e8f0;
}
.v30-rf-pending {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, .16);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, .4);
}
.v30-alliance-chat-box {
  margin-top: 12px;
}

/* === V30.7: Audit UX — Villes rapides, masquage doublons carte, moyens requis, escalade & thème V30 === */
.v30-quick-cities {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 10px;
}
.v30-qc-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}
.v30-qc-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(15, 23, 42, .85);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .12s ease;
}
.v30-qc-btn:hover {
  background: rgba(14, 165, 233, .28);
  border-color: #38bdf8;
  transform: translateY(-1px);
}

#tab-left,
#tab-right {
  display: none !important;
}

@keyframes v30PhonePulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(109, 40, 217, .45), 0 0 0 0 rgba(239, 68, 68, .65); }
  50% { box-shadow: 0 6px 20px rgba(109, 40, 217, .7), 0 0 0 8px rgba(239, 68, 68, 0); }
}
#btn-hotline:has(.orb-count.has-alerts) {
  animation: v30PhonePulse 1.6s ease-in-out infinite !important;
}

.v30-req-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(56, 189, 248, .28);
}
.v30-req-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #bae6fd;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.v30-req-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.v30-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.v30-req-pill.ok {
  background: rgba(16, 185, 129, .2);
  border: 1px solid rgba(52, 211, 153, .55);
  color: #6ee7b7;
}
.v30-req-pill.missing {
  background: rgba(245, 158, 11, .18);
  border: 1px solid rgba(251, 191, 36, .6);
  color: #fde68a;
}
.v30-escalated-banner {
  margin: 0 0 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(127, 29, 29, .85), rgba(88, 28, 135, .75));
  border: 1px solid rgba(248, 113, 113, .75);
  color: #fee2e2;
  font-size: 12px;
  box-shadow: 0 6px 18px rgba(220, 38, 38, .32);
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation: v30EscPulse 2.4s ease-in-out infinite alternate;
}
@keyframes v30EscPulse {
  0% { border-color: rgba(248, 113, 113, .55); box-shadow: 0 4px 12px rgba(220, 38, 38, .2); }
  100% { border-color: rgba(251, 146, 60, .9); box-shadow: 0 6px 20px rgba(234, 88, 12, .45); }
}
.v30-escalated-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.v30-escalated-tag {
  font-weight: 900;
  color: #fef08a;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 11px;
}
.v30-escalated-badge-count {
  background: rgba(239, 68, 68, .35);
  border: 1px solid rgba(252, 165, 165, .5);
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 11px;
}
.v30-escalated-radio {
  background: rgba(15, 23, 42, .65);
  border-left: 3px solid #f97316;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #f1f5f9;
}
.v30-escalated-radio strong {
  color: #fdba74;
}
.v30-escalated-radio em {
  font-style: italic;
  color: #ffffff;
}
.v30-escalated-needs {
  font-size: 12px;
  color: #e2e8f0;
}
.v30-escalated-needs strong {
  color: #fef08a;
}

#mission-focus {
  background: linear-gradient(180deg, rgba(11, 18, 32, .97), rgba(7, 12, 24, .98)) !important;
  border: 1px solid rgba(56, 189, 248, .35) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .7) !important;
  border-radius: 16px !important;
}
#v5-calls-panel {
  background: linear-gradient(180deg, rgba(11, 18, 32, .96), rgba(7, 12, 24, .98)) !important;
  border-right: 1px solid rgba(56, 189, 248, .3) !important;
}
.v5-call {
  background: rgba(15, 23, 42, .85) !important;
  border: 1px solid rgba(56, 189, 248, .28) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .35) !important;
}
.v5-call-btn {
  border-radius: 9px !important;
  font-weight: 800 !important;
}
#v8-building-screen {
  background: linear-gradient(180deg, rgba(11, 18, 32, .97), rgba(7, 12, 24, .98)) !important;
  border: 1px solid rgba(56, 189, 248, .32) !important;
  border-radius: 16px !important;
}
#v8-building-screen .v8-table-frame {
  border-radius: 10px !important;
  border: 1px solid rgba(148, 163, 184, .2) !important;
  background: rgba(15, 23, 42, .7) !important;
}

/* Mode Automatique définitivement retiré */
#v12-auto-mode-bar,
.v12-auto-mode-bar,
#v12-auto-modal,
#v12-auto-summary-modal,
.v12-auto-modal,
.v12-auto-summary-modal,
.v12-modal-backdrop[id*="auto"],
.v12-modal-backdrop:has(.v16-auto-summary),
.v12-modal-backdrop:has(.v16-auto-lvl-box) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Modale Bilan Mode Automatique (neutralisée) */
.v12-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(3, 7, 18, 0.88) !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 16px !important;
  padding-top: max(20px, 5vh) !important;
  padding-bottom: max(20px, 5vh) !important;
  z-index: 9999 !important;
  backdrop-filter: blur(8px) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}
.v12-modal-backdrop.hidden {
  display: none !important;
}
.v12-modal-box {
  width: min(540px, 100%) !important;
  max-height: calc(100vh - 48px) !important;
  overflow-y: auto !important;
  position: relative !important;
  margin: auto !important;
  box-sizing: border-box !important;
  -webkit-overflow-scrolling: touch !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
}
.v12-modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 20 !important;
  transition: all 0.15s ease !important;
}
.v12-modal-close:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
  transform: scale(1.05) !important;
}

/* Bouton passer l'intro vidéo (évite tout blocage sur la première image) */
.v8-splash-skip-btn {
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  z-index: 100000 !important;
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  color: #f8fafc !important;
  padding: 8px 16px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  backdrop-filter: blur(8px) !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
}
.v8-splash-skip-btn:hover {
  background: rgba(30, 41, 59, 0.98) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  color: #38bdf8 !important;
  transform: translateY(-1px) !important;
}

#v8-splash-sound-btn, .v8-splash-sound-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}









/* ==========================================================================
   ALERTE 112 — RÉALISME : PLAQUES SIV, HANGAR CASERNE & SYNERGIE MULTI-SERVICES
   ========================================================================== */

/* --- Plaque d'immatriculation française SIV officielle --- */
.siv-license-plate {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  height: 23px;
  min-width: 142px;
  max-width: 165px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f4f6 55%, #e2e8f0 100%);
  border: 1.5px solid #0f172a;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  padding: 0;
  overflow: hidden;
  user-select: none;
  font-family: 'Arial Black', -apple-system, sans-serif;
  box-sizing: border-box;
}
.siv-eu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 100%;
  background: #003399;
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  padding-top: 1px;
  border-right: 1px solid rgba(0,0,0,0.3);
}
.siv-stars {
  color: #ffcc00;
  font-size: 6.5px;
  line-height: 1;
}
.siv-digits {
  flex: 1;
  text-align: center;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.8px;
  padding: 0 3px;
  white-space: nowrap;
}
.siv-dep {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 100%;
  background: #003399;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  border-left: 1px solid rgba(0,0,0,0.3);
}
.siv-logo {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #38bdf8;
  margin-bottom: 1px;
}

/* --- Hangar Opérationnel & Travées Caserne --- */
.hangar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 4px 0 12px 0;
}
.hangar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #111c33 0%, #0a1120 100%);
  border: 1px solid #233554;
  border-radius: 10px;
  padding: 9px 12px;
  color: #f8fafc;
  flex-wrap: wrap;
  gap: 8px;
}
.hangar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 800;
}
.hangar-toggle-btn {
  background: #1e293b;
  color: #94a3b8;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.hangar-toggle-btn.active {
  background: #0284c7;
  color: #ffffff;
  border-color: #38bdf8;
}
.hangar-bays-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}
.hangar-bay {
  position: relative;
  background: linear-gradient(180deg, #141e33 0%, #090f1a 100%);
  border: 2px solid #243450;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.hangar-bay:hover {
  border-color: #38bdf8;
  transform: translateY(-2px);
}
.hangar-bay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #22c55e, #10b981);
}
.hangar-bay.empty-bay::before {
  background: #475569;
}
.hangar-bay.mission-bay::before {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.hangar-bay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.hangar-bay-floor {
  background: #070c16;
  border: 1px dashed #22324d;
  border-radius: 8px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 105px;
  margin-bottom: 10px;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hangar-vehicle-img {
  width: 140px;
  height: auto;
  max-height: 65px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,0.9));
  transition: transform 0.2s ease;
}
.hangar-vehicle-img:hover {
  transform: scale(1.05);
}
.hangar-hazard-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: repeating-linear-gradient(45deg, #f59e0b, #f59e0b 8px, #0f172a 8px, #0f172a 16px);
}
.hangar-bay-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hangar-veh-name {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hangar-veh-spec {
  font-size: 11px;
  color: #94a3b8;
}
.hangar-bay-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* --- Badge Mission Combinée Multi-Services --- */
.combined-mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(90deg, #7c3aed, #0284c7);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4);
}
.combined-bonus-tag {
  background: #10b981;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

/* =====================================================================
   VÉHICULES ALLIÉS EN DIRECT SUR LA CARTE & INTERFACE D'ALLIANCE
   ===================================================================== */
.ally-live-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(90deg, #1e1b4b, #0f172a);
  border: 1px solid #4338ca;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 8px 0 12px;
}
.ally-live-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #312e81;
  color: #e0e7ff;
  border: 1px solid #6366f1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ally-live-toggle-btn.active {
  background: #059669;
  border-color: #34d399;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
}
.ally-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}
.ally-live-toggle-btn.active .ally-live-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: v17-play-pulse 1.5s infinite;
}

/* Marqueurs véhicules alliés sur la carte */
.ally-vehicle-marker-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: auto;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 18;
}
.ally-vehicle-marker-node:hover {
  transform: scale(1.15) !important;
  z-index: 25;
}
.ally-vehicle-halo {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.45) 0%, rgba(56, 189, 248, 0) 70%);
  animation: ally-gyro-pulse 1.2s infinite ease-in-out;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@keyframes ally-gyro-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.5; }
  50% { transform: translate(-50%, -50%) scale(1.4); opacity: 0.95; }
}
.ally-vehicle-tag {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid #0284c7;
  color: #38bdf8;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  margin-bottom: 2px;
}
.ally-vehicle-img {
  width: 32px;
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.85));
}

/* =====================================================================
   REFONTE INTERFACE ALLIANCE (EXACTEMENT CONFORME A LA PHOTO)
   ===================================================================== */

/* Onglets latéraux verticaux gauche */
.alliance-side-tabs {
  width: 64px !important;
  background: #17181c !important;
  border-right: 1px solid #2d2f36 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  padding: 16px 0 !important;
  gap: 14px !important;
}

.alliance-side-tab-btn {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: #2a2c33 !important;
  color: #94a3b8 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.alliance-side-tab-btn:hover {
  background: #363942 !important;
  color: #f8fafc !important;
  transform: scale(1.05);
}

.alliance-side-tab-btn.active {
  background: #7c5ce6 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(124, 92, 230, 0.7) !important;
  border-color: #a78bfa !important;
}

/* --- ONGLET MEMBRES (PHOTO FIDELITY) --- */
.photo-members-control-bar {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  margin-bottom: 12px !important;
}

.photo-effectifs-label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}

.photo-map-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #e2e8f0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.photo-map-toggle input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 5px !important;
  background: #2b2d35 !important;
  border: 1.5px solid #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  position: relative !important;
  margin: 0 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

.photo-map-toggle input[type="checkbox"]:checked {
  background: #22c55e !important;
  border-color: #16a34a !important;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.45) !important;
}

.photo-map-toggle input[type="checkbox"]:checked::after {
  content: '✓' !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.btn-alliance-red-photo {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  border-radius: 8px !important;
  padding: 7px 22px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35) !important;
}

.btn-alliance-red-photo:hover {
  background: #dc2626 !important;
}

.photo-members-table-wrap {
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-radius: 8px !important;
  overflow: auto !important;
  flex: 1 1 auto !important;
  max-height: 480px !important;
}

.photo-members-table {
  width: 100% !important;
  border-collapse: collapse !important;
}

.photo-members-table thead tr {
  background: #1e2025 !important;
  border-bottom: 1px solid #2d2f36 !important;
}

.photo-members-table th {
  padding: 10px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
}

.photo-members-table td {
  padding: 8px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  vertical-align: middle !important;
}

.photo-members-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

.photo-col-name {
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  text-align: left !important;
}

.photo-col-lvl {
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  text-align: center !important;
  width: 90px !important;
}

.photo-col-grade {
  text-align: right !important;
  width: 230px !important;
  padding-right: 20px !important;
}

.photo-members-table th.photo-col-grade {
  text-align: right !important;
  padding-right: 32px !important;
}

.photo-grade-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.photo-chef-label {
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  min-width: 96px !important;
  text-align: center !important;
  display: inline-block !important;
}

.photo-blue-btn {
  background: #1d72fe !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 5px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: none !important;
  min-width: 96px !important;
  text-align: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(29, 114, 254, 0.3) !important;
  transition: background 0.15s ease !important;
}

.photo-blue-btn:hover {
  background: #155bd5 !important;
}

.photo-dot {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.photo-dot.dot-online {
  background: #22c55e !important;
  box-shadow: 0 0 7px #22c55e !important;
}

.photo-dot.dot-mission {
  background: #f97316 !important;
  box-shadow: 0 0 7px #f97316 !important;
}

.photo-dot.dot-offline {
  background: #64748b !important;
}

.photo-kick-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  transition: color 0.15s ease !important;
}

.photo-kick-btn:hover {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
}

/* --- ONGLET INFORMATIONS & TCHAT PRINCIPAL --- */
.alliance-info-card-top {
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 10px !important;
}

.alliance-identity-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
}

.alliance-star-badge {
  background: #7c5ce6 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
}

.alliance-header-texts {
  flex: 1 1 auto !important;
}

.alliance-title-text {
  margin: 0 0 3px !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.alliance-sub-specs {
  display: flex !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.alliance-sub-pill {
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

.alliance-desc-box {
  background: #1e2025 !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  color: #cbd5e1 !important;
  margin-bottom: 8px !important;
}

.alliance-treasury-banner {
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.35) 0%, rgba(30, 41, 59, 0.4) 100%) !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.treasury-coin-icon {
  font-size: 20px !important;
}

.treasury-banner-text {
  font-size: 12px !important;
  color: #86efac !important;
  display: flex !important;
  flex-direction: column !important;
}

.treasury-banner-text small {
  color: #a7f3d0 !important;
  font-size: 10.5px !important;
  opacity: 0.9 !important;
}

.alliance-chat-main-section {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 340px !important;
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-radius: 8px !important;
  overflow: hidden !important;
}

.alliance-chat-header {
  background: #1e2025 !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: #ede9fe !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  border-bottom: 1px solid #2d2f36 !important;
}

.alliance-chat-messages-container {
  flex: 1 1 auto !important;
  min-height: 240px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.alliance-chat-msg {
  background: #202228 !important;
  border: 1px solid #2a2c33 !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  max-width: 88% !important;
  align-self: flex-start !important;
}

.alliance-chat-msg.mine {
  background: #282240 !important;
  border-color: #6d28d9 !important;
  align-self: flex-end !important;
}

.alliance-chat-msg.sys-msg {
  background: rgba(124, 92, 230, 0.12) !important;
  border: 1px dashed rgba(167, 139, 250, 0.4) !important;
  color: #e9d5ff !important;
  font-size: 12px !important;
  max-width: 100% !important;
  align-self: stretch !important;
}

.chat-meta {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 3px !important;
}

.chat-author {
  font-weight: 700 !important;
  font-size: 12px !important;
  color: #f1f5f9 !important;
}

.chat-role-badge {
  font-size: 9.5px !important;
  font-weight: 700 !important;
  padding: 1px 6px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
}

.chat-role-badge.chef {
  background: #b45309 !important;
  color: #fef3c7 !important;
}

.chat-role-badge.adjoint {
  background: #1d4ed8 !important;
  color: #dbeafe !important;
}

.chat-role-badge.membre {
  background: #374151 !important;
  color: #e5e7eb !important;
}

.chat-time {
  color: #64748b !important;
  font-size: 10.5px !important;
  margin-left: auto !important;
}

.chat-bubble-text {
  color: #f8fafc !important;
  font-size: 13px !important;
  line-height: 1.4 !important;
}

.alliance-chat-input-bar {
  display: flex !important;
  gap: 8px !important;
  padding: 10px !important;
  background: #1e2025 !important;
  border-top: 1px solid #2d2f36 !important;
}

.alliance-chat-input-bar input {
  flex: 1 1 auto !important;
  background: #141518 !important;
  border: 1px solid #374151 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
  outline: none !important;
}

.alliance-chat-input-bar input:focus {
  border-color: #7c5ce6 !important;
}

.btn-alliance-send {
  background: #7c5ce6 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  padding: 8px 20px !important;
  border: none !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.btn-alliance-send:hover {
  background: #6d28d9 !important;
}

/* --- ONGLET MISSIONS D'ALLIANCE --- */
.alliance-missions-head-banner {
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-left: 4px solid #7c5ce6 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}

.alliance-active-run-box {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.35) 0%, rgba(30, 41, 59, 0.4) 100%) !important;
  border: 1px solid rgba(168, 85, 247, 0.5) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
}

.active-run-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  animation: ally-gyro-pulse 1.5s infinite ease-in-out !important;
}

.alliance-missions-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  overflow-y: auto !important;
  max-height: 480px !important;
  padding-right: 4px !important;
}

.alliance-mission-card {
  background: #17181c !important;
  border: 1px solid #2d2f36 !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  transition: border-color 0.15s ease, transform 0.15s ease !important;
}

.alliance-mission-card:hover {
  border-color: #7c5ce6 !important;
  transform: translateY(-1px) !important;
}

.am-card-main {
  flex: 1 1 auto !important;
}

.am-card-title {
  margin: 0 0 3px !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
}

.am-card-sub {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  margin-bottom: 4px !important;
}

.am-card-needs {
  color: #cbd5e1 !important;
  font-size: 12px !important;
  margin-bottom: 6px !important;
}

.am-card-rewards {
  display: flex !important;
  gap: 12px !important;
  align-items: center !important;
  color: #fde047 !important;
  font-size: 12.5px !important;
}

.am-share-hint {
  color: #a78bfa !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.am-card-action button {
  white-space: nowrap !important;
}



/* =====================================================================
   V18 ENHANCEMENTS: SCRUBBERS, ALLY STATIONS & VEHICLES, ALLIANCE CLEANUP
   ===================================================================== */

/* 1. Curseur de navigation rapide horizontale dans le Passe de Saison */
.v30-pass-scrubber-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 10px;
  margin-top: 10px;
  backdrop-filter: blur(8px);
}

.v30-scrubber-edge {
  font-size: 11.5px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

.v30-pass-scrubber {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1e293b, #334155, #3b82f6);
  outline: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.v30-pass-scrubber::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #38bdf8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
  cursor: grab;
  transition: transform 0.15s ease, background 0.15s ease;
}

.v30-pass-scrubber::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.15);
  background: #0284c7;
}

/* 2. Curseur rapide de sélection des véhicules sur intervention */
.v42-fast-scroll-slider-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 8px;
  backdrop-filter: blur(6px);
}

.v42-fast-scroll-label {
  font-size: 11px;
  font-weight: 700;
  color: #a5b4fc;
  white-space: nowrap;
}

.v42-fast-scroll-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: #1e293b;
  outline: none;
  cursor: pointer;
}

.v42-fast-scroll-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #818cf8;
  border: 2px solid #ffffff;
  box-shadow: 0 0 8px rgba(129, 140, 248, 0.8);
  cursor: grab;
}

/* 3. Marqueurs des Casernes Alliées visibles à toutes les échelles de zoom & Écusson de Clan */
.marker-ally-station {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important; /* Pavé tactique pour se démarquer des casernes circulaires du joueur */
  background: linear-gradient(135deg, #4c1d95 0%, #2e1065 60%, #0f172a 100%) !important;
  border: 2.5px solid #fbbf24 !important; /* Liseré Or Prestige Clan */
  outline: 2px solid rgba(168, 85, 247, 0.7) !important; /* Halo violet d'alliance */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.65), 0 0 24px rgba(168, 85, 247, 0.4), 0 4px 10px rgba(0, 0, 0, 0.85) !important;
  cursor: pointer !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
  z-index: 15 !important;
}

.marker-ally-station:hover {
  transform: scale(1.22) !important;
  border-color: #fef08a !important;
  outline-color: #c084fc !important;
  box-shadow: 0 0 22px rgba(254, 240, 138, 0.95), 0 0 35px rgba(192, 132, 252, 0.85), 0 6px 14px rgba(0, 0, 0, 0.9) !important;
  z-index: 35 !important;
}

/* Écusson de clan visible sur chaque caserne allié */
.ally-clan-crest {
  position: absolute !important;
  top: -8px !important;
  right: -8px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 6px rgba(251, 191, 36, 0.8)) !important;
  pointer-events: none !important;
  z-index: 5 !important;
  animation: ally-crest-bob 3s ease-in-out infinite !important;
}

@keyframes ally-crest-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.1); }
}

.ally-station-icon {
  font-size: 15px !important;
  pointer-events: none !important;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8)) !important;
}

/* Bandeau nominatif du membre du clan sous la caserne */
.ally-station-clan-label {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  font-size: 8.5px !important;
  font-weight: 800 !important;
  color: #fde047 !important;
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(251, 191, 36, 0.75) !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.1 !important;
  z-index: 10 !important;
}

/* Couleurs spécifiques de liseré intérieur par corps de métier tout en gardant le thème Clan/Or */
.marker-ally-station.branch-pompiers {
  border-left-color: #ef4444 !important;
}

.marker-ally-station.branch-gendarmerie {
  border-left-color: #3b82f6 !important;
}

.marker-ally-station.branch-police {
  border-left-color: #06b6d4 !important;
}

.marker-ally-station.branch-hopitaux {
  border-left-color: #10b981 !important;
}

/* Visibilité maintenue au dézoom */
.map-zoom-low .marker-ally-station {
  width: 22px !important;
  height: 22px !important;
  border-radius: 6px !important;
  border-width: 2px !important;
}

.map-zoom-low .marker-ally-station .ally-station-icon {
  font-size: 11px !important;
}

.map-zoom-low .marker-ally-station .ally-clan-crest {
  font-size: 10px !important;
  top: -6px !important;
  right: -6px !important;
}

.map-zoom-min .marker-ally-station {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  outline: none !important;
}

.map-zoom-min .marker-ally-station .ally-station-icon {
  font-size: 9px !important;
}

.map-zoom-min .marker-ally-station .ally-clan-crest {
  display: none !important;
}

/* 4. Marqueurs et étiquettes des Véhicules Alliés (échelle exacte des véhicules joueurs 28x40px) */
.ally-vehicle-node {
  width: 28px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.ally-vehicle-node .vehicle-map-body {
  width: 28px !important;
  height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.ally-vehicle-node .vehicle-topview {
  width: 28px !important;
  height: 40px !important;
  max-width: 28px !important;
  max-height: 40px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.65)) !important;
  transform-origin: 50% 50% !important;
}

.ally-vehicle-pill {
  position: absolute !important;
  bottom: calc(100% + 2px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #f1f5f9 !important;
  font-size: 8px !important;
  font-weight: 700 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  border: 1px solid rgba(168, 85, 247, 0.6) !important;
  white-space: nowrap !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  pointer-events: none !important;
  z-index: 10 !important;
  line-height: 1.1 !important;
  letter-spacing: 0.2px !important;
}

/* 5. Carte de mission d'alliance propre (nom uniquement) */
.alliance-mission-card-clean:hover {
  background: #202227 !important;
  border-color: #38bdf8 !important;
}


/* =====================================================================
   RÉDUCTION PROGRESSIVE DE LA TAILLE DES VÉHICULES AU DÉZOOM (PC & MAP)
   IMPORTANT : Le scale est appliqué EXCLUSIVEMENT sur .vehicle-map-body
   pour préserver intégralement la translation translate3d(x,y) de MapLibre
   sur le marqueur parent, évitant ainsi tout blocage en coin supérieur gauche.
   ===================================================================== */
#map.map-zoom-high .marker-vehicle .vehicle-map-body,
#map.map-zoom-high .vehicle-map-v2 .vehicle-map-body,
#map.map-zoom-high .ally-vehicle-node .vehicle-map-body {
  transform: scale(1) !important;
  transform-origin: center center !important;
  transition: transform 0.2s ease-out !important;
}

#map.map-zoom-mid .marker-vehicle .vehicle-map-body,
#map.map-zoom-mid .vehicle-map-v2 .vehicle-map-body,
#map.map-zoom-mid .ally-vehicle-node .vehicle-map-body {
  transform: scale(0.65) !important;
  transform-origin: center center !important;
  transition: transform 0.2s ease-out !important;
}

#map.map-zoom-low .marker-vehicle .vehicle-map-body,
#map.map-zoom-low .vehicle-map-v2 .vehicle-map-body,
#map.map-zoom-low .ally-vehicle-node .vehicle-map-body {
  transform: scale(0.38) !important;
  transform-origin: center center !important;
  transition: transform 0.2s ease-out !important;
}

#map.map-zoom-min .marker-vehicle .vehicle-map-body,
#map.map-zoom-min .vehicle-map-v2 .vehicle-map-body,
#map.map-zoom-min .ally-vehicle-node .vehicle-map-body {
  transform: scale(0.24) !important;
  transform-origin: center center !important;
  transition: transform 0.2s ease-out !important;
}

/* Échelle du gyrophare stroboscopique synchronisée avec le véhicule */
#map.map-zoom-mid .v21-gyro-pulse {
  transform: scale(0.65) !important;
}

#map.map-zoom-low .v21-gyro-pulse,
#map.map-zoom-min .v21-gyro-pulse {
  display: none !important;
}

/* Masquer les badges de texte au fort dézoom pour garder la carte nette */
#map.map-zoom-low .ally-vehicle-pill,
#map.map-zoom-low .vehicle-marker-name,
#map.map-zoom-low .ally-station-clan-label,
#map.map-zoom-min .ally-vehicle-pill,
#map.map-zoom-min .vehicle-marker-name,
#map.map-zoom-min .ally-station-clan-label {
  display: none !important;
}

#map.map-zoom-mid .ally-vehicle-pill {
  font-size: 8px !important;
  padding: 1px 4px !important;
}

#map.map-zoom-mid .ally-station-clan-label {
  font-size: 7.5px !important;
  padding: 1px 3px !important;
}

/* =====================================================================
   SURVOL PC HAUTE VISIBILITÉ (:HOVER) POUR TOUS LES BOUTONS DU JEU
   Permet d'identifier immédiatement sous le curseur quel bouton est ciblé
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  /* 1. Orbes circulaires (Missions, Messages, Alliance, Boutique, Pass, Bâtiments, Paramètres) */
  .orb {
    cursor: pointer !important;
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.18s ease,
                border-color 0.18s ease,
                filter 0.18s ease !important;
  }

  .orb:hover {
    transform: translateY(-4px) scale(1.09) !important;
    filter: brightness(1.3) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.85),
                0 10px 25px rgba(0, 0, 0, 0.75),
                inset 0 0 12px rgba(255, 255, 255, 0.4) !important;
    z-index: 60 !important;
  }

  .quick-bottom-right .orb:nth-child(1):hover {
    border-color: #fb923c !important;
    box-shadow: 0 0 24px rgba(251, 146, 60, 0.85), 0 10px 25px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35) !important;
  }
  .quick-bottom-right .orb:nth-child(2):hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 24px rgba(96, 165, 250, 0.85), 0 10px 25px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35) !important;
  }
  .quick-bottom-right .orb:nth-child(3):hover {
    border-color: #c084fc !important;
    box-shadow: 0 0 24px rgba(192, 132, 252, 0.85), 0 10px 25px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35) !important;
  }
  .quick-bottom-right .orb:nth-child(4):hover {
    border-color: #4ade80 !important;
    box-shadow: 0 0 24px rgba(74, 222, 128, 0.85), 0 10px 25px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35) !important;
  }
  .quick-bottom-right .orb:nth-child(5):hover {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 24px rgba(56, 189, 248, 0.85), 0 10px 25px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(255, 255, 255, 0.35) !important;
  }

  .orb:active {
    transform: translateY(-1px) scale(0.97) !important;
  }

  /* 2. Barre HUD supérieure et capsules de monnaie / profil */
  .top-btn,
  .currency-capsule,
  .player-corner,
  #v30-clan-drawer {
    cursor: pointer !important;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease !important;
  }

  .top-btn:hover {
    transform: translateY(-2px) scale(1.04) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.65) !important;
    filter: brightness(1.22) !important;
  }

  .currency-capsule:hover {
    transform: translateY(-2px) scale(1.05) !important;
    border-color: #facc15 !important;
    box-shadow: 0 0 16px rgba(250, 204, 21, 0.6) !important;
    filter: brightness(1.18) !important;
  }

  .player-corner:hover {
    transform: translateY(-2px) scale(1.03) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5) !important;
    filter: brightness(1.2) !important;
  }

  #v30-clan-drawer:hover {
    transform: translateY(-50%) scale(1.09) !important;
    filter: brightness(1.3) !important;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.8) !important;
  }

  /* 3. Boutons d'action, d'engagement et boutons standards */
  .btn,
  .v16-btn-3d,
  .dispatch-btn,
  .quick-dispatch-btn,
  .portal-dialog-btn,
  .v8-splash-skip-btn,
  .tab-btn,
  .v18-tab,
  .season-tab {
    cursor: pointer !important;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.15s ease,
                box-shadow 0.15s ease,
                border-color 0.15s ease !important;
  }

  .btn:hover {
    transform: translateY(-2px) scale(1.03) !important;
    filter: brightness(1.25) !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.55) !important;
    border-color: #7dd3fc !important;
  }

  .v16-btn-3d.orange:hover {
    transform: translateY(-3px) scale(1.03) !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 14px 34px rgba(234, 88, 12, 0.75), 0 4px 0 #9a3412, inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  }

  .v16-btn-3d.blue:hover {
    transform: translateY(-3px) scale(1.03) !important;
    filter: brightness(1.2) !important;
    box-shadow: 0 14px 34px rgba(2, 132, 199, 0.75), 0 4px 0 #075985, inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  }

  .dispatch-btn:hover,
  .quick-dispatch-btn:hover {
    transform: translateY(-2px) scale(1.04) !important;
    filter: brightness(1.28) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.75) !important;
    border-color: #86efac !important;
  }

  .tab-btn:hover,
  .v18-tab:hover,
  .season-tab:hover {
    transform: translateY(-2px) !important;
    filter: brightness(1.2) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 12px rgba(56, 189, 248, 0.4) !important;
  }

  /* 4. Boutons de fermeture de modales */
  .modal-close:hover,
  .v16-auth-close:hover,
  .v18-close-btn:hover,
  .v42-modal-close:hover {
    transform: scale(1.2) rotate(90deg) !important;
    color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 16px rgba(239, 68, 68, 0.75) !important;
  }

  /* 5. Éléments de liste interactifs (Missions & Véhicules) */
  .mission-item:hover,
  .mission-card:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 2px 16px rgba(56, 189, 248, 0.4) !important;
    transform: translateX(4px) !important;
    cursor: pointer !important;
  }
}

/* =====================================================================
   V21 — NOUVEAUX ÉLÉMENTS VISUELS & TACTIQUES OPÉRATIONNELS
   - Bandeau Téléscripteur Radio CTA-CODIS
   - Gyrophares stroboscopiques réalistes (Code 3)
   - Périmètres tactiques de sécurité & Radar sur interventions
   - Synoptique numérique LED d'ordre de départ
   - Filtre d'ambiance Météo
   ===================================================================== */

/* 1. Bandeau Téléscripteur Radio (Radio Ticker) */
.v21-radio-ticker {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, 72vw);
  height: 32px;
  z-index: 24;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(11, 19, 36, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.12);
  color: #f8fafc;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  overflow: hidden;
  pointer-events: none;
}

.v21-ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 7px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.v21-ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: v21-pulse-dot 1.8s infinite ease-in-out;
}

@keyframes v21-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.v21-ticker-weather {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(30, 41, 59, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  white-space: nowrap;
  flex-shrink: 0;
}

.v21-ticker-content {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v21-ticker-msg {
  font-size: 11.5px;
  font-weight: 500;
  color: #e2e8f0;
  letter-spacing: 0.2px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.v21-msg-time {
  color: #38bdf8;
  font-weight: 700;
  margin-right: 4px;
}

/* 2. Gyrophares stroboscopiques réalistes (Code 3) */
.v21-gyro-pulse {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.65) 0%, rgba(239, 68, 68, 0.4) 45%, transparent 70%);
  animation: v21-strobe-flash 0.9s infinite linear;
}

@keyframes v21-strobe-flash {
  0% { transform: scale(0.9); opacity: 0.3; filter: drop-shadow(0 0 10px #38bdf8); }
  25% { transform: scale(1.25); opacity: 0.95; filter: drop-shadow(0 0 18px #38bdf8); }
  50% { transform: scale(0.95); opacity: 0.2; }
  75% { transform: scale(1.3); opacity: 0.9; filter: drop-shadow(0 0 18px #ef4444); }
  100% { transform: scale(0.9); opacity: 0.3; }
}

/* 3. Périmètres tactiques de sécurité & Radar sur interventions */
.v21-mission-perimeter {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px dashed rgba(239, 68, 68, 0.65);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12) 0%, transparent 68%);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.25), inset 0 0 12px rgba(239, 68, 68, 0.15);
  animation: v21-perimeter-spin 12s linear infinite, v21-perimeter-breathe 3s ease-in-out infinite;
}

@keyframes v21-perimeter-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes v21-perimeter-breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* 4. Tente de Poste Médical Avancé (PMA) sur Grosses Urgences */
.v21-pma-marker {
  position: absolute;
  top: -18px;
  right: -24px;
  background: linear-gradient(135deg, #ef4444 0%, #ffffff 50%, #ef4444 100%);
  color: #0f172a;
  font-size: 8.5px;
  font-weight: 900;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.85), 0 2px 4px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  pointer-events: none;
  z-index: 12;
  animation: v21-pma-glow 2.5s infinite ease-in-out;
}

@keyframes v21-pma-glow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(239, 68, 68, 0.8); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(239, 68, 68, 1); }
}

/* 5. Matériel Déployé (Lances & Tuyaux Incendie 70mm) */
.v21-water-lines {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.92);
  color: #38bdf8;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(56, 189, 248, 0.75);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  pointer-events: none;
  z-index: 11;
}

/* 4. Tableau synoptique LED des départs de caserne */
.v21-synoptic-panel {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 10px;
}

.v21-synoptic-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #38bdf8;
  letter-spacing: 0.4px;
}

.v21-synoptic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}

.v21-synoptic-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 6px;
  font-size: 11px;
}

.v21-synoptic-name {
  font-weight: 700;
  color: #f8fafc;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v21-synoptic-status {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #94a3b8;
}

.v21-led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.v21-led-green { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.v21-led-orange { background: #f97316; box-shadow: 0 0 8px #f97316; }
.v21-led-cyan { background: #06b6d4; box-shadow: 0 0 8px #06b6d4; }
.v21-led-red { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.v21-led-blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }

/* 5. Ambiances Météo sur Carte */
#map.v21-weather-storm::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.06) 0%, rgba(3, 7, 18, 0.14) 100%);
  z-index: 2;
}

#map.v21-weather-snow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 80%);
  z-index: 2;
}

/* =====================================================================
   FILTRE TACTIQUE DARK OPS (CTA-CODIS) POUR LE FOND DE CARTE RASTER
   Appliqué exclusivement sur .maplibregl-canvas (aucun impact sur les marqueurs HTML)
   Permet d'avoir un fond sombre tactique haute définition sans aucun watermark
   ===================================================================== */
#map .maplibregl-canvas {
  filter: brightness(0.68) invert(0.92) contrast(1.75) hue-rotate(195deg) saturate(0.35) !important;
}
