/* ==========================================================================
   OHDB - BUILDER CSS (NEON / PREMIUM / HARD-SCI-FI EDITION)
   Harmonisé avec community_builds.css et la charte globale
   ========================================================================== */

:root {
    --primary-color: #68fdd6;
    --primary-color-translucent: rgba(104, 253, 214, 0.2);
    --primary-color-hover: rgba(104, 253, 214, 0.05);
    --primary-color-shadow: rgba(104, 253, 214, 0.3);
    
    --background-dark: rgba(10, 20, 25, 0.85);
    --background-section: rgba(0, 0, 0, 0.4);
    --background-input: rgba(0, 0, 0, 0.6);

    --text-color: #e9e9e9;
    --text-muted: #a8c0d0;

    --border-radius-main: 0px; /* On désactive les arrondis pour le style HUD biseauté */
    --border-radius-small: 0px;
}

/* --- Conteneur global --- */
.builder-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-required-message {
    text-align: center;
    padding: 50px;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.8) 0%, rgba(8, 10, 14, 0.95) 100%);
    border: 1px solid rgba(255, 82, 82, 0.3);
    color: #ff5252;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 0 15px rgba(255, 82, 82, 0.05);
    backdrop-filter: blur(10px);
    margin: 20px;
    font-family: 'h73bold', sans-serif;
    letter-spacing: 1px;
}

/* ==========================================================================
   SECTIONS DU BUILDER (Style "Panneaux de données / HUD")
   ========================================================================== */
.build-section {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.8) 0%, rgba(8, 10, 14, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 2px solid rgba(104, 253, 214, 0.5); /* Ligne néon forte en haut */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Coupe les coins supérieurs pour un effet futuriste */
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 15px 30px;
    margin-bottom: 35px;
    position: relative;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.build-section > * {
    position: relative;
    z-index: 1; /* Assure que le contenu passe par-dessus la grille */
}

.build-section:hover {
    border-top-color: rgba(104, 253, 214, 0.8);
}

/* Application des styles sur l'en-tête principal ET les sous-sections */
.build-section > h2, .build-section > .build-header-title {
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px rgba(104, 253, 214, 0.5);
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px dashed rgba(104, 253, 214, 0.2);
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease;
}

/* On retire les bordures/chevrons du h2 sémantique qui est maintenant à l'intérieur */
.build-header-title h2.build-title-text {
    border: none;
    margin: 0;
    padding: 0;
    font-size: inherit;
    text-shadow: inherit;
    color: inherit;
    white-space: nowrap;
}
.build-header-title h2.build-title-text::before, 
.build-header-title h2.build-title-text::after {
    display: none !important;
}

.build-section > h2::before, .build-section > .build-header-title::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #68fdd6;
    margin-right: 12px;
    box-shadow: 0 0 8px #68fdd6;
}

.build-section > h2:hover, .build-section > .build-header-title:hover {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(104, 253, 214, 0.8);
}

.build-section > h2::after, .build-section > .build-header-title::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--text-muted);
    margin-left: auto;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 1. On exclut l'en-tête (h2 ET header) de l'écrasement fluide */
.build-section > *:not(h2):not(.build-header-title) {
    max-height: 3500px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin 0.4s ease-in-out, padding 0.4s ease-in-out;
}

/* 2. État fermé de la section */
.build-section.collapsed {
    padding: 15px 30px;
}
.build-section.collapsed > h2::after, .build-section.collapsed > .build-header-title::after {
    transform: rotate(-90deg);
}
.build-section.collapsed > h2, .build-section.collapsed > .build-header-title {
    border-bottom-color: transparent;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* 3. L'écrasement fluide au repli */
.build-section.collapsed > *:not(h2):not(.build-header-title) {
    max-height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    overflow: hidden !important; 
    pointer-events: none !important; 
}

/* ==========================================================================
   INPUTS & INFORMATIONS (Style Terminal de Saisie)
   ========================================================================== */
.build-info-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    align-items: stretch;
}

#build-name, .info-placeholder, textarea#build-notes {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-left: 3px solid rgba(104, 253, 214, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-family: 'h73light', sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
    border-radius: 0;
}

#build-name:focus, .info-placeholder:hover, textarea#build-notes:focus {
    border-left-color: #68fdd6;
    border-bottom-color: rgba(104, 253, 214, 0.8);
    background: linear-gradient(90deg, rgba(104, 253, 214, 0.1) 0%, rgba(0,0,0,0.8) 50%);
    outline: none;
    box-shadow: inset 15px 0 20px -15px rgba(104, 253, 214, 0.4); /* Ajout d'une lueur interne à gauche */
    color: #fff;
}

#build-name { flex-grow: 1; font-family: 'h73bold', sans-serif; font-size: 1.1em; letter-spacing: 1px;}

.info-placeholder { cursor: pointer; position: relative; min-width: 220px; display: flex; align-items: center; }
.info-placeholder .placeholder-text { color: var(--text-muted); }
.info-placeholder::after { 
    content: ''; 
    position: absolute; 
    right: 15px; 
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
}

textarea#build-notes {
    width: 100%;
    min-height: 120px; /* On conserve votre hauteur de base */
    resize: none;      /* Empêche le redimensionnement manuel */
    overflow: hidden;  /* Masque la scrollbar interne */
    line-height: 1.5;
}

/* ==========================================================================
   GRILLES ET SLOTS (Armes, Armures)
   ========================================================================== */
.slots-grid { display: grid; gap: 20px; }
.anomaly-main-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.weapons-grid { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.animals-grid { grid-template-columns: repeat(3, 1fr); }
.armor-grid { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 600px) { .armor-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .armor-grid { grid-template-columns: repeat(3, 1fr); } }

.builder-slot {
    background-color: var(--background-section);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
}

.builder-slot h3, .builder-slot h4 { 
    text-align: center; 
    color: var(--primary-color); 
    font-size: 0.9em; 
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
    opacity: 0.8;
}

.sub-slots-container { 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    margin-top: 10px; 
    padding-top: 15px; 
    /* Remplacement du pointillé basique par un dégradé lumineux */
    border-top: 1px solid transparent;
    border-image: linear-gradient(to right, transparent, rgba(104, 253, 214, 0.3), transparent) 1;
    animation: deploySubSlots 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform-origin: top center;
}

.sub-slot-title { 
    color: var(--primary-color); /* On passe de grisâtre au cyan du thème */
    font-size: 0.75rem; 
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px; 
    margin-bottom: 5px; 
    opacity: 0.9;
    text-shadow: 0 0 5px rgba(104, 253, 214, 0.3); /* Léger néon */
}

/* Déploiement fluide des sous-menus */
@keyframes deploySubSlots {
    from { 
        opacity: 0; 
        transform: translateY(-15px) scale(0.98);
        filter: blur(5px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* HUD Pulse sur les slots vides */
@keyframes awaitingInput {
    0% { opacity: 0.7; box-shadow: inset 0 0 0 rgba(104, 253, 214, 0); }
    50% { opacity: 1; box-shadow: inset 0 0 15px rgba(104, 253, 214, 0.15); border-color: rgba(104, 253, 214, 0.5); }
    100% { opacity: 0.7; box-shadow: inset 0 0 0 rgba(104, 253, 214, 0); }
}

/* On cible uniquement les placeholders principaux qui n'ont pas encore d'item et qui ne sont pas désactivés */
.builder-slot > .vignette-placeholder:not(.has-item):not(.disabled) {
    animation: awaitingInput 3s infinite ease-in-out;
}

/* On arrête l'animation si l'utilisateur survole la case */
.builder-slot > .vignette-placeholder:not(.has-item):not(.disabled):hover {
    animation: none;
}

/* Mod Attributes & Calibration */
.mod-attributes-container, .calibration-attributes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px;
}

.calib-attr-text,
.calib-attr-placeholder {
    width: 100%;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.85em;
    font-family: 'h73light', sans-serif;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.calib-attr-placeholder {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px dashed rgba(104, 253, 214, 0.3);
}

.calib-attr-placeholder:hover {
    background: rgba(104, 253, 214, 0.08);
    border-color: #68fdd6;
    border-style: solid;
    color: #fff;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.15), inset 0 2px 4px rgba(0,0,0,0.5);
}

.calib-attr-placeholder .placeholder-text {
    color: #68fdd6;
    opacity: 0.8;
    font-family: 'h73bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calib-attr-placeholder span:not(.placeholder-text) {
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
}

/* ==========================================================================
   CONSOMMABLES (8 sur une ligne, optimisés pour la lisibilité)
   ========================================================================== */
.consumables-bar { 
    display: grid; 
    grid-template-columns: repeat(8, 1fr); /* Retour à 8 colonnes */
    gap: 8px; /* Espacement légèrement réduit pour laisser plus de place aux cases */
    padding: 15px; 
    background-color: rgba(0, 0, 0, 0.4); 
    border-radius: 8px; 
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.05);
}

.consumables-bar .builder-slot { 
    background: transparent; border: none; box-shadow: none; padding: 0; align-items: center; gap: 8px; 
}

.consumables-bar .vignette-placeholder { 
    width: 100%; 
    min-height: 90px; 
    padding: 5px; /* Padding minimal pour laisser toute la place à l'image */
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); 
}

.consumables-bar img.selected-item-image { 
    max-height: 50px; /* On force l'image à prendre un maximum de hauteur */
    margin-bottom: 4px !important;
}

.consumables-bar .selected-item-name { 
    font-size: 0.7rem; /* Texte un peu plus petit pour tenir sur une ligne */
    text-align: center; 
    color: #a8c0d0; 
    line-height: 1.1;
    margin-top: 2px !important;
    
    /* Empêche le texte de trop déborder si le nom est long */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limite à 2 lignes maximum */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@keyframes pulse-glow { 
    0% { box-shadow: 0 0 5px rgba(104, 253, 214, 0.2); } 
    50% { box-shadow: 0 0 15px rgba(104, 253, 214, 0.5); } 
    100% { box-shadow: 0 0 5px rgba(104, 253, 214, 0.2); } 
}
.matrix-radial-container { position: relative; width: 420px; height: 420px; margin: 40px auto; }
.matrix-radial-container::before { 
    content: ''; position: absolute; top: 50%; left: 50%; width: 350px; height: 350px; margin: -175px; 
    border: 1px dashed rgba(104, 253, 214, 0.15); border-radius: 50%; z-index: -1; 
    background: radial-gradient(circle, rgba(104, 253, 214, 0.05) 0%, transparent 60%);
}

/* Ajout d'un "Core" au centre du cercle */
.matrix-radial-container::after {
    content: 'MATRICES';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(104, 253, 214, 0.3);
    font-family: 'h73bold', sans-serif;
    letter-spacing: 4px;
    font-size: 1.2rem;
    text-shadow: 0 0 15px rgba(104, 253, 214, 0.2);
    pointer-events: none;
}

.matrix-slot { 
    position: absolute; top: 50%; left: 50%; width: 70px; height: 70px; margin: -35px; 
    background-color: rgba(15, 20, 25, 0.9); border: 1px solid rgba(104, 253, 214, 0.3); border-radius: 50%; 
    cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; 
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}
.matrix-slot:hover { 
    border-color: var(--primary-color); 
    background-color: var(--primary-color-hover); 
    animation: pulse-glow 2s infinite ease-in-out; 
    scale: 1.1; /* NOUVEAU : On utilise "scale" au lieu de "transform" pour ne pas casser la position */
}
.matrix-selected-image { width: 90%; height: 90%; object-fit: contain; border-radius: 50%; }

.matrix-slot:nth-of-type(1) { transform: rotate(0deg)   translate(175px) rotate(0deg); } 
.matrix-slot:nth-of-type(2) { transform: rotate(45deg)  translate(175px) rotate(-45deg); } 
.matrix-slot:nth-of-type(3) { transform: rotate(90deg)  translate(175px) rotate(-90deg); } 
.matrix-slot:nth-of-type(4) { transform: rotate(135deg) translate(175px) rotate(-135deg); } 
.matrix-slot:nth-of-type(5) { transform: rotate(180deg) translate(175px) rotate(-180deg); } 
.matrix-slot:nth-of-type(6) { transform: rotate(225deg) translate(175px) rotate(-225deg); } 
.matrix-slot:nth-of-type(7) { transform: rotate(270deg) translate(175px) rotate(-270deg); } 
.matrix-slot:nth-of-type(8) { transform: rotate(315deg) translate(175px) rotate(-315deg); }

/* ==========================================================================
   BOUTONS ET ACTIONS (Save, Privacy)
   ========================================================================== */
.privacy-switch-container { 
    display: flex; align-items: center; padding: 15px 20px; 
    background: rgba(0, 0, 0, 0.4); border-radius: 4px; border: 1px solid rgba(255,255,255,0.05);
}
.switch-label { font-family: 'h73bold', sans-serif; font-size: 0.9rem; color: #fff; margin-right: 15px; text-transform: uppercase; letter-spacing: 1px;}
.privacy-status { margin-left: auto; font-size: 0.85em; color: var(--text-muted); }

.switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #393939; transition: .4s; border-radius: 34px; border: 1px solid rgba(255,255,255,0.1); }
.slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 4px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: rgba(104, 253, 214, 0.2); border-color: var(--primary-color); }
input:checked + .slider:before { transform: translateX(24px); background-color: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }

/* --- STICKY ACTION BAR (Tableau de commande) --- */
.build-actions { 
    position: sticky;
    bottom: 20px;
    z-index: 100;
    background: rgba(5, 8, 12, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(104, 253, 214, 0.2);
    border-top: 3px solid var(--primary-color);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    padding: 20px 40px;
    filter: drop-shadow(0 -10px 20px rgba(0,0,0,0.8));
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between;
    gap: 20px; 
    margin-top: 30px; 
    transition: all 0.3s ease;
}

#save-build-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    height: 34px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
    font-family: 'h73bold', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Animation de scan sur le bouton au survol */
#save-build-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(104, 253, 214, 0.4), transparent);
    transition: left 0.5s;
}

#save-build-button:hover::before {
    left: 100%;
}

#save-build-button:hover:not(:disabled) { 
    background: rgba(104, 253, 214, 0.15); 
    color: #fff;
    box-shadow: 0 0 20px rgba(104, 253, 214, 0.3) inset; 
    transform: translateY(0); 
}

#save-build-button:disabled { 
    background: rgba(255,255,255,0.05); color: #555; border-color: #555; cursor: not-allowed;
}

#share-link-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
    background: rgba(0,0,0,0.5);
    padding: 10px;
    border-radius: 4px;
    border: 1px dashed rgba(104, 253, 214, 0.3);
}
#share-link {
    flex-grow: 1; background: transparent; border: none; color: #fff; font-family: monospace; padding: 5px;
}
#copy-link-button {
    background: var(--primary-color); color: #000; border: none; padding: 8px 15px; border-radius: 2px; font-weight: bold; cursor: pointer;
}

/* ==========================================================================
   MODE LECTURE (Read-Only)
   ========================================================================== */

/* 1. Pour les vignettes d'armes, armures, etc. */
.builder-container.read-only-mode .vignette-placeholder:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder:hover { 
    border-color: inherit !important; 
    background-color: transparent !important; 
    box-shadow: none !important; 
    /* LIGNE SUPPRIMÉE : transform: none !important; (C'est elle qui cassait le cercle !) */
    animation: none !important; 
    cursor: default;
}

/* 1b. Pour empêcher uniquement les images de zoomer en mode lecture (sans casser le conteneur) */
.builder-container.read-only-mode .vignette-placeholder:hover img.selected-item-image, 
.builder-container.read-only-mode .sub-vignette-placeholder:hover img.selected-item-image {
    transform: none !important;
}

/* 2. SPECIFIQUE POUR LES MATRICES : Annule les effets sans casser la position en cercle */
.builder-container.read-only-mode .matrix-slot:hover {
    border-color: rgba(104, 253, 214, 0.3) !important; /* Reste à sa couleur normale */
    background-color: rgba(15, 20, 25, 0.9) !important; /* Reste à sa couleur normale */
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8) !important; 
    scale: 1 !important; /* Empêche l'agrandissement au survol */
    animation: none !important; /* Empêche le clignotement */
    cursor: default;
}
.builder-container.read-only-mode .vignette-placeholder::after,
.builder-container.read-only-mode .sub-vignette-placeholder::after {
    display: none !important; /* Désactive le scan en mode lecture */
}
.builder-container.read-only-mode input[readonly], .builder-container.read-only-mode textarea[readonly] { 
    border-color: transparent; background: transparent; box-shadow: none; padding-left: 0;
}
.builder-container.read-only-mode .info-placeholder::after { display: none; }

/* ========================================================= */
/* --- BOUTONS DE RANG & SWITCH ANIMAUX (Style Premium) ---  */
/* ========================================================= */
.animal-rank-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.rank-button {
    padding: 8px 18px;
    background: rgba(15, 20, 25, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    font-family: 'h73bold', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.rank-button.inactive:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.3);
}

.rank-button.blue:not(.inactive) {
    background: rgba(52, 152, 219, 0.15); border-color: #3498db; color: #3498db;
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.3), inset 0 0 10px rgba(52, 152, 219, 0.2); text-shadow: 0 0 8px rgba(52, 152, 219, 0.6);
}
.rank-button.green:not(.inactive) {
    background: rgba(46, 204, 113, 0.15); border-color: #2ecc71; color: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.3), inset 0 0 10px rgba(46, 204, 113, 0.2); text-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}
.rank-button.purple:not(.inactive) {
    background: rgba(156, 39, 176, 0.15); border-color: #9c27b0; color: #d78cf1;
    box-shadow: 0 0 15px rgba(156, 39, 176, 0.3), inset 0 0 10px rgba(156, 39, 176, 0.2); text-shadow: 0 0 8px rgba(156, 39, 176, 0.6);
}
.rank-button.gold:not(.inactive) {
    background: rgba(255, 193, 7, 0.15); border-color: #ffc107; color: #ffc107;
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.3), inset 0 0 10px rgba(255, 193, 7, 0.2); text-shadow: 0 0 8px rgba(255, 193, 7, 0.6);
}

.rank-button:not(.inactive):hover { filter: brightness(1.3); }
.rank-button.inactive { box-shadow: none !important; text-shadow: none !important; }

/* ==========================================================================
   OVERRIDE PREMIUM DES VIGNETTES & SLOTS DU BUILDER (Style Terminal)
   ========================================================================== */
.vignette-placeholder, 
.sub-vignette-placeholder {
    background: rgba(10, 15, 20, 0.8);
    border: 1px solid rgba(104, 253, 214, 0.2);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 110px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Ligne de balayage holographique au survol */
.vignette-placeholder:not(.disabled):not(.has-item)::after, 
.sub-vignette-placeholder:not(.disabled):not(.has-item)::after {
    content: '';
    position: absolute;
    top: -50%; left: 0; right: 0;
    height: 200%;
    background: linear-gradient(to bottom, transparent, rgba(104, 253, 214, 0.1) 50%, transparent);
    transform: translateY(-100%);
    transition: transform 0.5s;
    pointer-events: none;
}

.vignette-placeholder:not(.disabled):not(.has-item):hover::after, 
.sub-vignette-placeholder:not(.disabled):not(.has-item):hover::after {
    transform: translateY(100%);
    transition: transform 1.5s linear infinite;
}

.vignette-placeholder:not(.disabled):not(.has-item):hover, 
.sub-vignette-placeholder:not(.disabled):not(.has-item):hover {
    border-color: #68fdd6;
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.2) inset;
}

.vignette-placeholder.has-item, 
.sub-vignette-placeholder.has-item {
    border-style: solid;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.vignette-placeholder .placeholder-text, 
.sub-vignette-placeholder .placeholder-text {
    color: rgba(104, 253, 214, 0.5);
    font-family: 'Courier New', Courier, monospace; /* Police terminal */
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s, text-shadow 0.3s;
}

.vignette-placeholder:not(.disabled):hover .placeholder-text, 
.sub-vignette-placeholder:not(.disabled):hover .placeholder-text {
    color: #68fdd6;
    text-shadow: 0 0 8px rgba(104, 253, 214, 0.5);
}

.vignette-placeholder img.selected-item-image, 
.sub-vignette-placeholder img.selected-item-image {
    max-width: 85%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 5px 8px rgba(0,0,0,0.6));
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 8px;
}

.vignette-placeholder:not(.disabled):hover img.selected-item-image, 
.sub-vignette-placeholder:not(.disabled):hover img.selected-item-image {
    transform: scale(1.15);
}

.vignette-placeholder .selected-item-name,
.sub-vignette-placeholder .selected-item-name {
    font-family: 'h73bold', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
}

/* ========================================================= */
/* --- SYSTÈME DE RARETÉ DYNAMIQUE ET MODALE ---             */
/* ========================================================= */
.vignette-placeholder.basique-rarete, .sub-vignette-placeholder.basique-rarete { border-style: solid; border-color: rgba(119, 119, 119, 0.5); border-top: 3px solid #777; background: radial-gradient(circle at 50% 120%, rgba(119, 119, 119, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%); }
.vignette-placeholder.commun-rarete, .sub-vignette-placeholder.commun-rarete { border-style: solid; border-color: rgba(76, 175, 80, 0.5); border-top: 3px solid #2ecc71; background: radial-gradient(circle at 50% 120%, rgba(76, 175, 80, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%); }
.vignette-placeholder.rare-rarete, .sub-vignette-placeholder.rare-rarete { border-style: solid; border-color: rgba(52, 152, 219, 0.5); border-top: 3px solid #3498db; background: radial-gradient(circle at 50% 120%, rgba(52, 152, 219, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%); }
.vignette-placeholder.epique-rarete, .sub-vignette-placeholder.epique-rarete { border-style: solid; border-color: rgba(156, 39, 176, 0.5); border-top: 3px solid #9c27b0; background: radial-gradient(circle at 50% 120%, rgba(156, 39, 176, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%); }
.vignette-placeholder.legendaire-rarete, .sub-vignette-placeholder.legendaire-rarete { border-style: solid; border-color: rgba(255, 193, 7, 0.5); border-top: 3px solid #ffc107; background: radial-gradient(circle at 50% 120%, rgba(255, 193, 7, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%); }

.vignette-placeholder.basique-rarete:hover, .sub-vignette-placeholder.basique-rarete:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(119, 119, 119, 0.2); border-color: #999; }
.vignette-placeholder.commun-rarete:hover, .sub-vignette-placeholder.commun-rarete:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(76, 175, 80, 0.2); border-color: #2ecc71; }
.vignette-placeholder.rare-rarete:hover, .sub-vignette-placeholder.rare-rarete:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(52, 152, 219, 0.2); border-color: #3498db; }
.vignette-placeholder.epique-rarete:hover, .sub-vignette-placeholder.epique-rarete:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(156, 39, 176, 0.2); border-color: #d78cf1; }
.vignette-placeholder.legendaire-rarete:hover, .sub-vignette-placeholder.legendaire-rarete:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.6), inset 0 0 20px rgba(255, 193, 7, 0.2); border-color: #ffeb3b; }

/* Grille de sélection modale dynamique avec hover scale */
.item-vignette {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.item-vignette.legendaire-rarete { background: linear-gradient(135deg, rgba(230, 126, 34, 0.1), rgba(0,0,0,0.8)); border: 1px solid #e67e22; }
.item-vignette.epique-rarete { background: linear-gradient(135deg, rgba(155, 89, 182, 0.1), rgba(0,0,0,0.8)); border: 1px solid #9b59b6; }
.item-vignette.rare-rarete { background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(0,0,0,0.8)); border: 1px solid #3498db; }
.item-vignette:hover { transform: scale(1.05); z-index: 10; }

.vignette-placeholder.disabled, 
.sub-vignette-placeholder.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    transform: scale(0.98);
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

/* ========================================================= */
/* --- BOUTON VIDER L'EMPLACEMENT (CLEAR SLOT) ---           */
/* ========================================================= */
.clear-slot-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(10, 15, 20, 0.95); /* Fond sombre tech */
    color: rgba(255, 82, 82, 0.6); /* Rouge assourdi/subtil */
    border: 1px solid rgba(255, 82, 82, 0.3); /* Bordure discrète */
    border-radius: 0;
    /* Biseau façon HUD au lieu de l'hexagone massif */
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); 
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'h73bold', sans-serif;
    font-size: 13px;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 20;
}

.vignette-placeholder.has-item:hover .clear-slot-btn,
.sub-vignette-placeholder.has-item:hover .clear-slot-btn {
    opacity: 1;
    transform: scale(1);
    top: 5px;
    right: 5px;
}

.clear-slot-btn:hover {
    background: rgba(255, 82, 82, 0.15); /* Légère lueur rouge au fond */
    color: #ff5252; /* La croix s'illumine */
    border-color: #ff5252;
    transform: scale(1.1) rotate(90deg) !important;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.4), inset 0 0 8px rgba(255, 82, 82, 0.2);
}

/* ========================================================= */
/* --- JAUGE DE PROGRESSION (Cellules d'Énergie) ---         */
/* ========================================================= */
.build-progress-container {
    flex-grow: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: transparent;
    padding: 0;
    border: none;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-family: 'h73bold', sans-serif;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-text {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(104, 253, 214, 0.4);
}

.progress-bar-bg {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(104, 253, 214, 0.2);
    /* Biseautage des coins de la jauge */
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    /* Crée l'effet de segments / blocs d'énergie diagonaux */
    background-image: repeating-linear-gradient(
        -45deg,
        var(--primary-color),
        var(--primary-color) 10px,
        transparent 10px,
        transparent 14px
    );
    background-size: 28px 100%;
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.8);
    transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: moveStripes 1s linear infinite;
    border-radius: 0;
}

/* État de surcharge (100%) pour la jauge */
.progress-bar-fill.max-power {
    background-image: repeating-linear-gradient(
        -45deg,
        #ffc107, /* Passe en doré/légendaire */
        #ffc107 10px,
        transparent 10px,
        transparent 14px
    );
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.8);
    filter: brightness(1.2);
}
.progress-text.max-power-text {
    color: #ffc107;
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.6);
}

@keyframes moveStripes {
    0% { background-position: 0 0; }
    100% { background-position: 28px 0; }
}

/* ========================================================= */
/* --- CORRECTION : CENTRAGE ET VISIBILITE DES VIGNETTES --- */
/* ========================================================= */
.vignette-placeholder:not([style*="none"]), 
.sub-vignette-placeholder:not([style*="none"]), 
.item-vignette:not([style*="none"]) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box;
}

.vignette-placeholder .selected-item-name, 
.sub-vignette-placeholder .selected-item-name,
.vignette-placeholder .placeholder-text, 
.sub-vignette-placeholder .placeholder-text,
.item-vignette .vignette-name,
.item-vignette-text-only span {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
    display: block;
    flex-grow: 0 !important; /* Empêche le texte de s'étirer verticalement */
    text-align: center !important; /* Assure le centrage horizontal absolu */
}

.vignette-placeholder img.selected-item-image, 
.sub-vignette-placeholder img.selected-item-image,
.item-vignette img {
    margin: 0 0 8px 0 !important; 
}

.vignette-placeholder .selected-item-name:empty, 
.sub-vignette-placeholder .selected-item-name:empty {
    display: none !important;
}

.vignette-placeholder img.selected-item-image[src=""], 
.sub-vignette-placeholder img.selected-item-image[src=""] {
    display: none !important;
    margin: 0 !important;
}

/* ========================================================= */
/* --- FORÇAGE DU CENTRAGE DES TEXTES DE TRAITS          --- */
/* ========================================================= */
.sub-vignette-placeholder[data-sub-item-type="traits_anomalies"],
.sub-vignette-placeholder[data-sub-item-type="traits_animaux"] {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.sub-vignette-placeholder[data-sub-item-type="traits_anomalies"]:not([style*="display: none"]),
.sub-vignette-placeholder[data-sub-item-type="traits_animaux"]:not([style*="display: none"]) {
    display: flex !important;
}

.sub-vignette-placeholder[data-sub-item-type="traits_anomalies"][style*="display: none"],
.sub-vignette-placeholder[data-sub-item-type="traits_animaux"][style*="display: none"] {
    display: none !important;
}

/* ========================================================= */
/* --- TOOLTIP NATIF DU BUILDER                          --- */
/* ========================================================= */
.item-builder-tooltip {
    position: absolute;
    background: rgba(10, 15, 20, 0.95);
    border: 1px solid #68fdd6;
    border-radius: 0;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    padding: 15px;
    color: #e0e0e0;
    font-size: 0.85rem;
    max-width: 300px;
    z-index: 10600; 
    pointer-events: none; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
    display: none;
    line-height: 1.4;
}

.item-builder-tooltip .tooltip-title {
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    font-size: 1rem;
    display: block;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(104, 253, 214, 0.3);
    padding-bottom: 5px;
    text-transform: uppercase;
}

.item-builder-tooltip .tooltip-line { margin-bottom: 6px; }
.item-builder-tooltip .tooltip-line strong { color: #a8c0d0; margin-right: 5px; }

/* ==========================================================================
   MODALES DE SÉLECTION (Style Terminal HUD AAA)
   ========================================================================== */

/* Fond sombre et flouté derrière la modale (Overlay) */
.builder-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(5, 8, 12, 0.85) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10010 !important;
}

/* Fenêtre de la modale principale - CENTRAGE FORCÉ */
.builder-modal-content {
    /* --- C'est ici que la magie du centrage opère --- */
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important; /* Annule les marges parasites d'autres fichiers CSS */
    
    /* Dimensions responsives */
    width: 95%; 
    max-width: 1100px;
    max-height: 90vh; /* Empêche de dépasser l'écran en hauteur */
    
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.95) 0%, rgba(5, 8, 12, 0.98) 100%);
    border: 1px solid rgba(104, 253, 214, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 0;
    clip-path: polygon(25px 0, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0 25px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.9), inset 0 0 30px rgba(104, 253, 214, 0.05);
    padding: 30px 35px;
    
    display: flex;
    flex-direction: column;
}

.builder-modal-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Maintient les filtres fixes en haut */
}

/* Croix de fermeture */
.builder-modal-close {
    color: var(--primary-color);
    font-size: 32px;
    font-family: monospace;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: 0 0 10px rgba(104, 253, 214, 0.5);
    z-index: 10;
    position: relative;
}

.builder-modal-close:hover {
    color: #ff5252;
    text-shadow: 0 0 15px rgba(255, 82, 82, 0.8);
    transform: scale(1.2) rotate(90deg);
}

/* Titre de la modale */
#item-modal-title {
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #fff;
    text-shadow: 0 0 15px rgba(104, 253, 214, 0.5);
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    flex-shrink: 0; /* Empêche le titre de s'écraser */
}

#item-modal-title::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0;
    width: 150px; height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* Barre de défilement (Scrollbar) Futuriste pour la modale */
.builder-modal-content::-webkit-scrollbar { width: 8px; }
.builder-modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); border-left: 1px solid rgba(255,255,255,0.05); }
.builder-modal-content::-webkit-scrollbar-thumb { background: rgba(104, 253, 214, 0.5); border-radius: 4px; }
.builder-modal-content::-webkit-scrollbar-thumb:hover { background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }

/* ==========================================================================
   BARRE DE FILTRES ET DE RECHERCHE (Terminal)
   ========================================================================== */
.filters-container.improved-filters {
    position: relative !important;
    padding: 15px 20px !important; 
    display: flex !important;
    flex-direction: row !important; /* FORCE L'AFFICHAGE HORIZONTAL */
    flex-wrap: wrap !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 15px !important;
    background: rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-left: 3px solid var(--primary-color) !important;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.filter-group-modal {
    display: flex !important;
    flex-direction: column !important; /* Le label reste au-dessus de l'input */
    gap: 6px !important;
    flex: 0 0 auto !important; /* Empêche l'élément de s'étirer */
    width: auto !important; /* Garantit qu'il ne prend que la place nécessaire */
}

.filter-label-tech {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* --- Barre de recherche textuelle --- */
#modal-search {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-bottom: 1px solid rgba(104, 253, 214, 0.3);
    color: #fff;
    padding: 10px 15px;
    font-family: 'h73light', sans-serif;
    font-size: 0.95rem;
    width: 200px;
    height: 36px;
    box-sizing: border-box;
    transition: all 0.3s;
}

#modal-search:focus {
    border-bottom-color: var(--primary-color);
    outline: none;
    background: rgba(104, 253, 214, 0.1);
    box-shadow: inset 0 -20px 20px -20px var(--primary-color);
}

/* --- Menus déroulants classiques (Mots-clés, Sets, etc.) --- */
.oh-modal-trigger {
    background: rgba(15, 20, 25, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0 18px;
    height: 36px;
    color: #ccc;
    font-family: 'h73bold', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 120px;
    box-sizing: border-box;
}

.oh-modal-trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid inherit;
    margin-left: 10px;
    opacity: 0.6;
    vertical-align: middle;
}

.oh-modal-trigger:hover, .oh-modal-trigger.active-filter {
    background: rgba(104, 253, 214, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: inset 0 0 10px rgba(104, 253, 214, 0.2);
}

/* ========================================================= */
/* --- FILTRES RAPIDES "ONE-CLICK" (Ex: Rareté)          --- */
/* ========================================================= */
.quick-filters-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Le secret est ici : interdit de passer à la ligne ! */
    gap: 4px !important;
    height: 36px !important;
}

.quick-filter-btn {
    height: 36px;
    padding: 0 10px !important; 
    font-size: 0.7rem !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap; 
    background: rgba(15, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8c0d0;
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0.7;
}

.quick-filter-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* --- États Actifs par Rareté --- */
.quick-filter-btn.active { opacity: 1; color: #fff; border-style: solid; }
.quick-filter-btn.basique-rarete.active { border-color: #999; background: rgba(119, 119, 119, 0.2); box-shadow: inset 0 0 10px rgba(119, 119, 119, 0.3), 0 0 8px rgba(119, 119, 119, 0.2); }
.quick-filter-btn.commun-rarete.active { border-color: #2ecc71; background: rgba(46, 204, 113, 0.2); box-shadow: inset 0 0 10px rgba(46, 204, 113, 0.3), 0 0 8px rgba(46, 204, 113, 0.2); }
.quick-filter-btn.rare-rarete.active { border-color: #3498db; background: rgba(52, 152, 219, 0.2); box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.3), 0 0 8px rgba(52, 152, 219, 0.2); }
.quick-filter-btn.epique-rarete.active { border-color: #d78cf1; background: rgba(156, 39, 176, 0.2); box-shadow: inset 0 0 10px rgba(156, 39, 176, 0.3), 0 0 8px rgba(156, 39, 176, 0.2); }
.quick-filter-btn.legendaire-rarete.active { border-color: #ffc107; background: rgba(255, 193, 7, 0.2); box-shadow: inset 0 0 10px rgba(255, 193, 7, 0.3), 0 0 8px rgba(255, 193, 7, 0.2); color: #ffc107; }

/* ========================================================= */
/* --- BOUTON RESET (Carré et discret)                   --- */
/* ========================================================= */
.builder-modal .filter-group-modal.reset-group {
    position: relative !important;
    margin-left: auto !important; /* Pousse le bouton complètement à droite */
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: flex-end !important; /* Assure l'alignement avec les autres inputs */
    overflow: visible !important;
}

.builder-modal .filter-btn-reset {
    position: relative !important; /* Fini le positionnement absolu ! */
    top: auto !important;
    right: auto !important;
    margin: 0 !important;
    height: 36px !important; /* S'aligne parfaitement avec le height: 36px des autres inputs */
    width: 36px !important; 
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    background: rgba(255, 82, 82, 0.05) !important;
    border: 1px solid rgba(255, 82, 82, 0.3) !important;
    color: #ff5252 !important;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    z-index: 10 !important;
}

.builder-modal .filter-btn-reset:hover {
    background: #ff5252 !important;
    color: #fff !important;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.5) !important;
}

/* ==========================================================================
   GRILLE DES ITEMS & ITEMS TEXTE SEUL (Schémas, etc.)
   ========================================================================== */
.item-vignette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    padding: 15px 5px 15px 5px;
    
    /* Active le scroll UNIQUEMENT sur la grille */
    overflow-y: auto; 
    flex-grow: 1;
    min-height: 0; 
}

/* Barre de défilement (Scrollbar) attachée à la grille */
.item-vignette-grid::-webkit-scrollbar { width: 8px; }
.item-vignette-grid::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); border-left: 1px solid rgba(255,255,255,0.05); }
.item-vignette-grid::-webkit-scrollbar-thumb { background: rgba(104, 253, 214, 0.4); border-radius: 4px; }
.item-vignette-grid::-webkit-scrollbar-thumb:hover { background: var(--primary-color); box-shadow: 0 0 10px var(--primary-color); }

.item-vignette {
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

/* Items sans image (Ex: Schémas de calibrage) */
.item-vignette-text-only {
    background: rgba(15, 20, 25, 0.8);
    border: 1px dashed rgba(104, 253, 214, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
    padding: 15px;
    transition: all 0.3s;
}

.item-vignette-text-only:hover {
    background: rgba(104, 253, 214, 0.1);
    border-style: solid;
    border-color: var(--primary-color);
    box-shadow: inset 0 0 15px rgba(104, 253, 214, 0.2);
}

.item-vignette-text-only span {
    font-family: 'h73bold', sans-serif;
    font-size: 0.85rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.item-vignette-text-only:hover span {
    color: var(--primary-color);
    text-shadow: 0 0 8px rgba(104, 253, 214, 0.5);
}

/* ==========================================================================
   SOUS-MODALE DES FILTRES (Dropdown stylisé)
   ========================================================================== */
.oh-filter-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s; z-index: 10050;
}

.oh-filter-modal-overlay.active {
    opacity: 1; pointer-events: all;
}

.oh-filter-modal {
    background: rgba(10, 15, 20, 0.98);
    border: 1px solid var(--primary-color);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    padding: 25px;
    width: 90%; max-width: 400px; max-height: 80vh;
    box-shadow: 0 20px 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(104, 253, 214, 0.1);
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}

.oh-filter-modal-overlay.active .oh-filter-modal {
    transform: translateY(0) scale(1);
}

.oh-modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(104, 253, 214, 0.3);
    padding-bottom: 15px;
}

.oh-modal-header h3 {
    color: var(--primary-color);
    font-family: 'h73bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 0 10px rgba(104, 253, 214, 0.3);
}

.oh-modal-close {
    background: transparent; border: none; color: #ff5252;
    font-size: 1.5rem; font-family: monospace; cursor: pointer;
    transition: transform 0.2s;
}
.oh-modal-close:hover {
    transform: scale(1.2) rotate(90deg); text-shadow: 0 0 10px #ff5252;
}

.oh-modal-content {
    display: flex; flex-direction: column; gap: 8px;
    overflow-y: auto; padding-right: 10px;
}

.oh-modal-content::-webkit-scrollbar { width: 4px; }
.oh-modal-content::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.5); }
.oh-modal-content::-webkit-scrollbar-thumb { background: rgba(104, 253, 214, 0.5); border-radius: 2px; }

.oh-modal-option {
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    color: #ccc;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'h73light', sans-serif;
    font-size: 0.95rem;
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}

.oh-modal-option:hover {
    background: rgba(104, 253, 214, 0.1);
    color: #fff;
    border-color: var(--primary-color);
    border-style: solid;
    padding-left: 25px; /* Effet de décalage au survol */
}

.oh-modal-option.selected {
    background: rgba(104, 253, 214, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    border-style: solid;
    font-family: 'h73bold', sans-serif;
    box-shadow: inset 0 0 10px rgba(104, 253, 214, 0.2);
}

.oh-modal-option.selected::before {
    content: '■';
    color: var(--primary-color);
    font-size: 0.6em;
    margin-right: 10px;
    vertical-align: middle;
}

/* --- Scrollbar futuriste pour la zone de notes --- */
textarea#build-notes::-webkit-scrollbar {
    width: 6px;
}
textarea#build-notes::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(104, 253, 214, 0.1);
}
textarea#build-notes::-webkit-scrollbar-thumb {
    background: rgba(104, 253, 214, 0.3);
    border-radius: 0; /* On garde l'esprit carré/biseauté */
}
textarea#build-notes::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* ========================================================= */
/* --- INTEGRATION DU SWITCH DE VISIBILITE (BARRE ACTIONS) - */
/* ========================================================= */
.build-actions {
    flex-wrap: wrap; /* Assure que les éléments passent à la ligne sur petit écran */
}

.privacy-switch-container.integrated-switch {
    background: rgba(0, 0, 0, 0.6);
    border: 1px dashed rgba(104, 253, 214, 0.3);
    border-left: 3px solid var(--primary-color);
    border-radius: 0;
    padding: 10px 20px;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    margin: 0 15px; /* Espacement avec la jauge et le bouton Save */
}

.privacy-switch-container.integrated-switch .switch-label {
    font-size: 0.85rem;
    margin-right: 12px;
}

.privacy-switch-container.integrated-switch .privacy-status {
    font-size: 0.75rem;
    margin-left: 12px;
}

/* ========================================================= */
/* --- DISPOSITION EN LIGNE (ICÔNE À GAUCHE) POUR ARMES  --- */
/* ========================================================= */

/* 1. On force l'affichage en ligne (row) au lieu de colonne */
.sub-vignette-placeholder[data-sub-item-type="schema"],
.sub-vignette-placeholder[data-sub-item-type="mod"],
.sub-vignette-placeholder[data-sub-item-type="accessory"],
.sub-vignette-placeholder[data-sub-item-type="munition"] { /* <-- AJOUT ICI */
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    padding: 8px 15px !important;
    min-height: 55px !important;
}

/* 2. On ajuste la taille et la marge de l'image (icône à gauche) */
.sub-vignette-placeholder[data-sub-item-type="schema"] img.selected-item-image,
.sub-vignette-placeholder[data-sub-item-type="mod"] img.selected-item-image,
.sub-vignette-placeholder[data-sub-item-type="accessory"] img.selected-item-image,
.sub-vignette-placeholder[data-sub-item-type="munition"] img.selected-item-image { /* <-- AJOUT ICI */
    margin: 0 15px 0 0 !important;
    height: 35px !important;
    width: 35px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

/* 3. On aligne le nom de l'item sélectionné à gauche */
.sub-vignette-placeholder[data-sub-item-type="schema"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="mod"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="accessory"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="munition"] .selected-item-name { /* <-- AJOUT ICI */
    text-align: left !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
}

/* 4. On aligne également le texte par défaut (quand le slot est vide) */
.sub-vignette-placeholder[data-sub-item-type="schema"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="mod"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="accessory"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="munition"] .placeholder-text { /* <-- AJOUT ICI */
    text-align: left !important;
    margin: 0 !important;
    font-size: 0.8rem !important;
}

/* --- Agrandissement spécifique pour la ligne du MOD --- */

/* 1. On donne plus de hauteur au conteneur du Mod pour laisser l'icône grandir */
.sub-vignette-placeholder[data-sub-item-type="mod"] {
    min-height: 85px !important;
}

/* 2. On agrandit drastiquement l'icône du Mod */
.sub-vignette-placeholder[data-sub-item-type="mod"] img.selected-item-image {
    height: 75px !important; 
    width: 75px !important;
    margin-right: 20px !important;
}

/* Cache les boutons de suppression (croix) en mode consultation */
.builder-container.read-only-mode .clear-slot-btn {
    display: none !important;
}

/* ========================================================================== */
/* --- CORRECTION BORDURE SURVOL (SCHÉMAS, MODS, ACCESSOIRES) --- */
/* ========================================================================== */

/* 1. Base : coupe fine et bordure épaisse en haut maintenue */
.sub-vignette-placeholder[data-sub-item-type="schema"],
.sub-vignette-placeholder[data-sub-item-type="mod"],
.sub-vignette-placeholder[data-sub-item-type="accessory"] {
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px) !important;
    border-top-width: 3px !important; 
}

/* 2. EFFETS DE SURVOL ACTIFS (UNIQUEMENT HORS MODE LECTURE) */
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="schema"]:hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="mod"]:hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="accessory"]:hover {
    border-style: solid !important;
    border-width: 1px !important;
    border-top-width: 3px !important; 
    transform: translateY(-2px) !important; 
    z-index: 5;
}

/* 3. LUEUR CYAN (UNIQUEMENT CASES VIDES ET HORS MODE LECTURE) */
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="schema"]:not(.has-item):hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="mod"]:not(.has-item):hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="accessory"]:not(.has-item):hover {
    border-color: var(--primary-color) !important;
    background: linear-gradient(90deg, rgba(104, 253, 214, 0.1) 0%, rgba(15, 20, 25, 0.9) 60%) !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5), inset 0 0 10px rgba(104, 253, 214, 0.15) !important;
}

/* 4. MODE LECTURE : On empêche l'effacement destructeur des bordures */
.builder-container.read-only-mode .sub-vignette-placeholder[data-sub-item-type="schema"]:hover,
.builder-container.read-only-mode .sub-vignette-placeholder[data-sub-item-type="mod"]:hover,
.builder-container.read-only-mode .sub-vignette-placeholder[data-sub-item-type="accessory"]:hover {
    transform: none !important;
    border-top-width: 3px !important; /* Force la bordure haute à rester visible */
    background-color: rgba(10, 15, 20, 0.8) !important; /* Fond neutre pour les items basiques */
    border-color: rgba(255, 255, 255, 0.1) !important; /* Bordure neutre */
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8) !important; /* Ombrage normal */
    cursor: default !important;
}

/* 5. MODE LECTURE : Maintien absolu des couleurs de rareté au survol */
.builder-container.read-only-mode .sub-vignette-placeholder.commun-rarete[data-sub-item-type="schema"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.commun-rarete[data-sub-item-type="mod"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.commun-rarete[data-sub-item-type="accessory"]:hover { border-color: rgba(76, 175, 80, 0.5) !important; border-top-color: #2ecc71 !important; background: radial-gradient(circle at 50% 120%, rgba(76, 175, 80, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%) !important; }

.builder-container.read-only-mode .sub-vignette-placeholder.rare-rarete[data-sub-item-type="schema"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.rare-rarete[data-sub-item-type="mod"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.rare-rarete[data-sub-item-type="accessory"]:hover { border-color: rgba(52, 152, 219, 0.5) !important; border-top-color: #3498db !important; background: radial-gradient(circle at 50% 120%, rgba(52, 152, 219, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%) !important; }

.builder-container.read-only-mode .sub-vignette-placeholder.epique-rarete[data-sub-item-type="schema"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.epique-rarete[data-sub-item-type="mod"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.epique-rarete[data-sub-item-type="accessory"]:hover { border-color: rgba(156, 39, 176, 0.5) !important; border-top-color: #9c27b0 !important; background: radial-gradient(circle at 50% 120%, rgba(156, 39, 176, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%) !important; }

.builder-container.read-only-mode .sub-vignette-placeholder.legendaire-rarete[data-sub-item-type="schema"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.legendaire-rarete[data-sub-item-type="mod"]:hover, 
.builder-container.read-only-mode .sub-vignette-placeholder.legendaire-rarete[data-sub-item-type="accessory"]:hover { border-color: rgba(255, 193, 7, 0.5) !important; border-top-color: #ffc107 !important; background: radial-gradient(circle at 50% 120%, rgba(255, 193, 7, 0.15) 0%, rgba(15, 20, 25, 0.8) 70%) !important; }

/* ==========================================================================
   OVERRIDE : VIGNETTES MODS ET PEAUX (Mode en ligne avec image à gauche)
   ========================================================================== */

/* 1. Masquer le titre "Peau" */
h4.sub-slot-title:has(+ .sub-vignette-placeholder[data-sub-item-type="peau"]) {
    display: none !important;
}

/* 2. Transformer le titre "Mod" en trait fin de séparation */
h4.sub-slot-title:has(+ .sub-vignette-placeholder[data-sub-item-type="mod"]) {
    font-size: 0 !important;
    color: transparent !important;
    text-shadow: none !important;
    height: 1px !important;
    min-height: 1px !important;
    width: 80% !important;
    margin: 12px auto !important;
    padding: 0 !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    overflow: hidden !important;
}

/* 3. Forcer l'affichage en ligne (horizontal) pour Mods et Peaux */
.sub-vignette-placeholder[data-sub-item-type="mod"],
.sub-vignette-placeholder[data-sub-item-type="peau"] {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    padding: 8px 15px !important;
    min-height: 55px !important; /* Rendu compact */
}

/* 4. Ajuster la taille de l'image sélectionnée à gauche */
.sub-vignette-placeholder[data-sub-item-type="mod"] img.selected-item-image,
.sub-vignette-placeholder[data-sub-item-type="peau"] img.selected-item-image {
    margin: 0 15px 0 0 !important; /* Repousse le texte à droite */
    height: 35px !important;
    width: 35px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important; /* Empêche l'icône de s'écraser */
}

/* 5. Aligner les textes à gauche */
.sub-vignette-placeholder[data-sub-item-type="mod"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="peau"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="mod"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="peau"] .placeholder-text {
    text-align: left !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
    flex-grow: 1 !important;
}

/* ==========================================================================
   OVERRIDE : CORRECTION DES GROS POINTILLÉS (Bordure haute)
   ========================================================================== */

/* On force la bordure haute à 1px UNIQUEMENT quand la case est vide (dashed) */
.sub-vignette-placeholder[data-sub-item-type="schema"]:not(.has-item),
.sub-vignette-placeholder[data-sub-item-type="mod"]:not(.has-item),
.sub-vignette-placeholder[data-sub-item-type="accessory"]:not(.has-item),
.sub-vignette-placeholder[data-sub-item-type="peau"]:not(.has-item) {
    border-top-width: 1px !important;
}

/* (Optionnel) Si tu veux aussi retirer la surépaisseur au survol de la souris */
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="schema"]:hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="mod"]:hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="accessory"]:hover,
.builder-container:not(.read-only-mode) .sub-vignette-placeholder[data-sub-item-type="peau"]:hover {
    border-top-width: 1px !important;
}

/* ==========================================================================
   OVERRIDE ULTIME : VIGNETTES MODS ET PEAUX (Fix Tailles, Disposition et Ordre)
   ========================================================================== */

/* 1. Vaincre la spécificité du CSS global pour FORCER l'affichage en ligne */
.sub-vignette-placeholder[data-sub-item-type="mod"]:not([style*="none"]),
.sub-vignette-placeholder[data-sub-item-type="peau"]:not([style*="none"]) {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    padding: 8px 15px !important;
    min-height: 55px !important;
    height: auto !important; /* Empêche l'étirement vertical abusif */
}

/* 2. Gérer l'ordre d'affichage (On force l'image à s'afficher AVANT le texte) */
.sub-vignette-placeholder[data-sub-item-type="mod"] img.selected-item-image,
.sub-vignette-placeholder[data-sub-item-type="peau"] img.selected-item-image {
    order: -1 !important; /* Place l'image tout à gauche */
    margin: 0 15px 0 0 !important; /* Marge à droite de l'image */
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

.sub-vignette-placeholder[data-sub-item-type="mod"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="peau"] .placeholder-text,
.sub-vignette-placeholder[data-sub-item-type="mod"] .selected-item-name,
.sub-vignette-placeholder[data-sub-item-type="peau"] .selected-item-name {
    order: 1 !important; /* Place le texte après l'image */
    text-align: left !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    font-size: 0.85rem !important;
}

/* 3. Tailles des icônes par DÉFAUT (les placeholders gris) -> Petites */
img.selected-item-image[src*="icon_leather"],
img.selected-item-image[src*="memo_cbt2_module_bg_white"],
img.selected-item-image[src*="settings_icon"] {
    height: 25px !important;
    width: 25px !important;
    opacity: 0.5 !important;
}

/* 4. Taille de la PEAU sélectionnée -> Taille normale */
.sub-vignette-placeholder[data-sub-item-type="peau"] img.selected-item-image:not([src*="icon_leather"]) {
    height: 35px !important;
    width: 35px !important;
    opacity: 1 !important;
}

/* ==========================================================================
   ICÔNES DES MODS AGRANDIES (SLOTS DU BUILDER & MODALE DE CHOIX)
   ========================================================================== */

/* 1. Icône du Mod sélectionné dans le slot du Builder */
.sub-vignette-placeholder[data-sub-item-type="mod"] img.selected-item-image:not([src*="memo_cbt2_module_bg_white"]):not([src*="settings_icon"]) {
    height: 35px !important;
    width: 35px !important;
    margin: 0 15px 0 4px !important;
    opacity: 1 !important;
    transform: scale(2) !important; /* Compense la marge transparente du PNG */
    filter: brightness(1.2) drop-shadow(0 0 4px rgba(104, 253, 214, 0.4)) !important;
    transition: transform 0.25s ease, filter 0.25s ease !important;
}

/* Maintient le zoom au survol du slot de Mod dans le Builder */
.sub-vignette-placeholder[data-sub-item-type="mod"]:not(.disabled):hover img.selected-item-image:not([src*="memo_cbt2_module_bg_white"]):not([src*="settings_icon"]) {
    transform: scale(2.25) !important;
    filter: brightness(1.35) drop-shadow(0 0 6px rgba(104, 253, 214, 0.75)) !important;
}

/* 2. Icônes des Mods et des Suffixes dans la modale de sélection du Builder */
.item-vignette[data-item-type="mod"] img,
.item-vignette[data-item-type="suffix"] img {
    transform: scale(2.1) !important;
    filter: brightness(1.2) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.7)) !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.item-vignette[data-item-type="mod"]:hover img,
.item-vignette[data-item-type="suffix"]:hover img {
    transform: scale(2.4) !important;
    filter: brightness(1.35) drop-shadow(0 0 8px rgba(104, 253, 214, 0.6)) !important;
}

/* ==========================================================================
   OVERRIDE : AFFICHAGE DU SUFFIXE AVEC ICÔNE AGRANDIE (BUILDER & MODALE)
   ========================================================================== */
.sub-vignette-placeholder[data-sub-item-type="suffix"]:not([style*="none"]) {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    min-height: 54px !important;
    padding: 6px 16px !important;
    gap: 14px !important;
    overflow: hidden !important;
}

.sub-vignette-placeholder[data-sub-item-type="suffix"] img.selected-item-image {
    order: -1 !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 6px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    opacity: 1 !important;
    transform: scale(2.35) !important;
    transform-origin: center center !important;
    filter: drop-shadow(0 0 6px rgba(104, 253, 214, 0.45)) brightness(1.15) !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.sub-vignette-placeholder[data-sub-item-type="suffix"]:not(.disabled):hover img.selected-item-image {
    transform: scale(2.6) !important;
    filter: drop-shadow(0 0 9px rgba(104, 253, 214, 0.75)) brightness(1.25) !important;
}

.sub-vignette-placeholder[data-sub-item-type="suffix"] .selected-item-name {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    flex-grow: 1 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #68fdd6 !important;
    line-height: 1.2 !important;
}

.sub-vignette-placeholder[data-sub-item-type="suffix"] .suffix-builder-chevron {
    order: 2 !important;
    color: rgba(104, 253, 214, 0.7);
    display: flex;
    align-items: center;
    margin-left: auto;
    transition: transform 0.2s ease, color 0.2s ease;
}

.sub-vignette-placeholder[data-sub-item-type="suffix"]:hover .suffix-builder-chevron {
    color: #68fdd6;
    transform: translateY(2px);
}

.builder-container.read-only-mode .sub-vignette-placeholder[data-sub-item-type="suffix"] .suffix-builder-chevron {
    display: none !important;
}

/* Zoom sur les icônes de suffixes dans la modale de choix du Builder */
.item-vignette[data-item-type="suffix"] img {
    transform: scale(2.2) !important;
    transform-origin: center center !important;
    filter: drop-shadow(0 0 7px rgba(104, 253, 214, 0.45)) brightness(1.15) !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.item-vignette[data-item-type="suffix"]:hover img {
    transform: scale(2.45) !important;
    filter: drop-shadow(0 0 12px rgba(104, 253, 214, 0.8)) brightness(1.25) !important;
}

/* ==========================================================================
   AMÉLIORATIONS UX : QUICK JUMP, RÉSUMÉS ET CLEAR SECTION
   ========================================================================== */

/* --- 1. MENU D'ANCRAGE FLOTTANT (QUICK JUMP) --- */
.quick-jump-menu {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1050;
    background: rgba(10, 15, 20, 0.8);
    padding: 15px 10px;
    border-radius: 20px;
    border: 1px solid rgba(104, 253, 214, 0.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.qj-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
}

.qj-dot:hover, .qj-dot.active {
    background: #68fdd6;
    box-shadow: 0 0 10px #68fdd6;
    transform: scale(1.3);
}

/* Tooltip du Quick Jump */
.qj-tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 15, 20, 0.95);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'h73bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
    border: 1px solid #68fdd6;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    pointer-events: none;
}

.qj-tooltip::after {
    content: '';
    position: absolute;
    top: 50%; right: -5px;
    transform: translateY(-50%);
    border-width: 5px 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent transparent #68fdd6;
}

.qj-dot:hover .qj-tooltip {
    opacity: 1;
    visibility: visible;
    right: 25px;
}

/* Cache le menu sur petits écrans (tablettes/mobiles) */
@media (max-width: 1300px) {
    .quick-jump-menu { display: none !important; }
}

/* --- 2. RÉSUMÉS DYNAMIQUES DANS L'EN-TÊTE --- */
.build-section h2 {
    display: flex;
    align-items: center;
}

/* On aligne les icônes à gauche (près du titre) et on active l'interaction */
.section-summary-icons {
    display: flex;
    gap: 8px; /* Un peu plus d'espace entre les grandes vignettes */
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-left: 15px; /* <-- Aligné près du titre */
    pointer-events: auto; /* <-- Indispensable pour autoriser l'info au survol */
}

/* N'affiche les icônes que lorsque la section est repliée */
.build-section.collapsed .section-summary-icons {
    opacity: 1;
    visibility: visible;
}

/* On agrandit les vignettes */
.section-summary-icons img {
    height: 36px; /* <-- Plus grand (au lieu de 24px) */
    width: 36px;  /* <-- Plus grand (au lieu de 24px) */
    object-fit: contain;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(104, 253, 214, 0.3);
    border-radius: 4px;
    padding: 2px;
    cursor: help; /* <-- Curseur d'aide pour indiquer le survol */
}

/* Retire la marge auto du chevron natif UNIQUEMENT si la section possède des icônes */
.build-section h2:has(.section-summary-icons)::after {
    margin-left: 15px !important;
}

/* --- 3. BOUTON TOUT VIDER (Poubelle) --- */
.clear-section-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    margin-right: 15px;
    margin-left: auto; /* <-- Pousse la corbeille à l'extrémité droite */
}

.clear-section-btn:hover {
    color: #ff5252;
    filter: drop-shadow(0 0 5px #ff5252);
    transform: scale(1.1);
}

.clear-section-btn svg {
    width: 18px;
    height: 18px;
}

/* Cacher la poubelle en mode "Lecture/Consultation" */
.builder-container.read-only-mode .clear-section-btn {
    display: none !important;
}

/* ========================================================= */
/* --- BOUTON DE PARTAGE HYBRIDE (ICÔNE + TEXTE)         --- */
/* ========================================================= */

.share-btn-hybrid {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a8c0d0;
    padding: 6px 12px;
    border-radius: 4px;
    font-family: 'h73bold', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin: 0;
}

.share-btn-hybrid svg {
    stroke: #a8c0d0;
    width: 14px;
    height: 14px;
    transition: stroke 0.2s ease;
}

/* Effet au survol */
.share-btn-hybrid:hover {
    background: rgba(104, 253, 214, 0.1);
    border-color: rgba(104, 253, 214, 0.3);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.share-btn-hybrid:hover svg {
    stroke: #fff;
}

/* État actif (Quand l'utilisateur a cliqué et que le lien est copié) */
.share-btn-hybrid.copied {
    background: rgba(104, 253, 214, 0.15) !important;
    border-color: #68fdd6 !important;
    color: #68fdd6 !important;
    box-shadow: 0 0 10px rgba(104, 253, 214, 0.2), inset 0 0 5px rgba(104, 253, 214, 0.1) !important;
    transform: translateY(1px); /* Donne l'impression que le bouton est "enfoncé" */
}

.share-btn-hybrid.copied svg {
    stroke: #68fdd6 !important;
}

/* --- ANIMATIONS DRAG & DROP CONSOMMABLES --- */

/* Apparence de la case d'origine pendant qu'elle est soulevée */
.consumables-bar .builder-slot.is-dragging {
    opacity: 0.4;
    transform: scale(0.95);
    transition: all 0.2s ease;
}

/* Surbrillance de la case cible lorsqu'on passe dessus */
.consumables-bar .builder-slot.drag-over .vignette-placeholder {
    border-color: #68fdd6;
    box-shadow: 0 0 15px rgba(104, 253, 214, 0.4);
    background: rgba(104, 253, 214, 0.1);
}

/* Repousse la flèche (et la corbeille si elle est visible) tout à droite */
.build-section h2 .section-summary-icons {
    margin-right: auto !important;
}

/* Fix du chevron et neutralisation de l'ancien conteneur de partage */
.build-header-title::after {
    margin-left: 15px !important;
}

#share-link-container {
    width: auto !important;
    max-width: none !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Switch de visibilité (Privé/Public) parfaitement aligné */
#privacy-section.oh-custom-toggle-container {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 34px !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
}

label.oh-custom-switch {
    position: relative !important;
    display: inline-block !important;
    width: 36px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
}

.oh-custom-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
    margin: 0 !important;
}

.oh-custom-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #393939 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: 0.3s !important;
    border-radius: 20px !important;
    box-sizing: border-box !important;
}

.oh-custom-slider::before {
    position: absolute !important;
    content: "" !important;
    height: 14px !important;
    width: 14px !important;
    left: 2px !important;
    bottom: 2px !important;
    background-color: white !important;
    transition: 0.3s !important;
    border-radius: 50% !important;
}

.oh-custom-switch input:checked + .oh-custom-slider {
    background-color: rgba(104, 253, 214, 0.2) !important;
    border-color: #68fdd6 !important;
}

.oh-custom-switch input:checked + .oh-custom-slider::before {
    transform: translateX(16px) !important;
    background-color: #68fdd6 !important;
    box-shadow: 0 0 10px #68fdd6 !important;
}

#privacy-status-text,
.oh-custom-label {
    display: inline-flex !important;
    align-items: center !important;
    height: 20px !important;
    line-height: 1 !important;
    font-size: 0.75rem !important;
    color: #a8c0d0 !important;
    font-family: 'h73light', sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: translateY(-1px) !important; /* Compense la ligne de base de la police h73light */
}

/* =========================================
   NETTOYAGE INLINE BUILDER.PHP
   ========================================= */
.build-section-sticky {
    position: sticky;
    top: 80px;
    z-index: 100;
    align-self: flex-start;
    background: #0a0f14;
    padding-bottom: 15px;
}
.build-header-title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
    gap: 20px;
}
.build-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    flex-grow: 1;
}
.build-header-left h2.build-title-text {
    white-space: nowrap;
    margin: 0;
}
.build-header-actions-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    font-family: 'h73light', sans-serif;
    cursor: default;
    flex-wrap: nowrap;
}
.build-progress-wrapper {
    width: 220px;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.build-progress-labels {
    margin-bottom: 4px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.build-progress-title {
    font-size: 0.65rem;
    color: #a8c0d0;
    text-transform: uppercase;
    font-family: 'h73bold', sans-serif;
    white-space: nowrap;
    margin: 0;
}
.build-progress-value {
    font-size: 0.65rem;
    color: #68fdd6;
    font-family: 'h73bold', sans-serif;
    white-space: nowrap;
    margin: 0;
}
.build-progress-bar-bg {
    height: 8px;
}
.btn-save-build {
    margin: 0;
    height: 34px;
    padding: 0 15px;
    font-size: 0.8rem;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    flex-shrink: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.build-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    flex-shrink: 0;
    flex-wrap: nowrap;
}
.share-link-wrapper {
    flex-direction: row;
    align-items: center;
    margin: 0;
}
.sr-only-input {
    position: absolute;
    left: -9999px;
    opacity: 0;
}
.clear-section-btn-wrapper {
    margin: 0;
    display: flex;
    align-items: center;
}
.clear-section-btn-wrapper svg {
    width: 18px;
    height: 18px;
}
.build-info-group-top {
    margin-bottom: 0;
    border-top: 1px dashed rgba(104, 253, 214, 0.2);
    padding-top: 15px;
    margin-top: 15px;
}

/* =========================================
   SÉPARATEURS & SOUS-SLOTS (Anomalies/Armes)
   ========================================= */
.builder-separator {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 15px 0;
}
.anomaly-sub-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 8px;
}
.anomaly-sub-header h4 { margin: 0; }
.anomaly-eyes-container {
    display: flex;
    align-items: center;
    gap: 8px;
}
.anomaly-eye-btn {
    width: 25px;
    height: 25px;
    cursor: pointer;
    opacity: 0.4;
}
.anomaly-eye-separator {
    width: 2px;
    height: 20px;
    background-color: #555;
    margin: 0 2px;
}
.anomaly-eye-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    opacity: 0.4;
}
.anomaly-eye-badge {
    font-size: 9px;
    font-weight: bold;
    margin-top: -2px;
}
.anomaly-eye-badge.deviant { color: #ff6b6b; }
.anomaly-eye-badge.scp { color: #4db8ff; }

/* Styles Spécifiques Traits (Builder) */
.trait-deviant {
    border-color: rgba(255, 107, 107, 0.5) !important;
    background: rgba(255, 107, 107, 0.05) !important;
}
.trait-deviant .placeholder-text, .trait-deviant .selected-item-name {
    color: #ff6b6b !important;
}
.trait-prismatic {
    border-color: rgba(209, 163, 255, 0.5) !important;
    background: rgba(209, 163, 255, 0.05) !important;
    pointer-events: none;
}
.trait-prismatic .placeholder-text, .trait-prismatic .selected-item-name {
    color: #d1a3ff !important;
}
.trait-chaos {
    border-color: rgba(255, 153, 0, 0.5) !important;
    background: rgba(255, 153, 0, 0.05) !important;
    pointer-events: none;
}
.trait-chaos .placeholder-text, .trait-chaos .selected-item-name {
    color: #ff9900 !important;
}
.trait-scp {
    border-color: rgba(77, 184, 255, 0.5) !important;
    background: rgba(77, 184, 255, 0.05) !important;
}
.trait-scp .placeholder-text, .trait-scp .selected-item-name {
    color: #4db8ff !important;
}

/* Section Animaux (Builder) */
.animal-rank-wrapper {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(0,0,0,0.3);
    padding: 10px 12px;
    border-radius: 6px;
}
.animal-control-label {
    font-size: 13px;
    font-weight: bold;
    color: #a8c0d0;
}
.animal-tower-wrapper {
    margin-bottom: 15px;
    background: rgba(0,0,0,0.3);
    padding: 10px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.animal-tower-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.animal-tower-switch {
    margin: 0;
    transform: scale(0.85);
    transform-origin: right center;
}
.animal-tower-hint {
    font-size: 12px;
    color: #ddd;
    cursor: pointer;
}
.trait-solar-slot {
    border-color: rgba(230, 126, 34, 0.5) !important;
    border-top: 2px solid #e67e22 !important;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.15) 0%, rgba(10, 15, 20, 0.9) 100%) !important;
}
.trait-solar-slot .selected-item-name {
    color: #e67e22 !important;
    text-shadow: 0 0 8px rgba(230, 126, 34, 0.4) !important;
}

/* ==========================================================================
   OHDB - NETTOYAGE DES STYLES EN LIGNE (ANIMAUX & BONUS ACTIFS)
   ========================================================================== */

/* Conteneurs de traits (Anomalies et Animaux) */
.anomaly-traits-container,
.animal-traits-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Espacement du conteneur des animaux */
#animals-container {
    margin-top: 30px;
}

/* Titre des slots d'animaux */
.animal-slot-title {
    margin-bottom: 10px;
}

/* --- Section des Bonus Actifs (Mots-clés et Sets) --- */
#active-bonuses-container {
    margin-top: 30px;
}

.active-bonuses-title {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

#active-keyword-effects {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#active-set-bonuses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

/* =========================================
   MODALE D'ALERTE / MODIFICATIONS NON SAUVEGARDÉES
   ========================================= */
.oh-delete-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(5, 8, 12, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10500 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.oh-delete-modal.is-active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.oh-delete-modal .oh-modal-content {
    background: linear-gradient(135deg, rgba(15, 20, 25, 0.98) 0%, rgba(8, 10, 14, 0.99) 100%);
    border: 1px solid rgba(255, 82, 82, 0.4);
    border-top: 3px solid #ff5252;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(255, 82, 82, 0.1);
}

.oh-delete-modal .oh-btn {
    min-width: 130px;
    font-family: 'h73bold', sans-serif;
    padding: 12px 20px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.oh-delete-modal .oh-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #a8c0d0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.oh-delete-modal .oh-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;
}

.oh-delete-modal .oh-btn-danger {
    background: rgba(255, 82, 82, 0.15);
    color: #ff5252;
    border: 1px solid rgba(255, 82, 82, 0.5);
}

.oh-delete-modal .oh-btn-danger:hover {
    background: #ff5252;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 82, 82, 0.5);
}