/* Futures Tracker PRO - Enterprise Terminal Theme v7.0 */
:root {
    --bg-primary: #04040a;
    --bg-secondary: #0a0a14;
    --bg-card: rgba(18, 18, 28, 0.75);
    --bg-card-hover: rgba(26, 26, 42, 0.95);
    --border-color: rgba(255, 255, 255, 0.06);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.4);
    --long-color: #10b981;
    --short-color: #f43f5e;
    --long-bg: rgba(16, 185, 129, 0.1);
    --short-bg: rgba(244, 63, 94, 0.1);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-data: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-main);
    background: radial-gradient(circle at 50% -20%, #1a1a3a 0%, #04040a 100%);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.main-container {
    max-width: 1700px;
    margin: 0 auto;
    padding: 24px;
}

/* ==================== HEADER ==================== */
.header {
    background: rgba(4, 4, 10, 0.9);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 28px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

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

.logo-icon {
    font-size: 1.8rem;
}

.logo-text h1 {
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text p {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.premium-badge {
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    box-shadow: 0 0 15px var(--accent-glow);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 900;
    color: white;
}

.premium-badge-small {
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    color: white;
    margin-left: 4px;
}

.header-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 8px;
    min-width: 60px;
}

.stat-value {
    font-family: var(--font-data);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Connection Status */
.connection-status {
    flex-direction: row !important;
    gap: 8px;
}

.connection-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.connection-dot.connected {
    background: var(--long-color);
    box-shadow: 0 0 8px var(--long-color);
    animation: pulse 2s infinite;
}

.connection-dot.connecting {
    background: #fbbf24;
    animation: blink 1s infinite;
}

.connection-dot.disconnected {
    background: var(--short-color);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* ==================== TOP CONTROLS ==================== */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.exchange-tabs {
    display: flex;
    gap: 8px;
}

.exchange-tab {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exchange-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.view-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.control-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: white;
}

/* ==================== QUICK STATS PANEL ==================== */
.quick-stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.quick-stat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: 0.2s;
}

.quick-stat:hover {
    border-color: var(--accent-primary);
}

.quick-stat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.quick-stat-icon {
    font-size: 1.2rem;
}

.quick-stat-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.quick-stat-content {
    font-family: var(--font-data);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.quick-stat-content .bullish {
    color: var(--long-color);
}

.quick-stat-content .bearish {
    color: var(--short-color);
}

/* Sentiment bar */
.sentiment-bar {
    height: 6px;
    background: var(--short-color);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.sentiment-bar-fill {
    height: 100%;
    background: var(--long-color);
    transition: width 0.5s;
}

/* ==================== FILTERS ==================== */
.filters-section {
    margin-bottom: 24px;
}

.filters-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: white;
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.search-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

#searchInput {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    width: 160px;
}

#searchInput:focus {
    border-color: var(--accent-primary);
}

#searchClear {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}

/* ==================== LOADING ==================== */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    gap: 16px;
}

.loader {
    display: flex;
    gap: 8px;
}

.loader-ring {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    animation: loaderBounce 1.4s ease-in-out infinite;
}

.loader-ring:nth-child(1) {
    animation-delay: 0s;
}

.loader-ring:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-ring:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loaderBounce {

    0%,
    80%,
    100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ==================== PAIRS GRID ==================== */
.pairs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.pair-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.pair-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

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

.coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.coin-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.coin-name {
    display: flex;
    flex-direction: column;
}

.symbol {
    font-size: 1rem;
    font-weight: 800;
}

.volume {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-data);
}

.rank-pill {
    font-size: 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    margin-right: 6px;
}

.price-info {
    text-align: right;
}

.price {
    font-family: var(--font-data);
    font-size: 1.1rem;
    font-weight: 700;
}

.price-text {
    font-family: var(--font-data);
    font-size: 1.1rem;
    font-weight: 700;
}

.change {
    font-size: 0.8rem;
    font-weight: 700;
}

.bullish {
    color: var(--long-color);
}

.bearish {
    color: var(--short-color);
}

.bias-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin: 12px 0;
    display: flex;
    overflow: hidden;
}

.bias-fill-bid {
    background: var(--long-color);
    transition: width 0.5s;
}

.bias-fill-ask {
    background: var(--short-color);
    transition: width 0.5s;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.mini-signals {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trend-label {
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

.trend-label.bullish {
    background: var(--long-bg);
    color: var(--long-color);
}

.trend-label.bearish {
    background: var(--short-bg);
    color: var(--short-color);
}

.vol-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-data);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }

    .header-stats {
        order: -1;
        width: 100%;
        justify-content: center;
    }

    .top-controls {
        flex-direction: column;
    }

    .pairs-grid {
        grid-template-columns: 1fr;
    }

    .quick-stats-panel {
        grid-template-columns: 1fr 1fr;
    }
}

/* ==================== EXPAND AREA ==================== */
.expand-area {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    border-top: 0 solid var(--border-color);
}

.expand-area.active {
    max-height: 350px;
    padding-top: 16px;
    margin-top: 12px;
    border-top-width: 1px;
}

.expand-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.expand-stat {
    text-align: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.expand-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.expand-value {
    font-family: var(--font-data);
    font-size: 0.9rem;
    font-weight: 700;
}

.mini-chart-container {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.expand-detail-btn {
    width: 100%;
    background: var(--accent-primary);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.expand-detail-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.symbol {
    cursor: pointer;
    transition: 0.2s;
}

.symbol:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

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

.toast {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-primary);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    animation: toastSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    max-width: 320px;
}

.toast.toast-whale {
    border-left-color: #8b5cf6;
}

.toast.toast-liq {
    border-left-color: var(--short-color);
}

.toast.toast-success {
    border-left-color: var(--long-color);
}

.toast-icon {
    font-size: 1.2rem;
    margin-right: 10px;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 500;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

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

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

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

/* ==================== SKELETON LOADING ==================== */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-card) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            var(--bg-card) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite ease-in-out;
    border-radius: 12px;
    min-height: 150px;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ==================== TOOLTIPS ==================== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    background: #1e1e2d;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ==================== MICRO-ANIMATIONS ==================== */
@keyframes pricePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.price-flash {
    animation: pricePulse 0.3s ease;
}

/* Button press feedback */
.filter-btn:active,
.control-btn:active,
.expand-detail-btn:active {
    transform: scale(0.95);
}

/* Smooth card transitions */
.pair-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease,
        border-color 0.2s ease;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Keyboard navigation highlight */
.pair-card.keyboard-focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--short-color);
}

.modal-body {
    padding: 24px;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

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

/* ==================== UPGRADE MODAL ==================== */
.upgrade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.upgrade-modal {
    background: var(--bg-card);
    border: 2px solid var(--long-color);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.2);
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

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

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

.upgrade-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: 0.2s;
}

.upgrade-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.upgrade-modal-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 20px;
}

.upgrade-modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.upgrade-modal-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.6;
}

.upgrade-modal-features {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-modal-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--long-color);
}

.upgrade-modal-features li::before {
    content: '✓';
    color: var(--long-color);
    font-size: 1.2rem;
    font-weight: 900;
}

.upgrade-modal-price {
    text-align: center;
    margin: 24px 0;
}

.upgrade-modal-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--long-color);
}

.upgrade-modal-price-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.upgrade-modal-discount {
    display: inline-block;
    background: var(--short-bg);
    color: var(--short-color);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 8px;
}

.upgrade-modal-buttons {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.upgrade-modal-btn {
    flex: 1;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.upgrade-modal-btn-primary {
    background: var(--long-color);
    color: white;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.upgrade-modal-btn-primary:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.4);
}

.upgrade-modal-btn-secondary {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
}

.upgrade-modal-btn-secondary:hover {
    border-color: var(--long-color);
    color: var(--long-color);
}

.upgrade-modal-guarantee {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ==================== LOCKED FEATURE BADGE ==================== */
.locked-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(244, 63, 94, 0.15);
    color: var(--short-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.locked-overlay {
    position: relative;
    cursor: pointer;
}

.locked-overlay::after {
    content: '🔒';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.locked-overlay:hover::after {
    opacity: 0.8;
}

/* ==================== UPGRADE HEADER BUTTON ==================== */
.upgrade-header-btn {
    background: linear-gradient(135deg, var(--long-color), #3b82f6);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.upgrade-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ==================== FREE TIER BANNER ==================== */
.free-tier-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1));
    border: 2px solid var(--long-color);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.free-tier-banner-text {
    flex: 1;
}

.free-tier-banner-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.free-tier-banner-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.free-tier-banner-btn {
    background: var(--long-color);
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: 0.3s;
    white-space: nowrap;
}

.free-tier-banner-btn:hover {
    background: #059669;
    transform: scale(1.05);
}

/* ==================== TIER BADGE ==================== */
.tier-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tier-free {
    background: rgba(100, 116, 139, 0.2);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

.tier-pro {
    background: rgba(16, 185, 129, 0.2);
    color: var(--long-color);
    border: 1px solid var(--long-color);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.tier-elite {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(59, 130, 246, 0.2));
    color: #a78bfa;
    border: 1px solid #8b5cf6;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.neutral-stat {
    color: #3b82f6 !important;
    /* Blue for transfers */
}

/* ==================== PROFESSIONAL FOOTER ==================== */
.site-footer {
    background: linear-gradient(180deg, transparent, rgba(4, 4, 10, 0.95));
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 40px 24px 30px;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
}

.footer-links a:hover {
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.1);
}

.footer-info {
    text-align: center;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.75rem !important;
    color: var(--text-muted);
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer-links {
        gap: 16px;
    }

    .footer-links a {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}
/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

/* ==================== LIQUIDATION FEED ==================== */
.liquidation-feed {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 300px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.liquidation-feed.minimized {
    height: 48px;
    overflow: hidden;
}

.feed-header {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

.feed-toggle {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.liquidation-feed.minimized .feed-toggle {
    transform: rotate(-90deg);
}

.feed-content {
    max-height: 300px;
    overflow-y: auto;
}

.liq-item {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideInLeft 0.3s ease;
}

.liq-item.long { border-left: 3px solid var(--short-color); }
.liq-item.short { border-left: 3px solid var(--long-color); }

@keyframes slideInLeft {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==================== WHALE FEED ==================== */
.whale-feed {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    width: 320px;
    z-index: 100;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.whale-feed.minimized {
    height: 48px;
    overflow: hidden;
}

.whale-feed.minimized .feed-toggle {
    transform: rotate(-90deg);
}

.whale-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    animation: slideInRight 0.3s ease;
    background: rgba(0,0,0,0.2);
    margin: 4px 8px;
    border-radius: 8px;
}

.whale-item.liquidation {
    border-left: 3px solid #f59e0b;
}

.whale-item.trade {
    border-left: 3px solid #3b82f6;
}

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

.whale-item .whale-symbol {
    font-weight: 700;
    color: var(--text-primary);
}

.whale-item .whale-value {
    font-weight: 700;
    font-size: 1rem;
    color: #3b82f6;
}

.whale-item .whale-side {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.whale-item .whale-side.BUY {
    background: var(--long-bg);
    color: var(--long-color);
}

.whale-item .whale-side.SELL {
    background: var(--short-bg);
    color: var(--short-color);
}

@keyframes slideInRight {
    from { transform: translateX(20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==================== MULTI CHART GRID ==================== */
.multi-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
    margin-top: 24px;
    min-height: 400px;
}

.empty-grid-msg {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.02);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    text-align: center;
}

.action-btn {
    margin-top: 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.action-btn:hover {
    background: #2563eb;
    box-shadow: 0 0 15px var(--accent-glow);
}

/* ==================== SCROLL TO TOP ==================== */
#scrollTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 12px var(--accent-glow);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#scrollTop:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px var(--accent-glow);
}

/* ==================== SUDDEN MOVEMENTS ==================== */
.duration-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.duration-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.duration-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 0 12px var(--accent-glow);
}

.movement-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

