/* ================================
   Crypto Signal Dashboard - CSS
   Aesthetic: Terminal/Cyberpunk Dark
================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Syne:wght@400;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
    /* Dark Mode (default) */
    --bg-primary: #050810;
    --bg-secondary: #0c1120;
    --bg-card: #0f1729;
    --bg-card-hover: #141e35;
    --bg-glass: rgba(15, 23, 41, 0.85);

    --border-primary: rgba(56, 189, 248, 0.12);
    --border-accent: rgba(56, 189, 248, 0.3);

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #475569;

    --accent-blue: #38bdf8;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;

    --buy-color: #10b981;
    --buy-bg: rgba(16, 185, 129, 0.1);
    --buy-border: rgba(16, 185, 129, 0.3);

    --sell-color: #f43f5e;
    --sell-bg: rgba(244, 63, 94, 0.1);
    --sell-border: rgba(244, 63, 94, 0.3);

    --hold-color: #f59e0b;
    --hold-bg: rgba(245, 158, 11, 0.1);
    --hold-border: rgba(245, 158, 11, 0.3);

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 30px rgba(56, 189, 248, 0.08);

    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Syne', sans-serif;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #f0f4f8;
    --bg-secondary: #e2e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.92);

    --border-primary: rgba(15, 23, 41, 0.1);
    --border-accent: rgba(14, 116, 166, 0.3);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-blue: #0ea5e9;
    --accent-cyan: #0891b2;
    --accent-purple: #7c3aed;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 30px rgba(14, 165, 233, 0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-mono);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

/* Background grid pattern */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="light"] body::before {
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }

/* ===== LAYOUT ===== */
.app-wrapper { position: relative; z-index: 1; }

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
.header {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

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

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
    line-height: 1;
    margin-top: 1px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-wrap: wrap;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--buy-color);
    animation: pulse-dot 2s infinite;
}

.status-dot.loading { background: var(--hold-color); animation: none; }
.status-dot.error { background: var(--sell-color); animation: none; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===== CONTROLS ===== */
.select-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 13px;
    cursor: pointer;
    outline: none;
    transition: border-color var(--transition);
    min-width: 130px;
}

.select-control:focus,
.select-control:hover {
    border-color: var(--accent-blue);
}

.btn {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #050810;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-primary);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-icon {
    padding: 8px 10px;
    font-size: 16px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 24px 0;
}

/* ===== STATS BAR ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), transparent);
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--text-primary);
    line-height: 1;
}

.stat-value.buy-color { color: var(--buy-color); }
.stat-value.sell-color { color: var(--sell-color); }
.stat-value.hold-color { color: var(--hold-color); }

/* ===== MAIN GRID ===== */
.main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
    align-items: start;
}

/* ===== SIDEBAR / RANKING ===== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover { border-color: var(--border-accent); }

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title .icon { font-size: 14px; }

/* ===== RANKING LIST ===== */
.ranking-list {
    max-height: 600px;
    overflow-y: auto;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-primary);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
}

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

.ranking-item:hover { background: var(--bg-card-hover); }

.ranking-item.active {
    background: var(--bg-card-hover);
    border-left: 2px solid var(--accent-blue);
}

.ranking-item.top-pick::before {
    content: '⚡';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.rank-num {
    font-size: 11px;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.rank-symbol {
    flex: 1;
    min-width: 0;
}

.rank-symbol-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-price {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.rank-change {
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.rank-change.pos { color: var(--buy-color); }
.rank-change.neg { color: var(--sell-color); }

.signal-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.signal-badge.BUY {
    background: var(--buy-bg);
    color: var(--buy-color);
    border: 1px solid var(--buy-border);
}

.signal-badge.SELL {
    background: var(--sell-bg);
    color: var(--sell-color);
    border: 1px solid var(--sell-border);
}

.signal-badge.HOLD {
    background: var(--hold-bg);
    color: var(--hold-color);
    border: 1px solid var(--hold-border);
}

.strength-bar {
    width: 40px;
    height: 4px;
    background: var(--bg-secondary);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s;
}

.strength-fill.BUY { background: var(--buy-color); }
.strength-fill.SELL { background: var(--sell-color); }
.strength-fill.HOLD { background: var(--hold-color); }

/* ===== DETAIL PANEL ===== */
.detail-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== PAIR INFO CARD ===== */
.pair-info-card .card-body {
    padding: 24px;
}

.pair-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.pair-symbol-block {}

.pair-symbol {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.pair-exchange {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 4px;
}

.pair-price-block { text-align: right; }

.pair-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-family: var(--font-display);
}

.pair-change {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.pair-change.pos { color: var(--buy-color); }
.pair-change.neg { color: var(--sell-color); }

/* ===== SIGNAL DISPLAY ===== */
.signal-display {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-primary);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.signal-display::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
}

.signal-display.BUY { border-color: var(--buy-border); background: var(--buy-bg); }
.signal-display.BUY::before { background: var(--buy-color); opacity: 0.05; }

.signal-display.SELL { border-color: var(--sell-border); background: var(--sell-bg); }
.signal-display.SELL::before { background: var(--sell-color); opacity: 0.05; }

.signal-display.HOLD { border-color: var(--hold-border); background: var(--hold-bg); }
.signal-display.HOLD::before { background: var(--hold-color); opacity: 0.05; }

.signal-icon-big {
    font-size: 48px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.signal-text-block { position: relative; z-index: 1; }

.signal-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.signal-value {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
}

.signal-value.BUY { color: var(--buy-color); }
.signal-value.SELL { color: var(--sell-color); }
.signal-value.HOLD { color: var(--hold-color); }

.signal-strength-block { margin-left: auto; text-align: right; position: relative; z-index: 1; }

.strength-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.strength-ring {
    position: relative;
    width: 70px;
    height: 70px;
    margin-left: auto;
}

.strength-ring svg {
    transform: rotate(-90deg);
}

.strength-ring circle { fill: none; }

.strength-bg { stroke: var(--bg-secondary); stroke-width: 6; }
.strength-fg {
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.strength-fg.BUY { stroke: var(--buy-color); }
.strength-fg.SELL { stroke: var(--sell-color); }
.strength-fg.HOLD { stroke: var(--hold-color); }

.strength-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-display);
}

/* ===== INDICATORS GRID ===== */
.indicators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.indicator-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 14px;
}

.indicator-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.indicator-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1;
}

.indicator-value.bullish { color: var(--buy-color); }
.indicator-value.bearish { color: var(--sell-color); }
.indicator-value.neutral { color: var(--hold-color); }

.indicator-sub {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ===== REASONS LIST ===== */
.reasons-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reason-item {
    font-size: 11px;
    color: var(--text-secondary);
    padding: 6px 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    border-left: 3px solid var(--border-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.reason-item::before { content: '→'; color: var(--accent-blue); flex-shrink: 0; }

/* ===== CHART ===== */
.chart-container {
    padding: 20px;
    position: relative;
    height: 300px;
}

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

.chart-timeframes {
    display: flex;
    gap: 4px;
}

.tf-btn {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-mono);
    transition: all var(--transition);
}

.tf-btn:hover, .tf-btn.active {
    background: var(--accent-blue);
    color: #050810;
    border-color: var(--accent-blue);
}

/* ===== LOADING ===== */
.loading-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.loading-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.loader-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-text {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ===== NOTIFICATIONS ===== */
.notification-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.notification {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: var(--shadow-card);
    pointer-events: all;
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.removing {
    animation: slideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOut {
    to { transform: translateX(120%); opacity: 0; }
}

.notification.BUY { border-left: 3px solid var(--buy-color); }
.notification.SELL { border-left: 3px solid var(--sell-color); }
.notification.HOLD { border-left: 3px solid var(--hold-color); }

.notif-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.notif-content { flex: 1; }
.notif-title { font-size: 12px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.notif-body { font-size: 11px; color: var(--text-secondary); }
.notif-time { font-size: 10px; color: var(--text-muted); margin-top: 3px; }

/* ===== REFRESH TIMER ===== */
.refresh-timer {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-primary);
}

.timer-bar {
    width: 40px;
    height: 3px;
    background: var(--border-primary);
    border-radius: 2px;
    overflow: hidden;
}

.timer-fill {
    height: 100%;
    background: var(--accent-blue);
    border-radius: 2px;
    transition: width 1s linear;
}

/* ===== SEARCH ===== */
.search-box {
    position: relative;
}

.search-input {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
    padding: 8px 12px 8px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    outline: none;
    transition: border-color var(--transition);
    width: 160px;
}

.search-input:focus { border-color: var(--accent-blue); }

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

/* ===== TICKER MARQUEE ===== */
.ticker-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
}

.ticker-track {
    display: inline-flex;
    gap: 32px;
    animation: marquee 40s linear infinite;
    padding-left: 100%;
}

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

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.ticker-sym { color: var(--text-primary); font-weight: 700; }
.ticker-px { color: var(--text-secondary); }
.ticker-chg.pos { color: var(--buy-color); }
.ticker-chg.neg { color: var(--sell-color); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon { font-size: 36px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 13px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .main-grid {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 900px) {
    .main-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .detail-panel {
        order: 1;
    }

    .indicators-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .header-inner { gap: 12px; }
    .logo-text { font-size: 16px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .indicators-grid { grid-template-columns: repeat(2, 1fr); }
    .pair-header { flex-direction: column; gap: 8px; }
    .pair-price-block { text-align: left; }
    .pair-price { font-size: 22px; }
    .pair-symbol { font-size: 24px; }
    .signal-value { font-size: 30px; }
    .notification-container { left: 16px; right: 16px; }
    .notification { min-width: unset; }
    .search-input { width: 120px; }
    .header-controls { gap: 8px; }
}

/* ===== ANIMATION UTILITIES ===== */
.fade-in {
    animation: fadeIn 0.4s ease;
}

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

.pulse {
    animation: pulseAnim 0.6s ease;
}

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

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--bg-card-hover) 50%, var(--bg-secondary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* ===== MULTI-TIMEFRAME COMPARISON ===== */
.tf-comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
}

.tf-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.tf-item:hover { border-color: var(--accent-blue); }

.tf-item-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.tf-item-signal {
    font-size: 13px;
    font-weight: 700;
}

.tf-item-signal.BUY { color: var(--buy-color); }
.tf-item-signal.SELL { color: var(--sell-color); }
.tf-item-signal.HOLD { color: var(--hold-color); }

.tf-item-strength {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
}
