/**
 * Crypto Chart Styles - Premium Edition
 * Polished, professional trading-style design
 */

/* ==================== Chart Intro Text ==================== */
.chart-intro-text {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

/* ==================== Chart Wrapper ==================== */
.crypto-chart-wrapper {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    width: 100%;
}

/* ==================== Chart Card ==================== */
.crypto-chart-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: visible;
    transition: all 0.2s ease;
    margin: 0;
    width: 100%;
}

.crypto-chart-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ==================== Chart Header ==================== */
.crypto-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 16px 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.crypto-chart-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.crypto-chart-symbol {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crypto-chart-symbol .symbol-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* No background or border - seamless with header */
}

.crypto-chart-symbol .symbol-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.crypto-chart-symbol .symbol-logo.loaded {
    opacity: 1;
}

.crypto-chart-symbol .symbol-logo.hidden {
    display: none !important;
}

.crypto-chart-symbol .symbol-icon-fallback {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.crypto-chart-symbol .symbol-icon-fallback.hidden {
    display: none;
}

.crypto-chart-symbol .symbol-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.crypto-chart-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.crypto-chart-price .price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f0f0f0;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.crypto-chart-price .price-change {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    font-variant-numeric: tabular-nums;
}

.crypto-chart-price .price-change.positive {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

.crypto-chart-price .price-change.negative {
    color: #f87171;
    background: rgba(248, 113, 113, 0.15);
}

/* ==================== Fear & Greed Badge ==================== */
.fear-greed-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    cursor: help;
    margin-left: 8px;
}

.fear-greed-badge .fg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fear-greed-badge .fg-label {
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
}

/* ==================== Time Range Buttons ==================== */
.crypto-chart-ranges {
    display: flex;
    gap: 2px;
    background: rgba(255, 255, 255, 0.06);
    padding: 4px;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}

.range-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Montserrat', sans-serif;
}

.range-btn:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
}

.range-btn.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* ==================== Chart Actions (ranges + share) ==================== */
.crypto-chart-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: visible;
}

.crypto-chart-header {
    overflow: visible;
}

/* Chart action buttons with tooltips */
.chart-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.chart-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
}

.chart-action-btn:active {
    transform: scale(0.95);
}

.chart-action-btn.loading,
.chart-action-btn.sharing {
    opacity: 0.5;
    cursor: wait;
}

.chart-action-btn svg {
    flex-shrink: 0;
}

/* Tooltip for action buttons */
.chart-action-btn[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    margin-bottom: 8px;
    background: rgba(20, 20, 25, 0.95);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
}

.chart-action-btn[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

/* ==================== Prediction Popup ==================== */
.prediction-popup {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

.prediction-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.prediction-title {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.prediction-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.25);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s;
    font-weight: 300;
}

.prediction-close:hover {
    color: rgba(255, 255, 255, 0.6);
}

/* Signal Meter */
.prediction-meter {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.meter-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.meter-fill {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.meter-fill.bullish {
    left: 50%;
    background: linear-gradient(90deg, rgba(34, 197, 94, 0.3), #22c55e);
}

.meter-fill.bearish {
    right: 50%;
    background: linear-gradient(270deg, rgba(239, 68, 68, 0.3), #ef4444);
}

.meter-center {
    position: absolute;
    left: 50%;
    top: -2px;
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-50%);
}

.prediction-signal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 70px;
}

.signal-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.prediction-confidence {
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
}

/* Indicators Grid */
.prediction-indicators {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin: 0 -4px;
    padding: 0 4px;
    scrollbar-width: none;
}

.prediction-indicators::-webkit-scrollbar {
    display: none;
}

.prediction-indicator {
    display: flex;
    flex-direction: column;
    min-width: 72px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.prediction-indicator .ind-name {
    font-size: 8px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.prediction-indicator .ind-value {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
}

.prediction-indicator .ind-signal {
    font-size: 9px;
    font-weight: 600;
}

.prediction-disclaimer {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.15);
    margin-top: 10px;
    text-align: right;
}

/* ==================== Chart Container ==================== */
.crypto-chart-container {
    position: relative;
    height: 280px;
    padding-bottom: 28px;
    background: rgba(0, 0, 0, 0.12);
}

.crypto-chart-canvas {
    width: 100%;
    height: 100%;
}

.crypto-chart-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.chart-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: chart-spin 0.8s linear infinite;
}

@keyframes chart-spin {
    to { transform: rotate(360deg); }
}

/* ==================== Chart Footer / Stats ==================== */
.crypto-chart-footer {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.crypto-chart-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.crypto-chart-stats.stats-row-2 {
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 80px;
    flex: 1;
}

.stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value.positive {
    color: #4ade80;
}

.stat-value.negative {
    color: #f87171;
}

.crypto-chart-source {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    align-self: flex-end;
}

/* ==================== News Ticker ==================== */
.crypto-chart-news {
    background: rgba(255, 255, 255, 0.01);
    max-height: 130px;
    overflow-y: auto;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.crypto-chart-news.collapsed {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
}

/* Custom scrollbar for news section */
.crypto-chart-news::-webkit-scrollbar {
    width: 4px;
}

.crypto-chart-news::-webkit-scrollbar-track {
    background: transparent;
}

.crypto-chart-news::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

.crypto-chart-news::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ==================== News Feed Section ==================== */
.news-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.news-feed-title {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    flex: 1;
}

.news-toggle-link {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.news-toggle-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.news-toggle-link[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.news-toggle-link[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

.news-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 600;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
    padding: 4px 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 5px;
}

.live-dot {
    width: 5px;
    height: 5px;
    background: #22c55e;
    border-radius: 50%;
    animation: live-pulse 2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.news-list {
    padding: 6px 10px;
}

.news-list-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-empty {
    padding: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==================== Whale Ticker Bar (bottom, outside scroll) ==================== */
.whale-ticker-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(59, 130, 246, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0 0 16px 16px;
}

.whale-ticker-label {
    font-size: 14px;
    flex-shrink: 0;
}

.whale-ticker {
    flex: 1;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15px, black calc(100% - 15px), transparent 100%);
}

.whale-ticker-content {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: whale-scroll 40s linear infinite;
    width: max-content;
    padding-right: 50px;
}

.whale-ticker-content:hover {
    animation-play-state: paused;
}

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

.whale-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    margin: 0 4px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.whale-item[data-type="deposit"] {
    background: rgba(34, 197, 94, 0.08);
}

.whale-item[data-type="withdrawal"] {
    background: rgba(239, 68, 68, 0.08);
}

.whale-emoji {
    font-size: 12px;
}

.whale-amount {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.whale-usd {
    font-size: 10px;
    font-weight: 500;
    color: #60a5fa;
}

.whale-flow {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.whale-time {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.35);
}

.whale-separator {
    color: rgba(255, 255, 255, 0.15);
    padding: 0 8px;
    font-size: 6px;
}

.whale-item.whale-empty {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    background: transparent;
}

/* News item base styles */
.news-ticker-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: transparent;
    border-left: 2px solid transparent;
    position: relative;
}

.news-ticker-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-left-color: #60a5fa;
}

.news-ticker-item:hover .ticker-headline {
    color: #fff;
}

.news-ticker-item::after {
    content: '↗';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.2s;
}

.news-ticker-item:hover::after {
    opacity: 1;
    color: #60a5fa;
}

.ticker-headline {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    padding-right: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-ticker-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ticker-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.ticker-source {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Hover Preview Tooltip (appended to body) */
.news-preview-tooltip {
    position: fixed;
    z-index: 10000;
    max-width: 320px;
    padding: 12px 16px;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.news-preview-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
}

.ticker-headline {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.2s;
    line-height: 1.4;
    white-space: normal;
    word-wrap: break-word;
    flex: 1;
}

.ticker-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
    font-weight: 500;
}

.ticker-source {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ticker-separator {
    color: rgba(255, 255, 255, 0.15);
    padding: 0 8px;
    font-size: 6px;
}


/* ==================== Responsive Design ==================== */
@media (max-width: 600px) {
    .crypto-chart-header {
        flex-direction: column;
        gap: 12px;
        padding: 14px;
    }

    .crypto-chart-symbol .symbol-icon {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .crypto-chart-symbol .symbol-logo {
        width: 28px;
        height: 28px;
    }

    .crypto-chart-symbol .symbol-icon-fallback {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .crypto-chart-symbol .symbol-name {
        font-size: 13px;
    }

    .crypto-chart-price .price-value {
        font-size: 1.35rem;
    }

    .crypto-chart-ranges {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .range-btn {
        padding: 7px 12px;
    }

    .crypto-chart-container {
        height: 240px;
        padding-bottom: 24px;
    }

    .crypto-chart-footer {
        padding: 12px;
        gap: 10px;
    }

    .crypto-chart-stats {
        width: 100%;
        gap: 10px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .crypto-chart-stats.stats-row-2 {
        padding-top: 10px;
    }

    .stat-item {
        min-width: unset;
        flex: unset;
    }

    .stat-label {
        font-size: 9px;
    }

    .stat-value {
        font-size: 12px;
    }

    .crypto-chart-source {
        width: 100%;
        text-align: right;
        margin-top: 4px;
    }

    .news-ticker-wrapper {
        height: 32px;
        padding: 0 10px;
    }

    .ticker-headline {
        font-size: 11px;
    }

    .ticker-source {
        display: none;
    }

    /* Mobile: Chart Actions */
    .crypto-chart-actions {
        width: 100%;
        justify-content: space-between;
    }

    .crypto-chart-ranges {
        flex: 1;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .chart-action-btn {
        width: 36px;
        height: 36px;
    }

    .chart-action-btn[data-tooltip]::after {
        display: none;
    }

    /* Mobile: Fear & Greed Badge */
    .fear-greed-badge {
        padding: 2px 6px;
        margin-left: 6px;
    }

    .fear-greed-badge .fg-dot {
        width: 5px;
        height: 5px;
    }

    .fear-greed-badge .fg-label {
        font-size: 9px;
    }

    /* Mobile: Prediction Popup */
    .prediction-popup {
        padding: 12px;
    }

    .prediction-meter {
        flex-wrap: wrap;
        gap: 8px;
    }

    .meter-bar {
        order: 2;
        width: 100%;
        flex: none;
    }

    .prediction-meter > span:first-child {
        order: 1;
    }

    .prediction-meter > span:nth-child(3) {
        order: 3;
        margin-left: auto;
    }

    .prediction-signal {
        order: 4;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 4px;
    }

    .prediction-indicators {
        gap: 6px;
    }

    .prediction-indicator {
        min-width: 64px;
        padding: 6px 8px;
    }

    .prediction-indicator .ind-value {
        font-size: 11px;
    }

    /* Mobile: News Section */
    .news-feed-header {
        padding: 8px 12px;
    }

    .news-toggle-link[data-tooltip]::after {
        display: none;
    }

    .crypto-chart-news {
        max-height: 100px;
    }

    .news-ticker-item {
        padding: 8px 10px;
    }

    .news-ticker-item .news-title {
        font-size: 11px;
    }

    .news-ticker-item .news-time {
        font-size: 9px;
    }

    /* Mobile: Whale Ticker */
    .whale-ticker-bar {
        padding: 6px 10px;
    }

    .whale-ticker-label {
        font-size: 12px;
    }

    .whale-item {
        font-size: 10px;
        padding: 3px 8px;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .crypto-chart-price .price-value {
        font-size: 1.2rem;
    }

    .range-btn {
        padding: 6px 8px;
        font-size: 10px;
    }

    .crypto-chart-container {
        height: 200px;
    }

    .prediction-indicator {
        min-width: 58px;
    }

    .stat-label {
        font-size: 8px;
    }

    .stat-value {
        font-size: 11px;
    }
}

/* ==================== Light Theme Support ==================== */
[data-theme="light"] .crypto-chart-card,
.light-theme .crypto-chart-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .crypto-chart-card:hover,
.light-theme .crypto-chart-card:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .crypto-chart-symbol .symbol-name,
.light-theme .crypto-chart-symbol .symbol-name {
    color: rgba(0, 0, 0, 0.9);
}

[data-theme="light"] .crypto-chart-price .price-value,
.light-theme .crypto-chart-price .price-value {
    color: #1a1a1a;
}

[data-theme="light"] .crypto-chart-ranges,
.light-theme .crypto-chart-ranges {
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .range-btn,
.light-theme .range-btn {
    color: rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .range-btn:hover,
.light-theme .range-btn:hover {
    color: rgba(0, 0, 0, 0.75);
    background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .range-btn.active,
.light-theme .range-btn.active {
    color: rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .crypto-chart-container,
.light-theme .crypto-chart-container {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .crypto-chart-footer,
.light-theme .crypto-chart-footer {
    background: rgba(0, 0, 0, 0.02);
    border-top-color: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .stat-label,
.light-theme .stat-label {
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .stat-value,
.light-theme .stat-value {
    color: rgba(0, 0, 0, 0.85);
}

[data-theme="light"] .crypto-chart-source,
.light-theme .crypto-chart-source {
    color: rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .crypto-chart-news,
.light-theme .crypto-chart-news {
    background: rgba(255, 255, 255, 0.5);
    border-top-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="light"] .ticker-headline,
.light-theme .ticker-headline {
    color: rgba(0, 0, 0, 0.75);
}

[data-theme="light"] .news-ticker-item:hover .ticker-headline,
.light-theme .news-ticker-item:hover .ticker-headline {
    color: #2563eb;
}

[data-theme="light"] .ticker-source,
.light-theme .ticker-source {
    color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .ticker-time,
.light-theme .ticker-time {
    color: rgba(0, 0, 0, 0.4);
}

[data-theme="light"] .news-preview-tooltip,
.light-theme .news-preview-tooltip {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .ticker-separator,
.light-theme .ticker-separator {
    color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .news-live-badge,
.light-theme .news-live-badge {
    background: rgba(239, 68, 68, 0.1);
}

/* ==================== Animation States ==================== */
.crypto-chart-card.loading .crypto-chart-canvas {
    opacity: 0.5;
}

.crypto-chart-card.error .price-value {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* ==================== Shimmer Loading ==================== */
.shimmer-loading {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.shimmer-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 50%,
        transparent 100%
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.price-value.shimmer-loading {
    min-width: 120px;
    height: 1.5rem;
    color: transparent !important;
}

.price-change.shimmer-loading {
    min-width: 60px;
    height: 1.2rem;
    color: transparent !important;
}

.stat-value.shimmer-loading {
    min-width: 50px;
    height: 1rem;
    color: transparent !important;
}

/* ==================== Price Counter Animation ==================== */
.price-value {
    transition: transform 0.15s ease;
}

.price-value.price-updated {
    animation: pricePop 0.3s ease;
}

@keyframes pricePop {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

.price-value.price-up {
    animation: priceFlashUp 0.4s ease;
}

.price-value.price-down {
    animation: priceFlashDown 0.4s ease;
}

@keyframes priceFlashUp {
    0% { color: #f0f0f0; }
    30% { color: #4ade80; }
    100% { color: #f0f0f0; }
}

@keyframes priceFlashDown {
    0% { color: #f0f0f0; }
    30% { color: #f87171; }
    100% { color: #f0f0f0; }
}

/* ==================== Chart Line Glow ==================== */
.crypto-chart-canvas {
    filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.15));
    transition: filter 0.3s ease;
}

.crypto-chart-card[data-trend="down"] .crypto-chart-canvas {
    filter: drop-shadow(0 0 3px rgba(248, 113, 113, 0.15));
}

.crypto-chart-card[data-trend="up"] .crypto-chart-canvas {
    filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.15));
}

/* ==================== Range Button Press Effect ==================== */
.range-btn:active {
    transform: scale(0.95);
}

.range-btn.active {
    position: relative;
}

.range-btn.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1px;
}

/* ==================== Data Source Indicator ==================== */
.data-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.data-source-badge.live {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.data-source-badge.live::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #4ade80;
    animation: livePulse 2s ease-in-out infinite;
}

.data-source-badge.cache {
    color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.data-source-badge .cache-age {
    color: rgba(255, 255, 255, 0.4);
    font-size: 8px;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
