:root {
    --fin-bg: #131722;
    --fin-panel: #1e222d;
    --fin-border: #2a2e39;
    --fin-text-muted: #787b86;
    --fin-text: #d1d4dc;
    --fin-text-light: #ffffff;
    --fin-green: #089981;
    --fin-red: #f23645;
    --fin-blue: #2962ff;
}

.etea-bubble-map-wrapper {
    width: 100%;
    font-family: 'Share Tech Mono', -apple-system, sans-serif;
    color: var(--fin-text);
    margin-bottom: 40px;
}

/* Couleurs sémantiques */
.etea-text-bullish { color: var(--fin-green) !important; font-weight: bold; }
.etea-text-bearish { color: var(--fin-red) !important; font-weight: bold; }

/* --- HEADER --- */
.etea-group-header {
    border-bottom: 1px solid var(--fin-border);
    padding-bottom: 15px;
    margin-bottom: 25px;
}
.etea-label-mini {
    color: var(--fin-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 10px;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
.etea-main-title {
    margin: 0;
    font-size: 2.2em;
    color: var(--fin-green);
    line-height: 1.1;
    text-transform: uppercase;
}
.etea-subtitle-text {
    color: var(--fin-text-muted);
    font-size: 0.9em;
    margin-top: 10px;
}

/* --- CARD --- */
.etea-terminal-card {
    background: var(--fin-panel);
    border: 1px solid var(--fin-border);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.etea-terminal-card.error {
    background: rgba(242, 54, 69, 0.1);
    color: var(--fin-red);
    border-color: var(--fin-red);
}

/* --- BUBBLE GRID --- */
.etea-bubble-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
}

.etea-bubble-cell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    padding: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.etea-bubble-cell:hover {
    transform: scale(1.1); 
    z-index: 10;
}

.etea-bubble-cell .ticker {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    color: var(--fin-text-light);
    margin-top: 4px;
}
.etea-bubble-cell .gap-percent {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 700;
    margin-top: 2px;
}

/* Logos (Pastilles blanches) */
.etea-bubble-logo {
    border-radius: 50%;
    background: #ffffff !important;
    padding: 3px;
    object-fit: contain;
    border: 1px solid var(--fin-border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    flex-shrink: 0;
}
.etea-bubble-logo-placeholder {
    border-radius: 50%;
    background: var(--fin-bg);
    color: var(--fin-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 1px solid var(--fin-border);
    flex-shrink: 0;
    text-transform: uppercase;
}

/* Couleurs des Bulles selon Direction */
.etea-bubble-cell.etea-direction-bullish {
    background: linear-gradient(145deg, rgba(8, 153, 129, 0.4), rgba(8, 153, 129, 0.1));
    border-color: rgba(8, 153, 129, 0.5);
}
.etea-bubble-cell.etea-direction-bullish:hover {
    box-shadow: 0 0 15px rgba(8, 153, 129, 0.6);
    border-color: var(--fin-green);
}
.etea-bubble-cell.etea-direction-bullish .gap-percent { color: var(--fin-green); }

.etea-bubble-cell.etea-direction-bearish {
    background: linear-gradient(145deg, rgba(242, 54, 69, 0.4), rgba(242, 54, 69, 0.1));
    border-color: rgba(242, 54, 69, 0.5);
}
.etea-bubble-cell.etea-direction-bearish:hover {
    box-shadow: 0 0 15px rgba(242, 54, 69, 0.6);
    border-color: var(--fin-red);
}
.etea-bubble-cell.etea-direction-bearish .gap-percent { color: var(--fin-red); }

/* Neutre */
.etea-bubble-cell.etea-direction-neutral,
.etea-bubble-cell.etea-direction-mixed_neutral {
    background: linear-gradient(145deg, rgba(120, 123, 134, 0.4), rgba(120, 123, 134, 0.1));
    border-color: rgba(120, 123, 134, 0.5);
}
.etea-bubble-cell.etea-direction-neutral:hover,
.etea-bubble-cell.etea-direction-mixed_neutral:hover {
    box-shadow: 0 0 15px rgba(120, 123, 134, 0.6);
    border-color: var(--fin-text-muted);
}
.etea-bubble-cell.etea-direction-neutral .gap-percent { color: var(--fin-text-muted); }

/* --- TOOLTIP DESIGN --- */
.etea-custom-tooltip {
    position: absolute;
    background: var(--fin-panel);
    border: 1px solid var(--fin-blue);
    padding: 12px 15px;
    border-radius: 6px;
    color: var(--fin-text-light);
    font-size: 12px;
    font-family: -apple-system, sans-serif;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    pointer-events: none;
    z-index: 100000;
    min-width: 220px;
}
.etea-tooltip-line {
    display: block;
    margin-bottom: 6px;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
    padding-bottom: 4px;
}
.etea-tooltip-line:last-child {
    border-bottom: none; margin-bottom: 0; padding-bottom: 0;
}
.etea-tooltip-line strong {
    color: var(--fin-text-muted);
    font-size: 10px;
    text-transform: uppercase;
    margin-right: 5px;
}