/* Interactive Signal Lab — Home page about section */
.signal-lab-section {
    position: relative;
}

.signal-lab-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.5rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.signal-lab-top-row {
    display: grid;
    grid-template-columns: 1fr minmax(200px, 260px);
    gap: 1rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
}

.signal-lab-chart-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
}

.signal-lab-chart-wrap canvas {
    display: block;
    width: 100%;
    height: 220px;
}

.signal-lab-chart-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 2;
}

.signal-lab-live-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
    background: rgba(2, 6, 23, 0.75);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.signal-lab-live-dot::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: signalLabPulse 1.4s ease-in-out infinite;
}

.signal-lab-tf {
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    font-size: 9px;
    letter-spacing: 0.06em;
}

@keyframes signalLabPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

.signal-lab-regime-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 1.25rem 0 1.5rem;
}

.signal-lab-pill {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.signal-lab-pill:hover {
    border-color: rgba(99, 102, 241, 0.5);
    color: #e2e8f0;
}

.signal-lab-pill.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(168, 85, 247, 0.25));
    border-color: rgba(99, 102, 241, 0.6);
    color: #fff;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.signal-lab-consensus {
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.signal-lab-consensus.signal-buy {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.12);
}

.signal-lab-consensus.signal-sell {
    border-color: rgba(244, 63, 94, 0.45);
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.12);
}

.signal-lab-consensus.signal-hold {
    border-color: rgba(251, 191, 36, 0.35);
}

.signal-lab-consensus-label {
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}

.signal-lab-consensus-action {
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    transition: color 0.3s;
}

.signal-lab-consensus-action.buy { color: #10b981; }
.signal-lab-consensus-action.sell { color: #f43f5e; }
.signal-lab-consensus-action.hold { color: #fbbf24; }

.signal-lab-score-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.signal-lab-score-row label {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #64748b;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.signal-lab-score-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.signal-lab-score-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.35s ease;
}

.signal-lab-score-fill.buy { background: linear-gradient(90deg, #059669, #10b981); }
.signal-lab-score-fill.sell { background: linear-gradient(90deg, #e11d48, #f43f5e); }

.signal-lab-slider-group {
    margin-bottom: 1rem;
}

.signal-lab-slider-group label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.signal-lab-slider-group label span {
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: #6366f1;
}

.signal-lab-slider-group input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
    outline: none;
}

.signal-lab-slider-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    cursor: pointer;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

.signal-lab-votes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-lab-vote-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-family: ui-monospace, monospace;
    color: #94a3b8;
}

.signal-lab-vote-row .vote-signal {
    font-weight: 700;
    min-width: 36px;
}

.signal-lab-vote-row .vote-signal.buy { color: #10b981; }
.signal-lab-vote-row .vote-signal.sell { color: #f43f5e; }
.signal-lab-vote-row .vote-signal.hold { color: #64748b; }

.signal-lab-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 1.5rem;
}

.signal-lab-stat {
    text-align: center;
    padding: 14px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-lab-stat-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.signal-lab-stat-label {
    font-size: 10px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.signal-lab-cta {
    margin-top: 1.5rem;
}

@media (max-width: 991px) {
    .signal-lab-stats {
        grid-template-columns: 1fr;
    }

    .signal-lab-top-row {
        grid-template-columns: 1fr;
    }

    .signal-lab-consensus-action {
        font-size: 2rem;
    }

    .signal-lab-score-bars {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
