/* ==========================
   widget.css
   ========================== */

.widget-row-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.widget-row-wrapper > .feature-content-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1024px) {
    .widget-row-wrapper > .feature-content-wrapper {
        flex: 1 1 calc(50% - 20px); 
    }
}

@media (max-width: 768px) {
    .widget-row-wrapper {
        gap: 15px;
    }
    .widget-row-wrapper > .feature-content-wrapper {
        flex: 1 1 100%;
        min-width: 0;
    }
}   

.badge-legend {
    background: rgba(52, 152, 219, 0.1); 
    color: var(--color-text);             
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
    padding: 2px 6px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 2px;
}

.badge-m5 { 
    background: rgba(255, 202, 40, 0.1);
    color: var(--color-scalping);             
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: var(--border-radius);
    padding: 2px 6px;
    font-size: 0.75rem;
    display: inline-block;
}

.badge-h1 {
    background: rgba(255, 202, 40, 0.1);
    color: var(--color-swing);            
    border: 1px solid rgba(255, 202, 40, 0.2);
    border-radius: var(--border-radius);
    padding: 2px 6px;
    font-size: 0.75rem;
    display: inline-block;
}   

.w-ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--color-container);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.w-ticker-move {
    display: flex;
    width: max-content;
}

.w-ticker-item {
    display: flex;
    align-items: center;
    padding: 0 25px;
    text-decoration: none;
    color: var(--color-text);
    border-right: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
}

.w-ticker-item:hover {
    background: rgba(255,255,255,0.03);
}

.w-ticker-info { display: flex; flex-direction: column; margin-right: 15px; }
.w-ticker-info .name { font-size: 0.75rem; color: #FFF; text-transform: capitalize; }
.w-ticker-info .symbol { font-size: 0.65rem; color: var(--color-neutral); }

.w-ticker-values { display: flex; flex-direction: column; text-align: right; }
.w-ticker-values .price { font-family: 'Courier New', monospace; font-size: 0.85rem; font-weight: 600; }
.w-ticker-values .pct { font-size: 0.7rem; font-weight: bold; }

.w-ticker-wrap.animate .w-ticker-move {
    animation: wTickerLoop 100s linear infinite;
}

.w-ticker-wrap.animate:hover .w-ticker-move {
    animation-play-state: paused;
}

@keyframes wTickerLoop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.w-ranking-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.w-ranking-card {
    background: var(--color-container); /* */
    border-radius: var(--container-radius); /* */
    border: 1px solid var(--border-color); /* */
    overflow: hidden;
}

.w-ranking-header {
    padding: 12px 15px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}

.w-ranking-header.up { color: var(--color-up); }   /* */
.w-ranking-header.down { color: var(--color-down); } /* */

.w-ranking-list .w-ticker-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    padding: 12px 15px;
    justify-content: space-between;
    width: 100%;
}

.w-ranking-list .w-ticker-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .w-ranking-container {
        grid-template-columns: 1fr; 
        gap: 15px;
    }
}

.w-search-container {
    background: var(--color-container); /* */
    border-radius: var(--container-radius); /* */
    border: 1px solid var(--border-color); /* */
    padding: 15px;
    margin-bottom: 20px;
}

.w-search-container .filters_compact {
    margin-bottom: 10px;
    width: 100%;
}

.w-search-input-wrapper {
    position: relative; 
    width: 100%;
    margin-bottom: 12px;
    display: block;
}

.w-search-input-wrapper input {
    width: 100% !important;
    box-sizing: border-box; 
    padding: 10px 40px 10px 12px !important; 
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--color-text);
    outline: none;
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text);
    opacity: 0.4;
    pointer-events: none;
    transition: opacity 0.2s;
}

.w-search-container.compact .w-search-input-wrapper .search-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 0.8rem; 
}

.w-search-input-wrapper .search-icon {
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important; 
    color: var(--color-text);
    opacity: 0.5;
    pointer-events: none;
    z-index: 10; 
    margin: 0 !important;
}

.w-search-input-wrapper input:focus + .search-icon {
    color: var(--color-cta);
    opacity: 1;
}

.w-search-container.compact {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    position: relative; 
    width: 250px; 
}

.w-search-container.compact .w-search-input-wrapper input {
    height: 36px !important;    
    line-height: 36px !important;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0 40px 0 12px !important;
}

.w-search-container.compact .w-search-input-wrapper {
    margin-bottom: 0 !important; 
}

.w-search-container.compact .search-icon {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.floating-results {
    position: absolute;
    top: 35px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #1a1d23; 
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    max-height: 250px;
    overflow-y: auto;
    display: none; 
}

.floating-results .w-ticker-item {
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.w-search-results {
    display: none;
    flex-direction: column;
    gap: 5px;
    overflow-y: auto;
    overflow-x: hidden; 
    padding: 5px 10px 5px 5px;     
    max-height: 250px;
    background: #1a1d23;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.w-search-results .w-ticker-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;    
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.w-search-results .w-ticker-item:hover {
    background: rgba(0, 255, 0, 0.05);
    border-color: var(--color-cta);
    transform: translateX(5px);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.w-search-master-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap; 
    gap: 10px;
    margin-bottom: 20px;
}

.w-search-container.compact {
    width: 250px;
    position: relative;
    margin-bottom: 0;
}

.w-search-container.compact .floating-results {
    top: 40px;
}

/* ===== FAVORITES WIDGET ===== */
.fav-widget {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    height: 36px; 
    box-sizing: border-box; 
    overflow-x: auto;          
    overflow-y: hidden;        
    white-space: nowrap;       
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}

.fav-widget::-webkit-scrollbar {
    display: none;
}

#favList {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

#favList .fav-star { color: #f1c40f; font-size: 0.9rem; } 
#favList .fav-sep { color: rgba(255,255,255,0.1); }
#favList a {
    color: var(--color-link);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}
#favList a:hover { color: var(--color-link-hover); text-decoration: underline; }

.fav-toggle {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.fav-toggle:hover {
    transform: scale(1.3);
}
.fav-toggle.is-favorite {
    text-shadow: 0 0 10px rgba(241, 196, 15, 0.4);
}

@media (max-width: 768px) {
    .w-search-master-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .w-search-container.compact {
        width: 100%; 
    }
    .fav-widget {
        width: 100%;
        padding: 5px 0;
        background: transparent;
    }

    .w-search-master-container {
        position: relative;
    }
    
    .w-search-master-container::after {
        content: '';
        position: absolute;
        right: 0;
        bottom: 0;
        width: 30px;
        height: 36px;
        background: linear-gradient(to right, transparent, var(--color-container));
        pointer-events: none;
    }
}

/* --- FEATURES CARROUSEL --- */
.w-features-carousel {
    width: 100%;
    background: rgba(20, 22, 26, 0.6);
    border: 1px solid rgba(78, 170, 241, 0.2);
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
}

.feature-viewport {
    width: 100%;
    overflow: hidden;
}

#featureWrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-behavior: smooth;
    transition: transform 0.5s ease-in-out;
}

.feature-item {
    flex: 0 0 100%;   
    width: 100%;      
    box-sizing: border-box;
    text-align: left;
    padding: 20px;
    background: rgba(30, 32, 38, 0.7);
    border: 1px solid rgba(78, 170, 241, 0.15);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(78, 170, 241, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.feature-item canvas {
    display: block;
    width: 100%;
    height: 44px;
    max-width: 100%;
    box-sizing: border-box;
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px rgba(78, 170, 241, 0.25);
}

.feature-item img {
    height: 55px;
    margin-bottom: 15px;
    width: auto;
    max-width: 100%;
    align-self: flex-start;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--color-info);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--color-text);
    margin-bottom: 15px;
}

.feature-more {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(78, 170, 241, 0.15);
    color: var(--color-info);
    font-weight: 600;
    transition: background 0.2s ease;
    text-decoration: none;   
} 

.feature-more:hover {
    background: rgba(78, 170, 241, 0.3);
}

.w-features-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 5px;
}

.feature-nav-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 5px;
}

#feature_popupLogo {
    display: block;
    margin: 0 auto 10px auto; 
    height: 55px;             
    width: auto;              
}

#feature_popupBody {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text);
}

#feature_popupBody h3 {
    font-size: 1rem;
    color: var(--color-cta);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

#feature_popupBody ul {
    padding-left: 18px;
    margin-bottom: 10px;
    list-style-type: disc; 
}

.feature-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

/* On retire le style du conteneur parent en mode single */
.w-features-carousel.single {
    background: none;        /* Supprime le fond gris/noir */
    border: none;            /* Supprime la bordure bleue */
    padding: 0;              /* CRITIQUE : Supprime le padding de 15px qui repousse l'item vers le bas */
    box-shadow: none;        /* Supprime l'ombre si présente */
    border-radius: 0;
}

/* On s'assure que le viewport et le wrapper ne forcent aucun espacement */
.w-features-carousel.single .feature-viewport,
.w-features-carousel.single #featureWrapper {
    margin: 0;
    padding: 0;
}

.w-features-carousel.single .feature-item {
    margin-top: 0 !important;
    padding-top: 20px; /* Gardez le padding interne pour le design, mais pas de marge externe */
}

/* --- HELP Widget --- */

.help-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    cursor: pointer;
    display: inline-block;
    color: var(--color-btn-main);
    margin-left: 5px;
}
.help-icon:hover {
    color: var(--color-btn-hover);
}
.help-icon::before {
    content: "\f059"; /* fa-question-circle */
    font-family: "Font Awesome 5 Free";
}

.help-icon-cell {
    position: absolute;
    right: 5px;          
    top: 50%;            
    transform: translateY(-50%);
    font-size: 0.9rem;   
    margin-left: 0;     
    cursor: pointer;
    color: var(--color-btn-main);
}

.feat-label-cell {
    position: relative;
    padding-right: 20px; 
}

#help_popupFull {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--color-text);
}

#help_popupFull h3 {
    font-size: 1rem;
    color: var(--color-cta);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    text-align: left;
}

#help_popupFull ul {
    padding-left: 18px;
    margin-bottom: 10px;
    list-style-type: disc; 
}

.link-icon {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;       
    cursor: pointer;
    display: inline-block;
    color: var(--color-btn-main); 
    margin-left: 5px;             
}

.link-icon:hover {
    color: var(--color-btn-hover); 
}

.link-icon::before {
    content: "\f08e";   /* fa-solid fa-up-right-from-square */          
    font-family: "Font Awesome 6 Free"; 
}

/* --- ACI Widget --- */
.w-row { flex-direction: row; align-items: center; max-width: fit-content; gap: 25px; }
.w-column { 
    flex-direction: column; 
    width: 100%;     
    max-width: none; 
    padding: 15px;     
    gap: 15px; 
    box-sizing: border-box; 
}

.w-aci-header { text-align: center; margin-bottom: 15px; }
.aci-tag { background: #3182ce; color: white; padding: 2px 5px; border-radius: 4px; font-size: 0.7rem; vertical-align: middle; }

.circle-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 2.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; transition: stroke-dasharray 0.3s ease; }
.percentage { fill: white; font-family: sans-serif; font-size: 0.4em; text-anchor: middle; font-weight: bold; }

.w-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.w-stat-card label { font-size: 0.7rem; text-transform: uppercase; color: #718096; margin-bottom: 4px; }
.w-stat-card span { font-size: 0.95rem; font-weight: 600; }

.w-spark-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.w-spark-info { display: flex; justify-content: space-between; align-items: baseline; }
.w-spark-label { font-size: 12px; font-weight: bold; color: #a0aec0; }
.w-spark-val { font-size: 12px; font-family: monospace; }

.neon-border {
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
}

.w-aci-interpretation {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #a0aec0;
    line-height: 1.4;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border-radius: 6px;
}

.aci-svg-gauge { display: block; max-width: 110px; }

.w-aci-header h3 {
    color: var(--color-info); 
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* --- ALL --- */
.w-all-widget {
    padding: 15px;
    background: rgba(13, 17, 23, 0.9);
    border: 1px solid rgba(0, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.w-all-widget.w-column {
    width: 100%;            
    padding: 15px;         
    background: rgba(20, 22, 26, 0.6); 
    border: 1px solid rgba(78, 170, 241, 0.2);
    border-radius: 8px;     
    flex-direction: column;
    gap: 15px;
    box-sizing: border-box;
}

.w-all-gauge-container {
    display: flex;
    justify-content: center;
    margin: 5px 0;
}

.w-all-spark-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 8px;
}

.w-all-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.all-spark-svg { width: 100%; height: 25px; }

/* --- RISK SCORES --- */
.risk-badge-label {
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    min-width: 90px;
}

.risk-extreme {
    animation: risk-glow 1.5s ease-in-out infinite;
}

@keyframes risk-glow {
    0% { box-shadow: 0 0 2px #ef4444; transform: scale(1); }
    50% { box-shadow: 0 0 12px #ef4444; transform: scale(1.03); }
    100% { box-shadow: 0 0 2px #ef4444; transform: scale(1); }
}

.aci-svg-gauge {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- BIAS DAY --- */
.bias-block-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

/* --- RISK --- */
.risk-block-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 120px;
    margin: 0 auto;
}

.risk-launch-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(78, 170, 241, 0.2);
    border: 1px solid #4eaaf1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4eaaf1;
    font-size: 0.9rem;
    z-index: 10;
    transition: all 0.3s ease;
    text-decoration: none;
}

.risk-launch-overlay:hover {
    background: #4eaaf1;
    color: #fff;
    box-shadow: 0 0 15px rgba(78, 170, 241, 0.5);
    transform: translate(-50%, -50%) scale(1.1);
}

.aci-svg-gauge .percentage {
    font-weight: 700;
    fill: #fff;
    text-anchor: middle;
}

/* --- NOTES --- */
.crypto-notes {
    width: 100%; 
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.crypto-notes-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.add-note-btn {
    background: var(--color-btn-main); 
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.add-note-btn:hover {
    background: var(--color-btn-hover);
    transform: scale(1.1);
}

.notes-list {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.notes-list::-webkit-scrollbar { width: 4px; }
.notes-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }

.note-item {
    position: relative;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px;
    transition: border-color 0.3s ease;
}

.note-item:focus-within {
    border-color: rgba(78, 170, 241, 0.5);
}

.note-textarea {
    width: 100%;
    min-height: 80px;
    background: transparent;
    border: none;
    color: #e2e8f0;
    padding: 10px;
    font-size: 1rem;
    line-height: 1.5;
    resize: vertical;
}

.note-textarea:focus {
    outline: none;
}

.delete-note-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: var(--color-danger);
    border: none;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.note-item:hover .delete-note-btn {
    opacity: 1;
}

.save-status {
    font-size: 10px;
    color: var(--color-cta);
    margin-right: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}






.scanner-tag {
    background: #2d3748 !important;
    color: #e2e8f0 !important;
}

.score-digital {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.score-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: #333;
    border-radius: 2px;
    margin: 15px 0 5px 0;
}

.score-cursor {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
    transition: left 0.5s ease-out;
}

.score-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: bold;
    color: #718096;
    margin-bottom: 15px;
}

.score-value { font-size: 0.8rem; }

.w10-indicator-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    gap: 12px 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.ind-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ind-label {
    font-size: 0.55rem;
    color: #718096;
    margin-top: 4px;
    font-weight: bold;
    text-transform: uppercase;
}

.ind-led {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2d3748; 
    transition: all 0.3s ease;
}

.ind-led.is-buy {
    background: #48bb78;
    box-shadow: 0 0 8px #48bb78;
}

.ind-led.is-sell {
    background: #f56565;
    box-shadow: 0 0 8px #f56565;
}

.ind-led.is-neutral {
    background: #4a5568;
}

.scanner-row .scanner-main-content {
    display: flex;
    align-items: center;
    gap: 20px;
}
.scanner-row .score-track { width: 120px; margin: 0; }
.scanner-row .cs10-indicator-grid {
    grid-template-columns: repeat(10, 1fr); 
    border-top: none;
    padding-top: 0;
}





.trigger-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 10px;
}

.trigger-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trigger-label {
    font-size: 0.6rem;
    font-weight: 800;
    color: #4a5568;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.trigger-lamp {
    width: 100%;
    height: 12px;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.lamp-inner {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2) 0%, transparent 100%);
}

.action-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    border: 1px solid;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 12px;
    animation: pulse-trigger 2s infinite;
}

@keyframes pulse-trigger {
	0% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.2); }
	100% { opacity: 1; transform: scale(1); }
}

.trigger-pill {
    background: #6366f1;
    color: #fff;
    padding: 0px 4px;
    border-radius: 3px;
    font-size: 0.6rem;
    margin-left: 4px;
}

.heatmap-grid {
    display: grid;
    /* Ajuste le 120px selon la densité voulue */
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 15px 0;
}

.heatmap-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1 / 1; /* Rendu carré pour la grille */
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, filter 0.2s ease;
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.heatmap-tile:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    z-index: 10;
}

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

.tile-ticker {
    display: block;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

.tile-pct {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.tile-price {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.aci-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.segmented-control {
    position: relative;
    display: flex;
    background: #1e2227;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #2d3239;
    width: 450px;
}

.segmented-control input { display: none; }

.segmented-control label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    z-index: 2;
    transition: color 0.3s ease;
}

.selection-slider {
    position: absolute;
    top: 4px; left: 4px;
    height: calc(100% - 8px);
    width: calc(33.33% - 4px);
    background: #2d3239;
    border-radius: 9px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    z-index: 1;
}

#mode-perf:checked ~ .selection-slider { transform: translateX(0); border-bottom: 2px solid #00b773; }
#mode-corr:checked ~ .selection-slider { transform: translateX(100%); border-bottom: 2px solid #ffce00; }
#mode-sector:checked ~ .selection-slider { transform: translateX(200%); border-bottom: 2px solid #00d4ff; }

#mode-perf:checked ~ label[for="mode-perf"],
#mode-corr:checked ~ label[for="mode-corr"],
#mode-sector:checked ~ label[for="mode-sector"] { color: #fff; }

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.heatmap-tile {
    aspect-ratio: 1/1;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    color: #fff !important;
}

.tile-pct, .tile-price, .tile-corr-info, .tile-sector-label { display: none; }

.view-perf .tile-pct { display: block; font-weight: bold; font-size: 1.1rem; }
.view-perf .tile-price { display: block; font-size: 0.8rem; opacity: 0.8; }

.view-corr .heatmap-tile { 
    filter: saturate(0.2) opacity(0.4); 
}

.view-corr .tile-corr-info { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 5px; 
}

.view-corr .tile-corr-label { 
    font-size: 0.65rem; 
    background: rgba(0,0,0,0.3); 
    padding: 2px 6px; 
    border-radius: 4px; 
    text-transform: uppercase;
}

.view-corr .is-decoupled {
    outline: 2px solid var(--color-decoupled);
    outline-offset: -2px;
    filter: saturate(1) opacity(1);
    z-index: 2;
}

.view-corr .is-inverse {
    outline: 2px solid var(--color-inverse);
    outline-offset: -2px;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
    filter: saturate(1) opacity(1);
    transform: scale(1.05);
    z-index: 3;
}

.view-sector .tile-sector-label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 800; 
    text-transform: uppercase;
    background: rgba(0,0,0,0.2);
    padding: 4px;
    border-radius: 4px;
}

.seo-accordion {
    margin: 0 50px; 
}

.seo-category {
    margin-bottom: 30px;
}

.seo-category-title {
    margin-bottom: 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--color-cta);
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
}

.seo-accordion-item {
    border: 1px solid #333;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.seo-accordion-title {
    width: 100%;
    background: #111;
    padding: 14px 16px;
    text-align: left;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.seo-accordion-title:hover {
    background: #1a1a1a;
}

.seo-accordion-item.open .seo-accordion-title {
    background: #222;
}

.seo-accordion-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.seo-accordion-content {
    display: none;
    padding: 18px 20px;
    background: #181818;
    color: var(--color-text);
    line-height: 1.6;
}

.seo-accordion-item.open .seo-accordion-content {
    display: block;
}

.seo-accordion-content {
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .seo-accordion {
        margin: 0; 
    }
}

.news-stack-container {
    display: flex;
    width: 100%;
    pointer-events: auto;
}

.layout-column {
    flex-direction: column;
}

.layout-row {
    flex-direction: row;
    flex-wrap: wrap;
}

.layout-row .log-entry {
    flex: 1;
    min-width: 280px; 
    margin-top: 0 !important;
}

.log-entry.permanent {
    position: relative;
    opacity: 1;
    transform: none;
    display: block;
}

.news-header {
    display: flex;
    justify-content: space-between;
    font-family: monospace;
    margin-bottom:10px;
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.news-ticker { color: #4eaaf1; font-weight: bold; }
.news-time { opacity: 0.5; font-size: 0.7rem; }
.news-category { opacity: 0.5; font-size: 0.7rem; }
.news-content { font-size: 0.75rem; line-height: 1.4; }
.bullet { color: #4eaaf1; font-weight: bold; }