.nav-tab {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: #9ca3af;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    white-space: nowrap;
}
.nav-tab:hover { color: #e5e7eb; }
.nav-tab.active {
    color: #2979ff;
    border-bottom-color: #2979ff;
}

.period-btn, .chart-type-btn, .horizon-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: #9ca3af;
    background: #1e2a4a;
    border-radius: 0.25rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.period-btn:hover, .chart-type-btn:hover, .horizon-btn:hover {
    background: #16213e;
    color: #e5e7eb;
}
.period-btn.active, .chart-type-btn.active, .horizon-btn.active {
    background: #2979ff;
    color: white;
}

.toast {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    animation: slideIn 0.3s ease;
    max-width: 400px;
}
.toast-success { background: #064e3b; color: #6ee7b7; border: 1px solid #065f46; }
.toast-error { background: #7f1d1d; color: #fca5a5; border: 1px solid #991b1b; }
.toast-alert { background: #78350f; color: #fde68a; border: 1px solid #92400e; }

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

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0f0f1a; }
::-webkit-scrollbar-thumb { background: #374151; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #4b5563; }

/* Horizontal scrollbar for ticker */
.scrollbar-thin::-webkit-scrollbar { height: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #374151; border-radius: 2px; }

/* Signal pulse animation */
@keyframes signalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
.signal-active {
    animation: signalPulse 2s ease-in-out infinite;
}

/* Notification bell shake */
@keyframes bellShake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(12deg); }
    50% { transform: rotate(0); }
    75% { transform: rotate(-12deg); }
}
.bell-shake {
    animation: bellShake 0.4s ease-in-out;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---- Mobile Responsive ---- */

/* Nav tabs: horizontal scroll on small screens */
@media (max-width: 639px) {
    .nav-tab {
        padding: 0.5rem 0.65rem;
        font-size: 0.75rem;
    }
    .period-btn, .chart-type-btn, .horizon-btn {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
    .toast {
        max-width: calc(100vw - 2rem);
        font-size: 0.75rem;
    }
}
