:root {
    /* Base Colors - Sleek Dark Theme */
    --bg-dark: #0f111a;
    --panel-bg: #1a1d2d;
    --panel-bg-hover: #22263b;
    --border-color: #2a2e40;
    
    /* Neons & Highlights */
    --neon-green: #00ff88;
    --vivid-red: #ff3366;
    --electric-blue: #00e5ff;
    --electric-blue-muted: rgba(0, 229, 255, 0.15);
    --neon-green-muted: rgba(0, 255, 136, 0.15);
    --vivid-red-muted: rgba(255, 51, 102, 0.15);

    /* Typography */
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-white: #ffffff;
    
    /* Layout Variables */
    --sidebar-width: 280px;
    --header-height: 64px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
    
    /* Fonts */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    height: 100vh;       /* fallback */
    height: 100dvh;      /* mobile: respects URL bar */
    overflow: hidden;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(26, 29, 45, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.text-bearish {
    color: var(--vivid-red);
    font-weight: 600;
}

.text-neutral {
    color: var(--text-muted);
    font-weight: 600;
}

/* Custom Dropdown (Flags) */
.custom-dropdown {
    position: relative;
    user-select: none;
    cursor: pointer;
}

.dropdown-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
}

.btn, .btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 0.95rem;
    text-decoration: none;
    outline: none;
}

.btn-primary {
    background: var(--electric-blue);
    color: #000;
}

.btn-primary:hover {
    background: #00b3cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--electric-blue-muted);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.05);
}

.w-100 { width: 100%; }
.d-none { display: none !important; }
.text-muted { color: var(--text-muted); }

/* ==== SIDEBAR ==== */
.sidebar {
    width: var(--sidebar-width);
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;       /* fallback */
    height: 100dvh;      /* mobile: respects URL bar */
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon-wrap {
    background: linear-gradient(135deg, var(--electric-blue), #0088ff);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px var(--electric-blue-muted);
}

.sidebar-section {
    padding: 16px 20px;
    flex: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-link i {
    font-size: 1.2rem;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

.nav-link.active {
    background: rgba(0, 229, 255, 0.1);
    color: var(--electric-blue);
    font-weight: 600;
}

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

/* Chat History */
.chat-history-section {
    padding-top: 0;
}

.section-title-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.section-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
    opacity: 0.6;
}

.section-title-toggle.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

.history-list.collapsed {
    display: none;
}

.history-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    transition: all 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.history-item:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.03);
}

/* OnFin Promo */
.onfin-promo-card {
    background: linear-gradient(145deg, rgba(255, 51, 102, 0.1), rgba(255, 51, 102, 0.02));
    border: 1px solid rgba(255, 51, 102, 0.2);
    border-radius: var(--border-radius-md);
    padding: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.onfin-promo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,51,102,0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.promo-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.promo-text {
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.promo-btn {
    display: inline-block;
    background: var(--vivid-red);
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.promo-btn:hover {
    background: #ff4d79;
    box-shadow: 0 4px 12px var(--vivid-red-muted);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.logout-link:hover {
    color: var(--vivid-red);
    background: rgba(255, 51, 102, 0.1);
}

/* ==== MAIN CONTENT ==== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;       /* fallback */
    height: 100dvh;      /* mobile: respects URL bar */
    position: relative;
}

.app-bar {
    display: none; /* Desktop hidden */
    height: var(--header-height);
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    z-index: 50;
}

.app-bar-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-white);
}

.view-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.view-pane::-webkit-scrollbar {
    display: none;
}

.view-pane.active {
    opacity: 1;
    pointer-events: all;
}

/* ==== 1. CHAT VIEW ==== */
.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

/* ── Pair Context Bar (bottom of chat input) ────────────────────────────── */
.pair-context-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    margin-bottom: 10px;
    border-radius: 14px;
    background: rgba(26, 29, 45, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(12px);
}

/* "Pair" label + select wrapper */
.pcb-pair-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.pcb-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.pcb-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pcb-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.3);
    color: var(--electric-blue);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 5px 28px 5px 10px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}

.pcb-select:hover, .pcb-select:focus {
    border-color: var(--electric-blue);
    background: rgba(0, 122, 255, 0.18);
}

.pcb-select option {
    background: var(--panel-bg, #1a1a2e);
    color: #fff;
}

.pcb-chevron {
    position: absolute;
    right: 8px;
    font-size: 0.75rem;
    color: var(--electric-blue);
    pointer-events: none;
}

/* Vertical divider */
.pcb-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Price + signal */
.pcb-price-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pcb-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}

/* Sentiment */
.pcb-sentiment {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Market Data button */
.pcb-market-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 122, 255, 0.35);
    background: rgba(0, 122, 255, 0.1);
    color: var(--electric-blue);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pcb-market-btn:hover {
    background: rgba(0, 122, 255, 0.22);
    border-color: var(--electric-blue);
}

.pcb-market-btn i { font-size: 0.85rem; }

/* ── Chat Title Bar ──────────────────────────────────────────────────────── */
.chat-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.ctb-new-chat {
    display: flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main); font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; white-space: nowrap; flex-shrink: 0;
}

.ctb-new-chat:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
}

.ctb-new-chat i { font-size: 0.9rem; }

.ctb-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* ── Welcome Screen ──────────────────────────────────────────────────────── */
.chat-welcome {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 36px;
    animation: fadeUp 0.4s ease-out;
}

.cw-greeting {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.cw-hi {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 400;
}

.cw-question {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}

.cw-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 500px;
}

.cw-action-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.cw-action-pill:hover {
    background: rgba(0, 122, 255, 0.08);
    border-color: rgba(0, 122, 255, 0.3);
    color: var(--electric-blue);
}

.cw-action-pill i {
    font-size: 1.1rem;
    color: var(--electric-blue);
}

@media (max-width: 768px) {
    .cw-question { font-size: 1.4rem; }
    .cw-hi { font-size: 1.1rem; }
    .cw-actions { gap: 8px; }
    .cw-action-pill { padding: 10px 14px; font-size: 0.82rem; }
    .chat-title-bar { padding: 10px 0; }
    .ctb-title { font-size: 0.82rem; }
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0 12px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    scrollbar-width: none; /* Firefox */
}

.chat-history::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.chat-message {
    display: flex;
    gap: 16px;
    max-width: 85%;
    animation: fadeUp 0.3s ease-out forwards;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-message.ai .chat-avatar {
    background: linear-gradient(135deg, var(--electric-blue), #0088ff);
    color: #000;
    border: none;
}

.chat-message.user .chat-avatar {
    background: var(--panel-bg-hover);
    color: var(--text-white);
}

.chat-bubble {
    background: transparent;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.6;
}

.chat-message.user .chat-bubble {
    background: var(--panel-bg-hover);
    padding: 12px 18px;
    border-radius: 18px;
    border-bottom-right-radius: 4px;
}

/* Report AI button */
.report-ai-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 0.8rem; padding: 4px 6px; border-radius: 6px; opacity: 0;
    transition: opacity 0.2s, color 0.2s; position: absolute; bottom: 4px; right: 4px;
}
.chat-message { position: relative; }
.chat-message:hover .report-ai-btn { opacity: 1; }
.report-ai-btn:hover { color: var(--vivid-red); background: rgba(255,255,255,0.05); }
.report-ai-btn:disabled { color: var(--neon-green); opacity: 1; cursor: default; }

/* ── Chat Mini-Widgets ──────────────────────────────────────────────────── */
.chat-widgets-container {
    display: flex; flex-direction: column; gap: 10px;
    padding-left: 52px; margin-top: 6px; margin-bottom: 4px;
    max-width: 420px;
}
.chat-widget-card {
    border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
}
.chat-widget-header {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; font-weight: 600; font-size: 0.85rem;
    color: var(--text-white);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-widget-header i { font-size: 1.1rem; color: var(--electric-blue); }
.chat-widget-body {
    padding: 10px 14px; max-height: 280px; overflow-y: auto;
    font-size: 0.82rem; color: var(--text-main);
}
.chat-widget-loading {
    text-align: center; padding: 16px 0; color: var(--text-muted); font-size: 0.82rem;
}
.chat-widget-empty {
    text-align: center; padding: 16px 0; color: var(--text-muted); font-size: 0.82rem;
}
.chat-widget-full-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 8px; border: none;
    background: rgba(0,122,255,0.08); color: var(--electric-blue);
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: background 0.2s;
}
.chat-widget-full-btn:hover { background: rgba(0,122,255,0.16); }

/* Calendar widget rows */
.cw-event-row {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.8rem; flex-wrap: wrap;
}
.cw-event-row:last-child { border-bottom: none; }
.cw-impact { flex-shrink: 0; font-size: 0.7rem; }
.cw-event-currency {
    background: rgba(255,255,255,0.08); border-radius: 4px;
    padding: 1px 6px; font-size: 0.7rem; font-weight: 700;
    color: var(--text-white); flex-shrink: 0;
}
.cw-event-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-event-data { font-size: 0.72rem; color: var(--text-muted); width: 100%; padding-left: 24px; }

/* Watchlist widget table */
.cw-wl-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.cw-wl-table th { text-align: left; color: var(--text-muted); font-weight: 500; padding: 4px 6px; font-size: 0.72rem; }
.cw-wl-table td { padding: 6px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cw-wl-row:hover { background: rgba(255,255,255,0.04); }

/* Chart widget */
.cw-chart-body { padding: 0 !important; height: 180px; min-height: 180px; overflow: hidden !important; }

/* Copy trading widget */
.cw-strategies { display: flex; flex-direction: column; gap: 8px; }
.cw-strategy-card {
    background: rgba(255,255,255,0.03); border-radius: 8px; padding: 10px 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.cw-strategy-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cw-strategy-top strong { font-size: 0.85rem; color: var(--text-white); }
.cw-strategy-stats { display: flex; gap: 12px; font-size: 0.72rem; color: var(--text-muted); }

/* Navigate button widget */
.chat-widget-nav-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px; border: 1px solid rgba(0,122,255,0.2);
    background: rgba(0,122,255,0.06); color: var(--electric-blue);
    font-size: 0.85rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; margin-left: 52px; margin-top: 6px;
}
.chat-widget-nav-btn:hover { background: rgba(0,122,255,0.14); border-color: rgba(0,122,255,0.3); }

/* Mobile responsive for chat widgets */
@media (max-width: 768px) {
    .chat-widgets-container { padding-left: 0; max-width: 100%; }
    .chat-widget-nav-btn { margin-left: 0; }
    .cw-chart-body { height: 150px; min-height: 150px; }
}

/* Markdown styling inside bubble */
.chat-bubble p { margin-bottom: 1em; }
.chat-bubble p:last-child { margin-bottom: 0; }
.chat-bubble strong { color: var(--text-white); font-weight: 600; }
.chat-bubble ul, .chat-bubble ol { margin-left: left; padding-left: 20px; margin-bottom: 1em; }

.chat-input-area {
    padding: 10px 0 30px;
    position: relative;
    background: linear-gradient(0deg, var(--bg-dark) 65%, transparent 100%);
}

.status-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 136, 0); }
}

.chat-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 16px;
    border-radius: 30px;
    background: rgba(26, 29, 45, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-wrapper:focus-within {
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 1px var(--electric-blue), 0 8px 24px rgba(0,0,0,0.4);
}

.chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

.chat-input::placeholder {
    color: #64748b;
}

.send-button {
    background: var(--electric-blue);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px var(--electric-blue-muted);
}

.chat-disclaimer {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* ==== 2. MARKET DATA VIEW ==== */
.market-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    gap: 20px;
}

.market-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    height: 60px;
}

.modern-select {
    background: rgba(0, 229, 255, 0.05);
    color: var(--electric-blue);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 600;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.modern-select option {
    background: var(--panel-bg);
    color: var(--text-white);
}

.asset-selector { display: flex; align-items: center; gap: 12px; }

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge.neon-green {
    background-color: var(--neon-green-muted);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.badge.vivid-red {
    background-color: var(--vivid-red-muted);
    color: var(--vivid-red);
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.badge.muted {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.timeframe-pills { display: flex; gap: 4px; }
.timeframe-pills button {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: 0.2s;
}

.timeframe-pills button:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
}

.timeframe-pills button.active {
    background: var(--electric-blue-muted);
    color: var(--electric-blue);
    border-color: rgba(0, 229, 255, 0.2);
}

.market-content {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0;
}

.chart-wrapper {
    flex: 2;
    padding: 2px;
    display: flex;
    flex-direction: column;
}

.chart-container {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: inherit;
    overflow: hidden;
}

.loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: rgba(26, 29, 45, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    gap: 12px;
}

.progress.fill-bearish {
    background: linear-gradient(90deg, #a0001a, var(--vivid-red));
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--vivid-red-muted);
}

.progress.fill-neutral {
    background: var(--text-muted);
    height: 100%;
    border-radius: 10px;
}

/* Economic Events */
.events-list {
    list-style: none;
    display: flex;
    flex-direction: column;
}

.market-sidebar {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
}

.insight-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sentiment-score { display: flex; align-items: center; gap: 16px; }
.text-bullish { color: var(--neon-green); font-weight: 600; }
.progress-bar {
    flex: 1; height: 8px; background: rgba(255,255,255,0.05); border-radius: 10px; overflow: hidden;
}
.fill-bullish { background: linear-gradient(90deg, #00b360, var(--neon-green)); height: 100%; box-shadow: 0 0 10px var(--neon-green-muted); }

.match-score {
    display: inline-block;
    color: var(--electric-blue);
    font-size: 0.75rem;
    background: var(--electric-blue-muted);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 12px;
}

.text-sm { font-size: 0.85rem; line-height: 1.5; color: var(--text-muted); margin-bottom: 16px; }

.setup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.setup-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.setup-item span { font-size: 0.7rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.setup-item strong { font-family: monospace; font-size: 1rem; }
.setup-item.entry strong { color: var(--electric-blue); }
.setup-item.tp strong { color: var(--neon-green); }
.setup-item.sl strong { color: var(--vivid-red); }

.flex-grow { flex: 1; min-height: 300px; }

/* ==== 4. COPY TRADING VIEW ==== */
.copy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.trader-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.trader-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.trader-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--panel-bg-hover);
    color: var(--electric-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.trader-name {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.trader-stats {
    font-size: 0.9rem;
    font-weight: 600;
}

.trader-metrics {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.mt-3 { margin-top: 16px; }
.mt-4 { margin-top: 24px; }

/* ==== 3. CONTENT LAYOUT (used by Copy Trading, etc.) ==== */
.wallet-layout {
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
}

.wallet-layout::-webkit-scrollbar {
    display: none;
}

/* ==== CONFLUENCE PANEL ==== */
.confluence-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.confluence-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    transition: background 0.2s;
}
.confluence-row:hover { background: rgba(255,255,255,0.05); }
.confluence-row.is-active {
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
}
.confluence-tf {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 32px;
}
.confluence-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.confluence-dot.bullish { background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green-muted); }
.confluence-dot.bearish { background: var(--vivid-red); box-shadow: 0 0 8px var(--vivid-red-muted); }
.confluence-dot.muted { background: var(--text-muted); opacity: 0.5; }
.confluence-label {
    font-size: 0.85rem;
    color: var(--text-main);
    flex: 1;
}
.confluence-active-tag {
    font-size: 0.65rem;
    color: var(--electric-blue);
    background: var(--electric-blue-muted);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}
.confluence-verdict {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}
.confluence-verdict.aligned {
    background: rgba(0, 255, 136, 0.08);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.2);
}
.confluence-verdict.mixed {
    background: rgba(255, 170, 0, 0.08);
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.2);
}
.confluence-verdict.conflicting {
    background: rgba(255, 51, 102, 0.08);
    color: var(--vivid-red);
    border: 1px solid rgba(255, 51, 102, 0.2);
}

/* ==== EXPLAIN BUTTON ==== */
.btn-explain {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 16px;
    padding: 10px 16px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--electric-blue);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-explain:hover {
    background: rgba(0, 229, 255, 0.15);
    border-color: var(--electric-blue);
    transform: translateY(-1px);
}
.btn-explain i { font-size: 1.1rem; }

/* ==== RISK CALCULATOR ==== */
.risk-calc-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.risk-input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.risk-input-group label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.risk-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 0 12px;
    transition: border-color 0.2s;
}
.risk-input-wrap:focus-within {
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 2px var(--electric-blue-muted);
}
.risk-prefix, .risk-suffix {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}
.risk-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-white);
    font-size: 1rem;
    font-family: inherit;
    padding: 10px 8px;
    width: 100%;
    -moz-appearance: textfield;
    appearance: textfield;
}
.risk-input-wrap input::-webkit-inner-spin-button,
.risk-input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.risk-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 4px 0;
}
.risk-output {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.risk-output-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.risk-output-row span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.risk-output-row strong {
    font-size: 0.95rem;
    font-family: var(--font-heading);
    color: var(--text-white);
}
.risk-lot-highlight {
    color: var(--electric-blue) !important;
    font-size: 1.1rem !important;
}

/* ==== WATCHLIST VIEW ==== */
.watchlist-layout {
    padding: 32px 40px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
}
.watchlist-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.watchlist-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.watchlist-header p { margin: 0; flex: 1; }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }

.watchlist-table-wrap {
    padding: 0;
    overflow-x: auto;
    border-radius: var(--border-radius);
}
.watchlist-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.watchlist-table th {
    padding: 14px 16px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
}
.watchlist-table td {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    white-space: nowrap;
}
.watchlist-table tbody tr {
    cursor: pointer;
    transition: background 0.15s;
}
.watchlist-table tbody tr:hover {
    background: rgba(0, 229, 255, 0.04);
}
.watchlist-table tbody tr:last-child td { border-bottom: none; }

.wl-pair-cell {
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-heading);
}
.wl-signal-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wl-signal-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.wl-signal-dot.bullish { background: var(--neon-green); }
.wl-signal-dot.bearish { background: var(--vivid-red); }
.wl-signal-dot.neutral { background: var(--text-muted); }
.wl-score-bar {
    display: flex;
    align-items: center;
    gap: 8px;
}
.wl-score-track {
    width: 48px;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
}
.wl-score-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s;
}
.wl-loading-row td {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.watchlist-disclaimer {
    font-size: 0.75rem;
    margin-top: 16px;
    text-align: center;
}
@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .watchlist-layout { padding: 20px 16px; }
    .watchlist-header { flex-direction: column; align-items: flex-start; }
}

/* ==== SESSION CLOCK BADGE ==== */
.session-clock {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.session-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.4;
    transition: opacity 0.3s;
}
.session-badge.active { opacity: 1; }
.session-badge.tokyo { background: rgba(255, 107, 107, 0.15); color: #ff6b6b; }
.session-badge.tokyo.active { background: rgba(255, 107, 107, 0.25); box-shadow: 0 0 8px rgba(255, 107, 107, 0.2); }
.session-badge.london { background: rgba(54, 162, 235, 0.15); color: #36a2eb; }
.session-badge.london.active { background: rgba(54, 162, 235, 0.25); box-shadow: 0 0 8px rgba(54, 162, 235, 0.2); }
.session-badge.new-york { background: rgba(0, 229, 255, 0.12); color: var(--electric-blue); }
.session-badge.new-york.active { background: rgba(0, 229, 255, 0.2); box-shadow: 0 0 8px rgba(0, 229, 255, 0.2); }
.session-badge.sydney { background: rgba(0, 255, 136, 0.12); color: var(--neon-green); }
.session-badge.sydney.active { background: rgba(0, 255, 136, 0.2); box-shadow: 0 0 8px rgba(0, 255, 136, 0.2); }

/* ==== CUSTOM DROPDOWN ==== */
.custom-dropdown { position: relative; user-select: none; cursor: pointer; }
.dropdown-selected {
    display: flex; align-items: center; gap: 8px; padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm); color: var(--text-main); font-size: 0.9rem; transition: all 0.2s;
}
.dropdown-selected:hover { background: rgba(255, 255, 255, 0.1); }
.custom-dropdown.open .dropdown-selected { background: var(--panel-bg-hover); border-color: var(--electric-blue); }
.dropdown-menu {
    position: absolute; bottom: 100%; left: 0; margin-bottom: 8px; width: 100%;
    background: var(--panel-bg); border: 1px solid var(--border-color); border-radius: var(--border-radius-sm);
    padding: 6px; display: none; flex-direction: column; box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5); z-index: 1000;
}
.custom-dropdown.open .dropdown-menu { display: flex; }
.dropdown-item { padding: 10px 12px; display: flex; align-items: center; gap: 10px; border-radius: 6px; font-size: 0.9rem; transition: background 0.2s; }
.dropdown-item:hover { background: rgba(255, 255, 255, 0.08); }


/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 1024px) {
    .market-content { flex-direction: column; }
    .chart-wrapper { height: 400px; flex: none; }
    .market-sidebar { flex-direction: column; flex-wrap: nowrap; width: 100%; padding-right: 0; }
    .market-sidebar > * { flex: 1; min-width: 100%; }
}

@media (max-width: 768px) {
    .chart-wrapper { height: 320px; }
    .market-sidebar { padding: 0; }
    .sidebar { position: fixed; transform: translateX(-100%); width: 280px; }
    .sidebar.open { transform: translateX(0); }
    .app-bar { display: flex; }
    .mobile-close-btn { display: block !important; background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; }
    .mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 90; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .mobile-overlay.active { opacity: 1; pointer-events: all; }
    
    .chat-message { max-width: 95%; }
    .market-toolbar { flex-direction: column; height: auto; gap: 12px; align-items: stretch; }
    .asset-selector { justify-content: space-between; }
    .wallet-layout { padding: 16px; }
    .copy-grid { gap: 16px; grid-template-columns: 1fr; }
    .trader-card { padding: 18px; }

    /* Pair context bar: compact on mobile */
    .pair-context-bar { gap: 6px; padding: 6px 10px; flex-wrap: nowrap; }
    .pcb-label { display: none; }
    .pcb-price { font-size: 0.85rem; }
    .pcb-select { font-size: 0.8rem; padding: 4px 22px 4px 8px; }
    .pcb-sentiment { display: none; }
    .pcb-divider { display: none; }
    .pcb-market-btn { padding: 5px 8px; font-size: 0.72rem; }
    .pcb-market-btn i { display: none; }
    #widget-signal { font-size: 0.6rem; padding: 2px 5px; white-space: nowrap; }

    /* Chat input area: tighter on mobile, respect iOS home indicator / Android gesture bar */
    .chat-input-area { padding: 8px 0 max(16px, env(safe-area-inset-bottom)); }
    .chat-disclaimer { margin-top: 6px; font-size: 0.65rem; }

    /* Chat title bar */
    .chat-title-bar { padding: 8px 0; gap: 8px; }
    .ctb-new-chat { padding: 5px 10px; font-size: 0.78rem; }
    .ctb-title { font-size: 0.82rem; }

    /* Watchlist table: compact on mobile */
    .watchlist-table th, .watchlist-table td { padding: 10px 8px; font-size: 0.8rem; }
    .watchlist-layout { padding: 16px; }
    .watchlist-header h2 { font-size: 1.3rem; }
}

/* Telegram feed basic styles */
.tg-post { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; gap: 8px; }
.tg-post-photo { width: 100%; border-radius: 8px; max-height: 200px; object-fit: cover; }
.tg-post-text { font-size: 0.85rem; line-height: 1.5; color: var(--text-main); }
.tg-post-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* ==== NEWS & EVENTS PANEL ==== */
.news-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.news-tab-pills {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.04);
    border-radius: 6px;
    padding: 2px;
}
.news-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.news-tab:hover { color: var(--text-white); }
.news-tab.active {
    background: rgba(0, 229, 255, 0.12);
    color: var(--electric-blue);
}
.news-tab-content { display: none; }
.news-tab-content.active { display: block; }

.news-events-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.news-loading i { font-size: 1.2rem; color: var(--electric-blue); }

/* Event Card */
.news-event-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    transition: all 0.2s;
    animation: fadeUp 0.3s ease both;
}
.news-event-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.08);
}

/* Impact badge dot */
.news-impact {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}
.news-impact.high { background: #ff3b30; box-shadow: 0 0 6px rgba(255, 59, 48, 0.4); }
.news-impact.medium { background: #ffaa00; box-shadow: 0 0 6px rgba(255, 170, 0, 0.3); }
.news-impact.low { background: rgba(255,255,255,0.2); }

.news-event-body {
    flex: 1;
    min-width: 0;
}
.news-event-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.news-currency-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--electric-blue);
    letter-spacing: 0.04em;
}
.news-impact-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-impact-label.high { color: #ff3b30; }
.news-impact-label.medium { color: #ffaa00; }
.news-impact-label.low { color: var(--text-muted); }

.news-event-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-event-data {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.news-data-item {
    display: flex;
    gap: 3px;
}
.news-data-item strong {
    color: var(--text-main);
    font-weight: 600;
}
.news-data-item.actual strong { color: var(--electric-blue); }

/* Countdown */
.news-countdown {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
    text-align: right;
    min-width: 50px;
}
.news-countdown.upcoming { color: #ffaa00; }
.news-countdown.imminent { color: #ff3b30; animation: pulse 1.5s infinite; }
.news-countdown.released { color: var(--text-muted); font-weight: 500; }

/* Empty state */
.news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}
.news-empty i { font-size: 1.5rem; opacity: 0.5; }

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

@keyframes spin { to { transform: rotate(360deg); } }
.ph-spin { animation: spin 1s linear infinite; display: inline-block; }