/* ============================================
   CLAWD INTEL CRYPTO INTELLIGENCE OSINT
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=MedievalSharp&family=Metamorphous&family=Share+Tech+Mono&display=swap');

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a14;
    --bg-panel: rgba(26, 26, 20, 0.95);
    --border-color: #3d3d29;
    --accent-gold: #d4af37;
    --accent-silver: #c0c0c0;
    --accent-crimson: #8b0000;
    --accent-mana: #0066cc;
    --accent-forest: #228b22;
    --parchment: #f4e4bc;
    --text-primary: #e0d0b0;
    --text-secondary: #a09070;
    --text-dim: #605040;
    --bull: #4caf50;
    --bear: #f44336;
    --font-display: 'Metamorphous', serif;
    --font-ui: 'MedievalSharp', cursive;
    --font-mono: 'Share Tech Mono', monospace;
    --panel-border: 2px ridge var(--accent-gold);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-ui);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.04) 2px, rgba(0, 0, 0, 0.04) 4px);
}

/* ========== HUD BAR ========== */
.hud-bar {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 25px;
    background: linear-gradient(180deg, #2a2a1a, #1a1a10);
    border-bottom: 3px double var(--accent-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.hud-bar::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.6;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========== DRAGON EYE LOGO (FANTASY) ========== */
.logo-eye {
    position: relative;
    width: 48px;
    height: 32px;
    background: #000;
    border-radius: 50%;
    /* Almond shape via overflow */
    overflow: hidden;
    box-shadow:
        0 0 10px rgba(0, 0, 0, 0.8),
        0 0 5px rgba(255, 69, 0, 0.5);
    /* Fiery glow */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #3d1a1a;
}

/* Sclera & Iris Container */
.eye-iris {
    position: absolute;
    width: 140%;
    height: 140%;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, transparent 20%, #ff8c00 40%, #8b0000 60%, #1a0500 75%),
        /* Depth */
        conic-gradient(from 0deg, #ff4500, #ffd700, #ff4500, #8b0000, #ff4500);
    /* Fibers */
    display: flex;
    align-items: center;
    justify-content: center;
    animation: eyeScan 8s ease-in-out infinite;
}

/* Vertical Reptilian Pupil */
.eye-pupil {
    width: 4px;
    height: 22px;
    background: #000;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(255, 215, 0, 0.8);
    /* Inner glow */
    position: relative;
    z-index: 2;
    animation: pupilBreath 4s ease-in-out infinite;
}

/* Reflection */
.eye-glint {
    position: absolute;
    top: 30%;
    left: 35%;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px #fff;
    opacity: 0.8;
    z-index: 3;
}

/* Eyelids */
.eye-lid-top,
.eye-lid-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 55%;
    background: linear-gradient(180deg, #1a1a1a, #0a0500);
    z-index: 4;
    transition: transform 0.1s;
    border-bottom: 2px solid #3d1a1a;
}

.eye-lid-top {
    top: 0;
    transform: translateY(-80%);
    /* Slightly open/hooded look */
    animation: blinkTop 5s infinite;
}

.eye-lid-bottom {
    bottom: 0;
    transform: translateY(80%);
    border-top: 2px solid #3d1a1a;
    border-bottom: none;
    animation: blinkBottom 5s infinite;
}

/* Animations */
@keyframes blinkTop {

    0%,
    45%,
    55%,
    100% {
        transform: translateY(-80%);
    }

    48%,
    52% {
        transform: translateY(0%);
    }

    /* Quick blink */
}

@keyframes blinkBottom {

    0%,
    45%,
    55%,
    100% {
        transform: translateY(80%);
    }

    48%,
    52% {
        transform: translateY(0%);
    }
}

@keyframes eyeScan {

    0%,
    100% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-3px, 1px);
    }

    50% {
        transform: translate(0, 0);
    }

    75% {
        transform: translate(3px, -1px);
    }
}

@keyframes pupilBreath {

    0%,
    100% {
        height: 22px;
        width: 4px;
    }

    50% {
        height: 20px;
        width: 5px;
    }

    /* Dilate */
}

.logo-eye::before {
    display: none;
}

/* Remove old elements */
.logo-eye::after {
    display: none;
}

.eye-beam {
    display: none;
    /* Removing the old beam for a cleaner look */
}

.logo-text {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(90deg, var(--accent-gold), #fff, var(--accent-silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-sub {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    opacity: 0.7;
}

.market-ticker {
    display: flex;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    flex: 1;
    margin: 0 24px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.ticker-name {
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.ticker-price {
    color: var(--text-primary);
    font-weight: bold;
}

.ticker-change {
    font-size: 10px;
}

.ticker-change.up {
    color: var(--bull);
}

.ticker-change.down {
    color: var(--bear);
}

.hud-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.hud-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-cyan);
}

.trade-val {
    color: var(--accent-gold) !important;
}

.vol-val {
    color: var(--accent-orange) !important;
}

.round-val {
    color: var(--accent-purple) !important;
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.api-val {
    font-size: 9px !important;
}

/* ========== GRID ========== */
.dashboard-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    grid-template-rows: 1fr 1fr 0.6fr;
    grid-template-areas:
        "predictions chart leaderboard"
        "feed consensus intel"
        "feed consensus ta";
    gap: 4px;
    padding: 4px;
    height: calc(100vh - 74px);
}

.panel-predictions {
    grid-area: predictions;
}

.panel-chart {
    grid-area: chart;
}

.panel-leaderboard {
    grid-area: leaderboard;
}

.panel-feed {
    grid-area: feed;
}

.panel-consensus {
    grid-area: consensus;
}

.panel-intel {
    grid-area: intel;
}

.panel-ta {
    grid-area: ta;
}

/* ========== TECHNICAL ANALYSIS ========== */
.ta-container {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-mono);
    justify-content: space-evenly;
}

.ta-container::-webkit-scrollbar {
    width: 3px;
}

.ta-container::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 2px;
}

.ta-row {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 3px;
    border-left: 2px solid var(--border-color);
}

.ta-row-label {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--text-secondary);
    min-width: 36px;
    flex-shrink: 0;
}

.ta-gauge {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.ta-gauge-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.8s ease;
}

.ta-gauge-marker {
    position: absolute;
    top: -2px;
    width: 2px;
    height: 10px;
    background: #fff;
    border-radius: 1px;
    transition: left 0.8s ease;
}

.ta-value {
    font-size: 9px;
    font-weight: bold;
    min-width: 40px;
    text-align: right;
}

.ta-signal {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 1px;
    padding: 1px 5px;
    border-radius: 2px;
    min-width: 44px;
    text-align: center;
}

.ta-signal.bullish {
    color: var(--bull);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
}

.ta-signal.bearish {
    color: var(--bear);
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.2);
}

.ta-signal.neutral {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ta-vol-bars {
    display: flex;
    align-items: flex-end;
    gap: 1px;
    height: 20px;
    flex: 1;
}

.ta-vol-bar {
    flex: 1;
    min-width: 3px;
    border-radius: 1px 1px 0 0;
    transition: height 0.5s ease;
}

.ta-section-label {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--text-dim);
    padding: 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ta-macd-bars {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 16px;
    flex: 1;
}

.ta-macd-bar {
    flex: 1;
    min-width: 3px;
    transition: height 0.5s ease;
}

/* ========== PANELS ========== */
.panel {
    background: var(--bg-panel);
    background-image: radial-gradient(circle at center, rgba(139, 110, 0, 0.05), transparent);
    border: var(--panel-border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.05), transparent);
    pointer-events: none;
}

.panel:hover {
    border-color: #fff;
    box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.1), 0 0 20px rgba(212, 175, 55, 0.2);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(90deg, #2a2a1a, #1a1a10);
    flex-shrink: 0;
}

.panel-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 5px var(--accent-gold));
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-gold);
    flex: 1;
    text-shadow: 1px 1px 2px #000;
}

.panel-status {
    font-family: var(--font-ui);
    font-size: 10px;
    font-weight: bold;
    padding: 2px 8px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.panel-status.online {
    color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.panel-status.warning {
    color: var(--accent-orange);
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    animation: statusBlink 1.5s ease-in-out infinite;
}

.panel-status.error {
    color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.panel-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    padding: 5px;
}

/* ========== PREDICTIONS ========== */
.prediction-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
    overflow-y: auto;
}

.prediction-list::-webkit-scrollbar {
    width: 3px;
}

.prediction-list::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.prediction-list::-webkit-scrollbar-thumb {
    background: var(--accent-purple);
    border-radius: 2px;
}

.pred-card {
    padding: 10px 12px;
    background: rgba(20, 20, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 5px;
    transition: all 0.3s;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.pred-card.long {
    border-left: 4px solid var(--bull);
    box-shadow: inset 5px 0 10px rgba(76, 175, 80, 0.1);
}

.pred-card.short {
    border-left: 4px solid var(--bear);
    box-shadow: inset 5px 0 10px rgba(244, 67, 54, 0.1);
}

.pred-card.correct {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--bull);
}

.pred-card.wrong {
    background: rgba(244, 67, 54, 0.08);
    border-color: var(--bear);
}

.pred-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.pred-icon {
    width: 22px;
    height: 22px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}

.pred-agent-name {
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 1px;
    flex: 1;
}

.pred-direction {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 2px;
    padding: 1px 6px;
    border-radius: 2px;
}

.pred-direction.long {
    color: var(--bull);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.25);
}

.pred-direction.short {
    color: var(--bear);
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.25);
}

.pred-token {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--accent-cyan);
    margin-left: 4px;
}

.pred-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.pred-conf-bar {
    flex: 1;
    height: 4px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 2px;
    overflow: hidden;
}

.pred-conf-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.8s ease;
}

.pred-conf-fill.high {
    background: linear-gradient(90deg, var(--accent-green), var(--bull));
}

.pred-conf-fill.med {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-orange));
}

.pred-conf-fill.low {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-orange));
}

.pred-conf-val {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    width: 32px;
    text-align: right;
}

.pred-reasoning {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-dim);
    line-height: 1.4;
    padding: 3px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    margin-top: 3px;
}

.pred-result {
    font-family: var(--font-mono);
    font-size: 8px;
    font-weight: bold;
    margin-top: 2px;
}

.pred-result.correct {
    color: var(--bull);
}

.pred-result.wrong {
    color: var(--bear);
}

.pred-result.pending {
    color: var(--text-dim);
}

/* ========== CONSENSUS ========== */
.consensus-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 6px;
}

.consensus-token-tabs {
    display: flex;
    gap: 3px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cons-tab,
.tf-tab {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 4px;
    color: var(--text-secondary);
    background: #2a2a1a;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
}

.cons-tab:hover,
.tf-tab:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.cons-tab.active,
.tf-tab.active {
    color: #fff;
    border-color: var(--accent-gold);
    background: linear-gradient(180deg, #d4af37, #8b6d00);
    text-shadow: 1px 1px 2px #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.consensus-main {
    flex: 1;
    overflow-y: auto;
}

.consensus-main::-webkit-scrollbar {
    width: 3px;
}

.consensus-main::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.consensus-main::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

.cons-verdict {
    padding: 12px;
    background: rgba(244, 228, 188, 0.05);
    border-radius: 6px;
    border: 2px double var(--border-color);
    margin-bottom: 10px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
}

.cons-verdict-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cons-verdict-label {
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

.cons-verdict-dir {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 3px;
    padding: 2px 10px;
    border-radius: 3px;
}

.cons-verdict-dir.long {
    color: var(--bull);
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    text-shadow: 0 0 10px rgba(0, 230, 118, 0.4);
}

.cons-verdict-dir.short {
    color: var(--bear);
    background: rgba(255, 23, 68, 0.1);
    border: 1px solid rgba(255, 23, 68, 0.3);
    text-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.cons-gauge {
    margin: 8px 0;
}

.cons-gauge-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.cons-gauge-long {
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.3), var(--bull));
    transition: width 0.8s ease;
    border-radius: 4px 0 0 4px;
}

.cons-gauge-short {
    height: 100%;
    background: linear-gradient(90deg, var(--bear), rgba(255, 23, 68, 0.3));
    transition: width 0.8s ease;
    border-radius: 0 4px 4px 0;
}

.cons-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9px;
    margin-top: 3px;
}

.cons-gauge-labels .long-pct {
    color: var(--bull);
}

.cons-gauge-labels .short-pct {
    color: var(--bear);
}

.cons-confidence {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
}

.cons-conf-label {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 1px;
    color: var(--text-dim);
}

.cons-conf-val {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
}

.cons-reasoning-block {
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    border-left: 2px solid var(--accent-purple);
    margin-top: 6px;
}

.cons-reasoning-title {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.cons-reasoning-text {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.cons-voters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.cons-voter {
    display: flex;
    align-items: center;
    gap: 3px;
    font-family: var(--font-mono);
    font-size: 8px;
    padding: 2px 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

.cons-voter.long {
    border-color: rgba(0, 230, 118, 0.2);
    color: var(--bull);
}

.cons-voter.short {
    border-color: rgba(255, 23, 68, 0.2);
    color: var(--bear);
}

/* ========== CHART ========== */
.chart-body {
    padding: 0 !important;
}

.chart-body canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.chart-tabs {
    display: flex;
    gap: 3px;
    margin-left: auto;
    margin-right: 8px;
}

.chart-tab {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 1px;
    padding: 2px 6px;
    border-radius: 2px;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.chart-tab.active {
    color: var(--accent-cyan);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.05);
}

/* ========== LEADERBOARD ========== */
.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 3px;
    height: 100%;
    overflow-y: auto;
}

.lb-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.lb-row.rank-1 {
    border-left-color: var(--accent-gold);
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.08), transparent);
}

.lb-row.rank-2 {
    border-left-color: #94a3b8;
}

.lb-row.rank-3 {
    border-left-color: #b45309;
}

.lb-pos {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 900;
    width: 20px;
    text-align: center;
    color: var(--text-dim);
}

.lb-row.rank-1 .lb-pos {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.lb-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.lb-name {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700;
}

.lb-specialty {
    font-family: var(--font-ui);
    font-size: 8px;
    color: var(--accent-gold);
    opacity: 0.8;
}

.lb-desc {
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-dim);
    line-height: 1.4;
    font-style: italic;
    padding-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.lb-accuracy {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1px;
}

.lb-accuracy.high {
    color: var(--bull);
}

.lb-accuracy.med {
    color: var(--accent-gold);
}

.lb-accuracy.low {
    color: var(--bear);
}

.lb-score.bull {
    color: var(--bull);
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.3);
}

.lb-score.bear {
    color: var(--bear);
    text-shadow: 0 0 8px rgba(255, 23, 68, 0.3);
}

/* ========== INTEL FEED ========== */
.trade-feed {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    overflow-y: auto;
}

.trade-feed::-webkit-scrollbar {
    width: 3px;
}

.trade-feed::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.trade-feed::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

.trade-entry {
    padding: 3px 7px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 9px;
    animation: feedSlide 0.3s ease-out;
    border-left: 2px solid var(--accent-cyan);
    line-height: 1.4;
}

.trade-entry.signal {
    border-left-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.03);
}

.trade-entry.event {
    border-left-color: var(--accent-gold);
    background: rgba(245, 158, 11, 0.03);
}

.trade-entry.prediction {
    border-left-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.03);
}

.trade-entry.consensus {
    border-left-color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.03);
}

.trade-entry.result {
    border-left-color: var(--accent-gold);
}

.trade-entry.api {
    border-left-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.03);
}

.trade-entry.alert {
    border-left-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.03);
}

.trade-entry.market {
    border-left-color: var(--accent-blue);
}

@keyframes feedSlide {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.trade-entry .agent {
    color: var(--accent-cyan);
}

.trade-entry .buy-text {
    color: var(--bull);
}

.trade-entry .sell-text {
    color: var(--bear);
}

.trade-entry .asset {
    color: var(--accent-purple);
}

.trade-entry .amount {
    color: var(--accent-gold);
}

.trade-entry .highlight {
    color: var(--accent-cyan);
}

/* ========== MARKET INTELLIGENCE ========== */
.intel-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    overflow-y: auto;
}

.intel-container::-webkit-scrollbar {
    width: 3px;
}

.intel-container::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.intel-container::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 2px;
}

/* Sentiment / Fear & Greed */
.intel-sentiment {
    padding: 8px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-shrink: 0;
}

.sent-header {
    font-family: var(--font-display);
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.sent-gauge {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.sent-value {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 900;
    min-width: 50px;
}

.sent-label {
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

.sent-bar {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    overflow: hidden;
}

.sent-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease;
}

.sent-meta {
    display: flex;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 8px;
    color: var(--text-dim);
}

.sent-meta span {
    color: var(--text-secondary);
}

/* Token Intel Cards */
.intel-tokens {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.intel-token {
    padding: 5px 7px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.3s;
}

.intel-token:hover {
    border-color: rgba(0, 212, 255, 0.2);
}

.it-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.it-sym {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    min-width: 40px;
}

.it-price {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: bold;
    color: var(--text-primary);
    flex: 1;
}

.it-change {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 2px;
}

.it-change.up {
    color: var(--bull);
    background: rgba(0, 230, 118, 0.08);
}

.it-change.down {
    color: var(--bear);
    background: rgba(255, 23, 68, 0.08);
}

.it-bottom {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 7px;
    color: var(--text-dim);
}

.it-bottom .val {
    color: var(--text-secondary);
}

/* ========== ALERT BANNER ========== */
.trade-banner {
    position: fixed;
    top: 60px;
    right: -420px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    background: linear-gradient(135deg, #2a1a1a, #8b0000);
    border: 2px solid var(--accent-gold);
    border-radius: 6px;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transition: right 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.trade-banner.show {
    right: 20px;
}

.tb-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px var(--accent-gold));
}

.tb-title {
    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent-gold);
    text-shadow: 1px 1px #000;
}

.tb-desc {
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.tb-amount {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 900;
}

.tb-amount.profit {
    color: var(--bull);
}

.tb-amount.loss {
    color: var(--bear);
}

/* ========== STATUS BAR ========== */
.status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 20px;
    background: #1a1a10;
    border-top: 2px solid var(--accent-gold);
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--text-secondary);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.5);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.status-dot.green {
    background: var(--accent-green);
    box-shadow: 0 0 5px var(--accent-green);
}

.status-dot.yellow {
    background: var(--accent-gold);
    box-shadow: 0 0 5px var(--accent-gold);
    animation: dotPulse 2s ease-in-out infinite;
}

.status-dot.red {
    background: var(--accent-red);
    box-shadow: 0 0 5px var(--accent-red);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ========== MODAL & HELP TOME ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: 3% auto;
    padding: 40px;
    width: 85%;
    max-width: 1000px;
    border: 3px ridge var(--accent-gold);
    box-shadow:
        0 0 50px rgba(0, 0, 0, 1),
        inset 0 0 100px rgba(139, 109, 0, 0.1),
        0 0 20px var(--accent-gold);
    color: #3d2b1f;
    animation: modalBreath 8s ease-in-out infinite, modalSlide 0.4s ease-out;
}

@keyframes modalBreath {

    0%,
    100% {
        box-shadow: 0 0 50px rgba(0, 0, 0, 1), 0 0 20px var(--accent-gold);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 0, 0, 1), 0 0 40px var(--accent-gold);
    }
}

.parchment-bg {
    background: #f4e4bc;
    background-image:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 100%),
        url('https://www.transparenttextures.com/patterns/paper-fibers.png');
    border-radius: 5px;
}

@keyframes modalSlide {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--accent-crimson);
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    transform: scale(1.1);
}

.help-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}

.help-btn:active {
    transform: translateY(1px);
}

.help-section h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    padding-bottom: 5px;
}

.help-grid {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-gold) transparent;
}

.help-grid::-webkit-scrollbar {
    width: 6px;
}

.help-grid::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.help-section p {
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
    font-family: 'Share Tech Mono', monospace;
}

/* ========== $CQ PROMO POPUP (REFINED) ========== */
.cq-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    pointer-events: none;
    z-index: 10000;
}

.ci-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 320px;
    max-width: 90vw;
    background: var(--bg-panel);
    border: 2px solid var(--accent-gold);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
    text-align: left;
    padding: 20px;
    pointer-events: auto;
    animation: popupSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 4px;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ci-content {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 15px;
}

.ci-symbol {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    margin-bottom: 0;
    animation: floating 3s ease-in-out infinite;
    flex-shrink: 0;
}

.ci-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ci-info h2 {
    font-size: 10px;
    letter-spacing: 2px;
    margin: 0;
    color: var(--accent-gold);
}

.ci-text {
    font-size: 13px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    line-height: 1.4;
    font-family: var(--font-mono);
}

.ci-divider {
    display: none;
}

.ci-btn {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    padding: 6px 12px;
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 5px;
    width: fit-content;
}

.ci-btn:hover {
    background: var(--accent-gold);
    color: #000;
    transform: translateY(-1px);
}