.cyber-full-dashboard { background: #000; color: #eee; font-family: 'Share Tech Mono', monospace; padding: 10px; }

.cyber-map-wrapper { 
    position: relative; 
    border: 1px solid #222; 
    border-radius: 12px; 
    height: 600px; 
    width: 100%; 
    margin-bottom: 25px; 
    box-shadow: 0 0 50px rgba(0,0,0,1);
    overflow: hidden;
}

.cyber-map-header { position: absolute; top: 20px; left: 20px; right: 20px; z-index: 100; display: flex; justify-content: space-between; align-items: center; }

.map-header {
    position: absolute; top: 20px; left: 20px; color: #D4FF00; font-weight: bold;
    z-index: 10; font-size: 14px; letter-spacing: 2px; display: flex; align-items: center; gap: 10px;
    text-shadow: 0 0 10px rgba(212,255,0,0.5);
}

.live-dot { width: 10px; height: 10px; background: #ff003c; border-radius: 50%; animation: blink 1s infinite; }

#d3-map-container { background: radial-gradient(circle at center, #111 0%, #000 100%); }

.attack-arc { fill: none; stroke-linecap: round; }
.impact-pulse { fill: none; stroke-width: 2px; }

/* Console Logs */
.map-console-overlay {
    position: absolute; bottom: 20px; left: 20px; background: rgba(0, 0, 0, 0.7); border: 1px solid #333;
    border-top: 2px solid #D4FF00; width: 350px; height: 150px; padding: 10px; z-index: 10; border-radius: 4px; backdrop-filter: blur(5px);
}

.console-title { color: #888; font-size: 10px; margin-bottom: 5px; border-bottom: 1px solid #333; padding-bottom: 5px; }

/* Légende */
/* Nouvelle Légende en haut du terminal */
.map-legend-inline {
    display: flex;
    justify-content: space-around;
    padding: 8px 5px;
    background: rgba(212, 255, 0, 0.05);
    border: 1px solid rgba(212, 255, 0, 0.2);
    border-radius: 4px;
    margin-bottom: 10px;
}
.leg-item { font-size: 9px; color: #aaa; display: flex; align-items: center; gap: 5px; }

/* Différenciation dans le log */
.log-action-found { color: #888 !important; font-style: italic; opacity: 0.8; }
.log-action-ban { color: #fff !important; font-weight: bold; border-left: 2px solid #ff003c; padding-left: 5px; }

/* Ajustement hauteur terminal pour compenser la légende */
.feed-logs { max-height: 140px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot.critical { background: #ff003c; box-shadow: 0 0 5px #ff003c; }
.legend-dot.high { background: #ff8800; box-shadow: 0 0 5px #ff8800; }
.legend-dot.scan { background: #00f2ff; box-shadow: 0 0 5px #00f2ff; }

/* Point de Ville sur Carte D3 */
/* Style du point de ville CertFRadar */
.city-dot {
    fill: #000;
    stroke: #D4FF00;
    stroke-width: 1px;
    /* IMPORTANT : Permet de cliquer sur le pays "à travers" le point */
    pointer-events: stroke; 
    cursor: crosshair;
}

/* DEGRÉ MOYEN (40-79%) : Pulsation normale */
.city-dot.degree-high {
    stroke-width: 2px;
    filter: drop-shadow(0 0 5px rgba(212, 255, 0, 0.6));
    animation: pulseGreen 2s infinite ease-in-out;
}

/* DEGRÉ CRITIQUE (80-100%) : Plus gros, contour épais et pulsation rapide */
.city-dot.degree-critical {
    stroke-width: 3px;
    stroke: #ff003c; /* On peut mixer : contour rouge pour le critique */
    filter: drop-shadow(0 0 8px #ff003c);
    animation: pulseCritical 0.8s infinite alternate; /* Très rapide pour l'alerte */
}

/* INFRASTRUCTURE DATACENTER : On ajoute un double cercle ou une forme différente via un filtre */
.city-dot.is-datacenter {
    stroke-dasharray: 2, 1; /* Pointillé pour signifier une machine virtuelle / serveur */
}

/* Animations dynamiques */
@keyframes pulseGreen {
    0% { stroke-width: 1px; }
    50% { stroke-width: 2px; }
    100% { stroke-width: 1px; }
}

@keyframes pulseCritical {
    from { stroke-width: 2px; filter: drop-shadow(0 0 2px #ff003c); }
    to { stroke-width: 5px; filter: drop-shadow(0 0 12px #ff003c); }
}

/* Villes Modale Liste */
#mdl-c-cities li { display: flex; justify-content: space-between; font-size: 10px; padding: 4px 2px; border-bottom: 1px solid #1a1a1a; color: #ccc; }
#mdl-c-cities li:last-child { border-bottom: none; }

@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* MODAL THREAT INTEL */
.threat-modal { position: absolute; bottom: 20px; right: 20px; width: 280px; background: rgba(10,10,10,0.98); border: 1px solid #ff003c; z-index: 1000; border-radius: 4px; box-shadow: 0 0 30px rgba(255, 0, 60, 0.4); }
.threat-modal.hidden { display: none; }
.modal-header { background: #ff003c; color: #fff; padding: 8px 10px; font-size: 10px; font-weight: bold; display: flex; justify-content: space-between; }
.close-modal { cursor: pointer; }
.close-modal:hover { color: #000; }
.modal-body { padding: 12px; font-size: 10px; }
.modal-row { margin-bottom: 8px; border-bottom: 1px solid #222; padding-bottom: 5px; display: flex; justify-content: space-between; }
.modal-row .lbl { color: #888; display: inline-block; width: 130px; font-size: 10px; text-transform: uppercase; }
.modal-row .val { color: #eee; flex: 1; }
.lbl { color: #666; width: 100px; }
.val { color: #eee; flex: 1; text-align: right; }
.modal-row .val.highlight { color: #D4FF00; font-weight: bold; font-size: 14px; }

/* FLUX D'ATTAQUES (GAUCHE) */
.pulse-red { width: 10px; height: 10px; background: #ff003c; border-radius: 50%; animation: mapBlink 1.5s infinite; display: inline-block; box-shadow: 0 0 10px #ff003c; margin-right: 10px; }
.live-attack-feed { position: absolute; bottom: 20px; left: 20px; width: 320px; background: rgba(0,0,0,0.85); border-top: 2px solid #D4FF00; padding: 15px; z-index: 10; border-radius: 4px; backdrop-filter: blur(5px); }
.feed-title { color: #888; font-size: 9px; margin-bottom: 10px; border-bottom: 1px solid #222; padding-bottom: 5px; text-transform: uppercase; }
.feed-stats { font-size: 10px; color: #D4FF00; border-bottom: 1px dashed #333; padding-bottom: 8px; margin-bottom: 8px; }
/* FLUX D'ATTAQUES (GAUCHE) */
.feed-logs { 
    max-height: 160px;      /* Hauteur du terminal avant scroll */
    overflow-y: auto;       /* Active le scroll vertical */
    overflow-x: hidden;     /* Cache le scroll horizontal */
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    flex-direction: column; 
    /* Retirer justify-content: flex-end pour permettre le scroll naturel */
}

/* Scrollbar personnalisée pour le Terminal (Vert Néon) */
.feed-logs::-webkit-scrollbar {
    width: 4px;
}

.feed-logs::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.feed-logs::-webkit-scrollbar-thumb {
    background: #D4FF00; /* Vert néon */
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(212, 255, 0, 0.5);
}

/* Version Firefox */
.feed-logs {
    scrollbar-width: thin;
    scrollbar-color: #D4FF00 rgba(0, 0, 0, 0.3);
}
.feed-logs li { font-size: 10px; color: #aaa; margin-bottom: 4px; padding-left: 5px; cursor: pointer; border-left: 2px solid transparent; }
.feed-logs li:hover { background: rgba(255,255,255,0.05); color: #fff; }
#live-attack-log { list-style: none; padding: 0; margin: 0; }
#live-attack-log li { font-size: 11px; margin-bottom: 4px; color: #aaa; cursor: pointer; padding: 4px; border-radius: 2px; transition: background 0.2s; border-left: 2px solid transparent; }
#live-attack-log li.system { cursor: default; color: #00f2ff; border-left-color: #00f2ff; }
#live-attack-log li:not(.system):hover { background: rgba(255,255,255,0.1); color: #fff; }

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

/* BOUTON TOGGLE 2D/3D */
.view-btn { background: rgba(212,255,0,0.1); border: 1px solid #D4FF00; color: #D4FF00; padding: 6px 12px; font-size: 11px; cursor: pointer; border-radius: 4px; }
.view-btn:hover { background: #D4FF00; color: #000; }
.map-view { width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.attack-arc-2d { fill: none; stroke-linecap: round; }
.impact-pulse-2d { fill: none; stroke-width: 2px; }

.feed-stats-grid {
    display: flex;
    justify-content: space-between; /* Répartit l'espace entre les colonnes */
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px dashed #333;
    padding-bottom: 15px;
    width: 100%;
}
.stat-col { flex: 1; text-align: center; }
.stat-val { font-size: 22px; color: #D4FF00; font-weight: bold; }
.stat-lbl { font-size: 8px; color: #555; }

/* Chaque colonne prend exactement 25% */
.stat-col {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-val {
    font-size: 24px; /* Un peu plus grand pour la lisibilité */
    font-weight: bold;
    line-height: 1;
}

.stat-lbl {
    font-size: 8px;
    color: #666;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
    white-space: nowrap; /* Empêche le texte de revenir à la ligne */
}

/* Style spécifique pour le bouclier */
#val-prevented {
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.score-badge { float: right; font-size: 9px; padding: 1px 4px; border-radius: 2px; background: #333; color: #fff; }
/* TOP NETWORKS (DROITE) */
.top-networks-panel { 
    position: absolute; 
    top: 70px; 
    right: 20px; 
    width: 260px; 
    background: rgba(0,0,0,0.85); 
    border-top: 2px solid #ff8800; 
    padding: 12px; 
    z-index: 10; 
    border-radius: 4px; 
    
    /* --- AJOUTS POUR LE SCROLL --- */
    max-height: 480px;      /* Fixe la hauteur limite avant le scroll */
    overflow-y: auto;       /* Active le scroll vertical */
    overflow-x: hidden;     /* Empêche le scroll horizontal parasite */
}

/* Style de la scrollbar pour le panneau Transit */
.top-networks-panel::-webkit-scrollbar {
    width: 4px; /* Très fine */
}

.top-networks-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.top-networks-panel::-webkit-scrollbar-thumb {
    background: #ff8800; /* Orange fluo */
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.5);
}

/* Version Firefox */
.top-networks-panel {
    scrollbar-width: thin;
    scrollbar-color: #ff8800 rgba(0, 0, 0, 0.3);
}

#network-ranking { list-style: none; padding: 0; margin: 0; }
#network-ranking li { display: flex; justify-content: space-between; font-size: 11px; color: #ccc; margin-bottom: 8px; border-bottom: 1px solid #222; padding-bottom: 4px; }
#network-ranking li .net-count { color: #ff8800; font-weight: bold; }

/* Heatmap Countries (D3 2D) */
.country { fill: #1a1a1a; stroke: #333; stroke-width: 0.5px; transition: fill 0.5s ease; }
.country.heat-1 { fill: #2a000a; }
.country.heat-2 { fill: #4d0012; }
.country.heat-3 { fill: #80001e; }
.country.heat-4 { fill: #b3002a; }
.country.heat-5 { fill: #e60036; }
.country.heat-max { fill: #ff003c; stroke: #ff8800; stroke-width: 1px; }

/* Modal Score Bar */
.threat-score-row { display: flex; align-items: center; }
.score-bar-bg { flex: 1; height: 5px; background: #222; border-radius: 2px; overflow: hidden; margin-right: 10px; margin-top: 4px; }
.score-bar-fill { height: 100%; width: 0%; transition: width 1s ease-out, background 1s; box-shadow: 0 0 10px rgba(0,0,0,0.5); }
.score-val { font-weight: bold; font-size: 13px; width: 40px; text-align: right; }
.title-zone { color: #D4FF00; font-weight: bold; font-size: 14px; letter-spacing: 2px; text-shadow: 0 0 10px rgba(212,255,0,0.5); }
.cyber-data-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.data-card { background: #0a0a0a; border: 1px solid #222; padding: 15px; border-radius: 4px; }
.card-title { color: #D4FF00; font-size: 11px; font-weight: bold; margin-bottom: 15px; }
.cyber-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.cyber-table th { color: #444; border-bottom: 1px solid #333; text-align: left; padding-bottom: 8px; }
.cyber-table td { padding: 8px 0; border-bottom: 1px solid #111; color: #888; }
.ip-row { cursor: pointer; }

.bl-badge { display: inline-block; background: #ff003c; color: #fff; padding: 2px 6px; border-radius: 2px; margin-right: 5px; margin-bottom: 5px; box-shadow: 0 0 5px #ff003c; }
.modal-row-block { margin-bottom: 12px; }
.country { cursor: pointer; }
.scene-container canvas { cursor: crosshair; }
.close-modal-country { cursor: pointer; }
.close-modal-country:hover { color: #fff; transform: scale(1.2); }

#threat-intel-modal, #list-intel-modal, #country-intel-modal, #ai-deep-intel-modal {
    position: absolute; top: 250px; right: 20px; width: 260px; bottom: auto; height: auto; border-radius: 4px; margin: 0; box-shadow: 0 0 50px rgba(0, 0, 0, 1);
}
#list-intel-modal { z-index: 1000; border: 1px solid #ff8800; }
#list-intel-modal .modal-header { background: #ff8800; color: #000; }
#threat-intel-modal { z-index: 1100; border: 1px solid #ff003c; max-height: 330px; overflow-y: auto; flex: 1; }
#threat-intel-modal .modal-header { background: #ff003c; color: #fff; }
#threat-intel-modal::-webkit-scrollbar { width: 4px; }
#threat-intel-modal::-webkit-scrollbar-track { background: rgba(0,0,0,0.5); }
#threat-intel-modal::-webkit-scrollbar-thumb { background: #ff003c; border-radius: 4px; }
#threat-intel-modal .feed-title { color: #D4FF00; font-size: 10px; font-weight: bold; margin-top: 20px !important; margin-bottom: 10px; border-bottom: 1px solid #D4FF00; padding-bottom: 5px; text-transform: uppercase; letter-spacing: 1px; }
#country-intel-modal { z-index: 1000; border: 1px solid #D4FF00; }
#country-intel-modal .modal-header { background: #D4FF00; color: #000; }
.close-modal, .close-modal-list, .close-modal-country { cursor: pointer; font-weight: bold; font-size: 14px; }
#ai-deep-intel-modal { z-index: 1200; border: 1px solid #00f2ff; max-height: 330px; overflow-y: auto; background: rgba(10, 10, 10, 0.98); }
#ai-deep-intel-modal .modal-header { background: #00f2ff; color: #000; }
#ai-deep-intel-modal::-webkit-scrollbar { width: 4px; }
#ai-deep-intel-modal::-webkit-scrollbar-track { background: rgba(0,0,0,0.5); }
#ai-deep-intel-modal::-webkit-scrollbar-thumb { background: #00f2ff; border-radius: 4px; }

#mdl-list-content { display: flex; flex-direction: column; justify-content: flex-start; padding: 0; margin: 0; list-style: none; overflow: auto; }
#mdl-list-content li { flex-shrink: 0; }
#mdl-list-content li:hover { background: rgba(255, 255, 255, 0.05); }
#mdl-list-content li:last-child { border-bottom: none; }
.network-row, .service-row, .ip-row { cursor: pointer; transition: background 0.2s, transform 0.1s; }
.network-row:hover, .service-row:hover, .ip-row:hover, .transit-row:hover { background: rgba(255, 255, 255, 0.08); }
.network-row:active, .service-row:active { transform: scale(0.98); }
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #ff8800; border-radius: 4px; }
.country-ips-trigger { cursor: pointer; transition: background 0.2s; }
.country-ips-trigger:hover { background: rgba(212, 255, 0, 0.1); }
.country-ips-trigger .val { text-decoration: underline; text-underline-offset: 3px; color: #D4FF00; }

#threat-intel-modal .modal-body { padding: 12px; font-size: 11px; }

/* Header de la modale en colonne */
#threat-intel-modal .modal-row.main-id {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    white-space: normal !important;
    padding-bottom: 15px;
}

/* On donne toute la largeur à l'IP et au badge de score */
#threat-intel-modal .val-ip {
    width: 100%;
    display: flex;
    justify-content: space-between; /* L'IP à gauche, le % à droite */
    align-items: center;
    font-size: 20px !important; /* On remonte un peu la taille maintenant qu'il y a de la place */
}

/* Le badge de statut (BANNI / CRITIQUE) prend toute la largeur */
#threat-intel-modal .main-id > span:first-child {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}
.modal-row.main-id {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important; /* Espace entre les éléments */
    white-space: nowrap !important;
    overflow: hidden;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.val-ip {
    font-size: 14px !important; /* Taille réduite (au lieu de 18px) pour que ça passe */
    color: #fff;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.val-country { font-size: 11px; color: #888; }
#threat-intel-modal .modal-row { margin-bottom: 8px; border-bottom: 1px solid #222; padding-bottom: 5px; display: flex; justify-content: space-between; align-items: flex-start; }
#threat-intel-modal .modal-row .lbl { color: #666; flex-shrink: 0; width: 100px; padding-right: 10px; }
#threat-intel-modal .val { color: #ccc; flex: 1; text-align: right; white-space: normal; word-wrap: break-word; word-break: break-all; line-height: 1.3; }
#mdl-jail.val{ word-break: auto-phrase; }
#mdl-jail, #mdl-org, #mdl-usage { word-break: normal; }

.modal-row-block { margin-top: 10px; }
.modal-row-block .lbl { color: #888; font-size: 9px; text-transform: uppercase; margin-bottom: 6px; display: block; }
.val-block { font-size: 10px; }
.port-badge, .threat-badge, .cve-badge { display: inline-block; padding: 2px 6px; border-radius: 3px; margin: 2px; font-size: 10px; }
.port-badge { background: rgba(0, 242, 255, 0.15); border: 1px solid #00f2ff; color: #00f2ff; }
.threat-badge { background: rgba(255, 136, 0, 0.15); border: 1px solid #ff8800; color: #ff8800; }
.cve-badge { background: rgba(255, 0, 60, 0.15); border: 1px solid #ff003c; color: #ff003c; font-weight: bold; }

#mdl-cves { list-style: none; padding: 0; margin: 0; }
#mdl-cves li { padding: 4px 0; border-bottom: 1px solid #1a1a1a; color: #999; }
#mdl-cves li:last-child { border-bottom: none; }
#mdl-cves .cve-badge { margin-right: 5px; }
.cve-link { color: #00f2ff; text-decoration: none; transition: color 0.2s; border: none; }
.cve-link:hover { color: #D4FF00; border: none; }

.hop-tag { margin-right: 5px; }

/* --- TABLEAU TRANSIT & MODALE ENRICHIE --- */
/* Container global du tracé */
.mtr-mini-path {
    display: flex;
    flex-direction: column;
    padding: 10px 5px;
    margin-top: 10px;
    position: relative;
}

/* Chaque étape (hop) */
.mtr-step {
    display: flex;
    gap: 15px;
    position: relative;
    padding-bottom: 15px; /* Espace entre les nœuds */
}

/* La ligne verticale de connexion */
.mtr-step:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 4px; /* Centré sous le point */
    top: 10px;
    bottom: -5px;
    width: 2px;
    background: rgba(0, 242, 255, 0.2);
}

/* Le point (nœud) */
.mtr-node-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #00f2ff;
    box-shadow: 0 0 8px #00f2ff;
    margin-top: 5px;
    flex-shrink: 0;
    z-index: 2;
}

/* Si le nœud est risqué */
.mtr-step.is-risky .mtr-node-bullet {
    background: #ff003c;
    box-shadow: 0 0 8px #ff003c;
}

/* Contenu textuel de l'étape */
.mtr-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mtr-main-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.mtr-ip {
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.mtr-org {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}



.modal-section-title {
    color: var(--cyber-neon);
    font-size: 10px;
    font-weight: bold;
    margin: 15px 0 8px 0;
    border-bottom: 1px dashed #333;
    padding-bottom: 4px;
}

.modal-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    margin-bottom: 5px;
}

.modal-info-row span { color: #666; }
.modal-info-row b { color: #ccc; }

.tag-risk {
    display: inline-block;
    background: #ff003c;
    color: #fff;
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 2px;
    margin-right: 5px;
}

#table-transit td:first-child {
    font-family: monospace;
    color: #eee;
}

.modal-ip-header {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.badge-risk {
    background: rgba(255,0,60,0.2);
    border: 1px solid #ff003c;
    color: #ff003c;
    padding: 2px 8px;
    font-size: 12px;
    border-radius: 4px;
}

/* --- VILLES DANS MODALE PAYS --- */
#mdl-c-cities li:last-child {
    border-bottom: none !important;
}

#mdl-c-cities span {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- SCROLLBAR PERSONNALISÉE POUR LA LISTE DES VILLES --- */
.custom-scrollbar::-webkit-scrollbar {
    width: 3px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.2);
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--cyber-neon);
    border-radius: 10px;
}

/* --- TABLEAU INFRASTRUCTURES --- */
#network-ranking li {
    font-family: monospace;
    font-weight: bold;
    font-size: 11px;
}

/* Bouton spécifique pour l'Analyse IA */
.cyber-btn-ai {
    background: rgba(0, 242, 255, 0.05); /* Fond bleu cyan très léger */
    border: 1px solid #00f2ff;           /* Bordure cyan */
    color: #00f2ff;                      /* Texte cyan */
    padding: 10px 15px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
}

/* Effet au survol */
.cyber-btn-ai:hover {
    background: rgba(0, 242, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.4), inset 0 0 10px rgba(0, 242, 255, 0.2);
    border-color: #fff;
}

/* Petit effet de scan qui passe sur le bouton au hover */
.cyber-btn-ai::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.5s;
    pointer-events: none;
}

.cyber-btn-ai:hover::after {
    left: 130%;
}

/* Animation de pulsation subtile pour attirer l'oeil sur les nouvelles analyses */
.cyber-btn-ai {
    animation: ai-pulse 3s infinite ease-in-out;
}

@keyframes ai-pulse {
    0% { border-color: rgba(0, 242, 255, 0.5); }
    50% { border-color: rgba(0, 242, 255, 1); box-shadow: 0 0 5px rgba(0, 242, 255, 0.3); }
    100% { border-color: rgba(0, 242, 255, 0.5); }
}

/* Style quand le bouton est cliqué */
.cyber-btn-ai:active {
    transform: scale(0.98);
}

/* Bouton Retour dans les Modales */
.back-modal {
    float: left;
    cursor: pointer;
    color: #00f2ff;
    font-size: 10px;
    border: 1px solid #00f2ff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.back-modal:hover {
    background: #00f2ff;
    color: #000;
}

/* Cas spécifique pour la modale IA (qui a un header cyan avec texte noir) */
#ai-deep-intel-modal .back-modal {
    color: #000;
    border-color: #000;
}
#ai-deep-intel-modal .back-modal:hover {
    background: #000;
    color: #00f2ff;
}

/* Style de base pour la ligne de ville */
.city-trigger {
    padding: 8px 10px;
    border-radius: 4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px dashed #333;
    position: relative;
    overflow: hidden;
}

/* Effet Hover */
.city-trigger:hover {
    background: rgba(0, 242, 255, 0.08); /* Fond cyan très léger */
    padding-left: 18px; /* Décale le texte vers la droite */
    border-bottom: 1px solid #00f2ff; /* La bordure devient pleine et brillante */
}

/* Animation de la flèche (le caractère ↳) */
.city-trigger:hover span:last-child {
    color: #fff !important;
    text-shadow: 0 0 8px #D4FF00;
    transform: scale(1.2);
    display: inline-block;
}

/* Optionnel : changement de couleur du nom de la ville au survol */
.city-trigger:hover span:first-child {
    color: #fff !important;
    font-weight: bold;
}

/* Style de base de l'item CVE */
.modal-cve-link {
    display: block;
    text-decoration: none;
    padding: 8px 12px;
    margin-bottom: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
}

/* Effet Hover */
.modal-cve-link:hover {
    background: rgba(0, 242, 255, 0.06); /* Fond cyan très léger */
    border-color: rgba(0, 242, 255, 0.3);
    border-left: 2px solid #00f2ff; /* Barre latérale néon */
    transform: translateX(4px); /* Petit décalage vers la droite */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Style des textes à l'intérieur */
.modal-cve-link .cve-id {
    font-family: monospace;
    font-weight: bold;
    font-size: 11px;
    margin-right: 8px;
    display: inline-block;
}

.modal-cve-link .cve-title {
    color: #ccc;
    font-size: 10.5px;
    transition: color 0.2s ease;
}

.modal-cve-link:hover .cve-title {
    color: #fff; /* Le titre devient plus blanc au survol */
}

/* Tags à l'intérieur du tracé MTR */
/* Tags de l'étape */
.mtr-hop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.mtr-tag {
    font-size: 8px;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 242, 255, 0.1);
    color: #00f2ff;
    border: 1px solid rgba(0, 242, 255, 0.3);
    font-weight: bold;
    text-transform: uppercase;
}

/* Style spécial pour les tags IA dans le MTR */
.mtr-tag-ai {
    background: rgba(212, 255, 0, 0.1);
    color: #D4FF00;
    border-color: rgba(212, 255, 0, 0.3);
}

/* Empêche le flash blanc lors du reset GPU */
#earth-globe-container {
    background-color: #000 !important;
}

#earth-globe-container canvas {
    background-color: #000 !important;
    outline: none;
}

/* On s'assure que le conteneur parent est aussi noir */
.cyber-map-container {
    background-color: #000 !important;
}

/* Animation pour le point du serveur */
.server-marker {
    fill: #00f2ff;
    stroke: #fff;
    stroke-width: 1px;
    filter: drop-shadow(0 0 5px #00f2ff);
}

.server-pulse {
    fill: #00f2ff;
    animation: serverPulse 2s infinite;
}

@keyframes serverPulse {
    0% { r: 2; opacity: 1; stroke-width: 1px; }
    100% { r: 10; opacity: 0; stroke-width: 0px; }
}

/* --- BADGES BAN & DETECT --- */
.badge-ban-mini {
    color: #ff003c;
    font-size: 9px;
    border: 1px solid #ff003c;
    padding: 0 3px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: bold;
    background: rgba(255, 0, 60, 0.1);
}

.badge-ban-incidents {
    color: #ff003c;
    font-size: 8px;
    border: 1px solid #ff003c;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: bold;
    background: rgba(255, 0, 60, 0.1);
}

.badge-detect-incidents {
    color: #D4FF00;
    font-size: 8px;
    border: 1px solid #D4FF00;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: bold;
}

/* --- SECTION TOP SERVICES --- */
#service-ranking {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-row {
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
    width: 100%;
}


.service-name {
    color: #00f2ff;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.service-count {
    text-align: right;
    color: #fff;
    font-family: monospace;
    font-size: 10px;
}

.service-count small {
    color: #666;
    font-size: 9px;
    margin-left: 4px;
}

/* --- TRANSIT FLEX OPTIMISATION --- */
.transit-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.transit-ip { font-weight:bold; font-size:13px; }
.transit-org { font-size:10px; color:#888; text-transform:uppercase; }
.transit-stats { text-align: right; font-weight:bold; }


/* Ajustement des badges (Statut et Risque) */
.badge-risk, 
#mdl-intel-content .modal-row.main-id span[style*="letter-spacing"] {
    font-size: 9px !important;
    padding: 2px 5px !important;
    flex-shrink: 0; /* Empêche le badge de s'écraser */
    margin: 0 !important;
}

/* Ajustement spécifique pour le tableau des services */
#table-services td {
    padding: 10px 0; /* Un peu plus d'espace vertical */
}

#table-services .service-name {
    letter-spacing: 0.5px;
    font-size: 10.5px;
}

#val-prevented {
    transition: all 0.3s ease;
}

/* Quand le chiffre augmente, on peut ajouter une petite animation en JS */
.pulse-shield {
    animation: shieldFlash 0.5s ease;
}

@keyframes shieldFlash {
    0% { transform: scale(1); color: #fff; }
    100% { transform: scale(1.2); color: #00f2ff; }
}

.badge-shield {
    color: #00f2ff;
    font-size: 8px;
    border: 1px solid #00f2ff;
    padding: 1px 4px;
    border-radius: 2px;
    margin-right: 8px;
    font-weight: bold;
    background: rgba(0, 242, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
    box-shadow: 0 0 5px rgba(0, 242, 255, 0.2);
}

/* On ajoute un petit effet au survol de la ligne shield */
#table-history tr:hover {
    background: rgba(0, 242, 255, 0.05);
}

.badge-watch {
    color: #ff8800;
    font-size: 8px;
    border: 1px solid #ff8800;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 8px;
    font-weight: bold;
    background: rgba(255, 136, 0, 0.1);
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.3);
}

@media (max-width: 1100px) {
    .cyber-data-section { grid-template-columns: 1fr 1fr; gap: 15px; }
}

@media (max-width: 950px) {
    .cyber-map-wrapper { height: auto; display: flex; flex-direction: column; background: #000; overflow: visible; }
    .cyber-map-header { position: relative; top: auto; left: auto; right: auto; width: 100%; height: auto; padding: 20px 15px; background: #080808; border-bottom: 1px solid #222; display: flex; flex-direction: column; align-items: center; gap: 15px; order: 1; z-index: 10; }
    .map-view, #d3-map-container, #earth-globe-container { position: relative !important; top: auto; left: auto; width: 100%; height: 400px !important; flex-shrink: 0; order: 2; z-index: 1; background: #050505; overflow: hidden; }
    #d3-map-container { display: block; } #earth-globe-container { display: none; }
    .live-attack-feed, .top-networks-panel { position: relative; top: auto; left: auto; right: auto; bottom: auto; width: 100%; height: auto; margin: 0; padding: 20px; background: #0a0a0a; border-radius: 0; border-left: none; border-right: none; border-top: 1px solid #333; box-shadow: none; order: 3; z-index: 5; }
    .top-networks-panel { order: 4; }
    #d3-map-container svg, #earth-globe-container canvas { position: absolute !important; top: 50% !important; left: 50% !important; transform: translate(-50%, -50%) !important; }
    #threat-intel-modal, #list-intel-modal, #country-intel-modal, #ai-deep-intel-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 90%; max-width: 320px; z-index: 2000; }
    .feed-logs { height: 180px; max-height: 180px; }
}

@media (max-width: 600px) {
    .cyber-map-container { height: 320px; }
    .cyber-data-section { grid-template-columns: 1fr; margin-top: 100%; }
    .data-card { padding: 15px; }
    .stat-val { font-size: 20px; }
    .cyber-table { font-size: 11px; }
    #live-attack-log li { font-size: 10px; padding: 5px 4px; }
}

@media (max-width: 480px) {
    .title-zone { font-size: 12px; text-align: center; width: 100%; }
    .view-btn { width: 100%; padding: 12px; font-size: 11px; }
    .feed-stats-grid { flex-direction: column; gap: 12px; }
    .stat-col { border-bottom: 1px solid #222; padding-bottom: 8px; }
    .stat-col:last-child { border-bottom: none; }
    .live-attack-feed, .top-networks-panel { padding: 15px 10px; }
    .modal-body { padding: 15px; }
    .modal-row .lbl { width: 90px; font-size: 9px; }
    .modal-row .val { font-size: 11px; }
}