﻿.btn.header-item.noti-icon:active,
.btn.header-item.noti-icon:focus,
.btn.header-item.noti-icon.active {
    outline: none;
    box-shadow: none;
    border: none;
}

/*.grecaptcha-badge {
    display: none !important;
}*/

.text-muted {
    color: gray !important;
}

.search-results {
    /* position: absolute; */
    width: 100%; /* Ensure it takes the width of its container */
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    /* background-color: #2a2d35; /* from tckrz */
    /* border: 1px solid rgba(255, 255, 255, 0.1); /* from tckrz */
    /* For Charts.aspx, let's use a slightly different background to match its theme if needed, or keep tckrz style */
    background-color: #0f1015;
    border: 1px solid var(--bs-secondary); /* Or rgba(255,255,255,0.1) */
}

.search-result-item {
    cursor: pointer;
    /* background-color: transparent; /* Ensure it inherits dropdown background */
    /* color: var(--bs-light); /* Ensure text is light on dark background */
}

    .search-result-item:hover {
        background-color: var(--bs-gray-700); /* Darker hover for dark theme */
    }

.search-results::-webkit-scrollbar {
    width: 8px;
}

.search-results::-webkit-scrollbar-track {
    background: #0a0a0f;
}

.search-results::-webkit-scrollbar-thumb {
    background: #232531;
    border-radius: 4px;
}

    .search-results::-webkit-scrollbar-thumb:hover {
        background: #3a3a45;
    }

#searchResults .list-group .search-result-item.selected {
    background-color: #007bff !important; /* A common Bootstrap primary blue, ensure it applies */
    color: #ffffff !important; /* Ensure parent text color is white */
}

    #searchResults .list-group .search-result-item.selected .ticker-symbol,
    #searchResults .list-group .search-result-item.selected .company-name {
        color: #ffffff !important; /* Ensure child text elements are also white */
    }

.ticker-symbol {
    font-weight: 500;
    color: var(--bs-light); /* Ensure light text */
}

.company-name {
    color: var(--bs-gray-400); /* Lighter secondary color for dark theme */
}

* {
    box-sizing: border-box;
}

body {
    background-color: #0a0a0f;
    color: #e0e6ed;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.navbar {
    background-color: #232531 !important;
    /*border-bottom: 1px solid #1a1a25;*/
    height: 70px;
    flex-shrink: 0;
}

.navbar-brand {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: clamp(16px, 2.5vw, 20px);
    margin-right: 0;
}

.main-content {
    height: calc(100dvh - 102px); /* 70px navbar + 32px marquee */
    background-color: #0a0a0f;
    overflow: hidden;
}

.main-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.main-panel {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.chart-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    /*padding-bottom: 8px;*/
    min-height: 0;
}

.sidebar-container {
    --replay-dom-ladder-width: 290px;
    --replay-dom-sidebar-base-width: 500px;
    --replay-dom-order-panel-width: 450px;
    width: 500px;
    min-width: 250px;
    max-width: 500px;
    position: relative;
    flex-shrink: 0;
    background-color: #0f1015;
}

.sidebar-container.dom-mode-active {
    width: calc(var(--replay-dom-sidebar-base-width, 500px) + var(--replay-dom-ladder-width, 290px));
    max-width: none;
}

.sidebar-container.dom-mode-active .tab-content-area {
    flex: 0 0 var(--replay-dom-order-panel-width, 450px);
    width: var(--replay-dom-order-panel-width, 450px);
}

.resize-handle {
    width: 3px;
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    cursor: col-resize;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    z-index: 10;
    opacity: 0.6;
    transition: all 0.2s ease;
}

    .resize-handle:hover {
        opacity: 1;
        box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
    }

.sidebar {
    height: 100%;
    overflow-y: auto;
    position: relative;
    display: flex;
}

.tab-content-area {
    flex: 1;
    background-color: #0f1015;
    overflow-y: auto;
    min-width: 0;
}

.vertical-tabs {
    width: 50px;
    background-color: #1a1a25;
    border-left: 1px solid #2a2a35;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.vertical-tab-btn {
    width: 100%;
    height: 50px;
    background: none;
    border: none;
    color: #787b86;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    margin-bottom: 0;
}

    .vertical-tab-btn:hover {
        background-color: rgba(0, 255, 136, 0.05);
        color: #00ff88;
    }

        .vertical-tab-btn:hover::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #00ff88, #00d4ff);
            opacity: 0.7;
        }

    .vertical-tab-btn.active {
        background-color: rgba(0, 255, 136, 0.1);
        color: #00ff88;
    }

        .vertical-tab-btn.active::before {
            content: '';
            position: absolute;
            right: 0;
            top: 0;
            width: 3px;
            height: 100%;
            background: linear-gradient(180deg, #00ff88, #00d4ff);
        }

    .vertical-tab-btn i {
        font-size: 16px;
    }

.vertical-tab-tooltip {
    position: absolute;
    top: 50%;
    right: calc(100% + 10px);
    z-index: 20;
    width: max-content;
    max-width: 210px;
    padding: 9px 11px;
    border: 1px solid #566173;
    border-radius: 4px;
    background: #273142;
    color: #f8fafc;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.18);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translate(4px, -50%);
    transition: opacity 0.16s ease, transform 0.16s ease;
    visibility: hidden;
}

    .vertical-tab-tooltip::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -6px;
        width: 10px;
        height: 10px;
        border-top: 1px solid #566173;
        border-right: 1px solid #566173;
        background: #273142;
        transform: translateY(-50%) rotate(45deg);
    }

.vertical-tab-tooltip-title,
.vertical-tab-tooltip-hint {
    display: block;
}

.vertical-tab-tooltip-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.vertical-tab-tooltip-hint {
    margin-top: 3px;
    color: #d1d5db;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
    white-space: normal;
}

.vertical-tab-btn:hover .vertical-tab-tooltip,
.vertical-tab-btn:focus-visible .vertical-tab-tooltip {
    opacity: 1;
    transform: translate(0, -50%);
    visibility: visible;
}

.tab-pane {
    display: none;
}

    .tab-pane.active {
        display: block;
    }

.watchlist-header {
    background-color: #1a1a25;
    padding: 12px 16px;
    border-bottom: 1px solid #2a2a35;
    font-weight: 500;
    font-size: clamp(11px, 2vw, 13px);
    color: #e0e6ed;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 50px; /* Match the vertical tab button height */
    box-sizing: border-box; /* Include padding in height calculation */
}


.watchlist-item {
    padding: 8px 16px;
    border-bottom: 1px solid #1a1a25;
    border-left: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    font-size: clamp(11px, 2vw, 13px);
}

    .watchlist-item:hover {
        background-color: rgba(0, 255, 136, 0.05);
        border-left-color: #00ff88;
    }

    .watchlist-item.active {
        background-color: rgba(0, 255, 136, 0.1);
        border-left-color: #00ff88;
    }

.symbol-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.symbol-text {
    color: #e0e6ed;
    font-weight: 500;
    font-size: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-info {
    text-align: right;
    min-width: 60px;
    flex-shrink: 0;
}

.price {
    font-weight: 500;
    margin-bottom: 2px;
    font-size: inherit;
    color: #ffffff;
}

.change {
    font-size: clamp(10px, 1.8vw, 11px);
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.positive {
    color: #00ff88;
    text-shadow: 0 0 6px rgba(0, 255, 136, 0.3);
}

.negative {
    color: #ff3366;
    text-shadow: 0 0 6px rgba(255, 51, 102, 0.3);
}

/* Navbar responsive elements */
.navbar-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.search-form {
    /*flex: 1;*/
    max-width: 400px;
    min-width: 150px;
    position: relative;
}


.search-trigger {
    background: #1a1a25;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 12px 50px 12px 45px;
    font-size: clamp(12px, 2vw, 14px);
    border-radius: 2px;
    width: 360px;
    height: 40px;
    cursor: pointer;
}

    .search-trigger:focus {
        outline: none;
        border-color: #00ff88;
    }

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 13px;
    z-index: 5;
    pointer-events: none;
}

.search-kbd {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 5px 6px 0;
    line-height: 1;
    color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    pointer-events: none;
}

/* Nav greeting (welcome/username) */
.nav-greeting {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: right;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
}

.nav-greeting-label {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 500;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.nav-greeting-name {
    font-size: 15px;
    color: #e0e6ed;
    font-weight: 600;
    letter-spacing: -0.1px;
}

.nav-greeting-name .welcomeach {
    display: none;
}

.nav-greeting::after {
    content: '';
    position: absolute;
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.current-ticker-info {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2vw, 16px);
    flex-shrink: 0;
}

.ticker-name {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #e0e6ed;
}

.ticker-price {
    font-size: clamp(14px, 3vw, 18px);
    font-weight: 600;
    color: #e0e6ed;
}

.ticker-change {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 500;
}

/* Simulator responsive styles */
.simulator-content {
    padding: 0;
}

.simulator-toggle-row {
    padding: 12px;
    display: flex;
    gap: 8px;
}

.simulator-toggle-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
}

    .simulator-toggle-btn.active {
        background-color: #1a1a25;
        color: #e0e6ed;
        border-color: #22d3ee;
    }

.simulator-row {
    padding: 12px 16px;
}

.balance-hero {
    text-align: center;
    padding: 8px 12px 4px;
}

.balance-hero .simulator-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 2px;
}

.balance-hero-value {
    font-size: clamp(24px, 5vw, 32px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.balance-hero-value .balance-cents {
    font-size: 0.55em;
    opacity: 0.5;
    vertical-align: super;
}

.unlock-cta {
    margin-top: 8px;
}

.unlock-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    padding: 5px 14px;
    transition: border-color 0.2s;
}

.unlock-cta-text {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unlock-cta-link:hover {
    border-color: rgba(0, 255, 136, 0.6);
}

.pnl-position-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 8px 12px;
}

.pnl-position-col {
    padding: 8px;
}

.pnl-position-col + .pnl-position-col {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.position-detail {
    font-size: 11px;
    color: #787b86;
    margin-top: 2px;
}

.simulator-label {
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    margin-bottom: 4px;
}

.simulator-value {
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 600;
    color: #ffffff;
    word-break: break-all;
}

    .simulator-value.small {
        font-size: clamp(10px, 2vw, 12px);
        margin-top: 2px;
    }

.chart-analyzer-row {
    /*padding: 12px 12px;*/
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    padding-bottom: 8px;
    border-bottom: none;
}

/*        .chart-analyzer-btn {
            width: 100%;
            background-color: #2a2a35;
            border: 1px solid #2a2a35;
            color: #e0e6ed;
            padding: 12px;
            border-radius: 2px;
            font-size: clamp(11px, 2vw, 13px);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

            .chart-analyzer-btn:hover {
                background-color: #3a3a45;
                border-color: #3a3a45;
            }*/
/* Keyframes for the gradient animation */
@keyframes rainbow-chase {
    0% {
        background-position: 0% 50%;
    }

    100% {
        /* Moves the gradient's start position to the end, creating a loop */
        background-position: 400% 50%;
    }
}

/* --- Main Button Styles (Updated) --- */
.chart-analyzer-btn {
    /* Kept most original styles */
    min-height: 45px;
    width: 100%;
    color: #e0e6ed;
    padding: 12px; /* Reverted padding for rectangular shape */
    font-size: clamp(11px, 2vw, 13px); /* Reverted font-size */
    font-family: sans-serif; /* Added for better text rendering */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* --- Styles added for the effect --- */
    position: relative; /* Establishes positioning context for pseudo-elements */
    z-index: 1; /* Ensures button content is on top */
    background: transparent; /* Button itself has no background fill */
    border: none; /* The visual border is created by the pseudo-elements */
    border-radius: 2px; /* UPDATED: Changed to 2px as requested */
    /*overflow: hidden; */ /* Hides the parts of the pseudo-elements that go outside the border-radius */
    /*display: flex !important;
    flex-direction: column !important;
    align-items: center;*/ /* or flex-start for left-align */
    /*justify-content: center;*/
    display: block !important;
    text-align: center; /* or left */
}

    /* --- Inner Background Layer (creates the solid background and the "outline") --- */
    .chart-analyzer-btn::after {
        content: '';
        position: absolute;
        z-index: -1; /* Sits behind the button's text/icon */
        /* Inset by 1px to create the "border" thickness */
        inset: 1px;
        border-radius: inherit; /* Inherits the button's 2px radius */
        /* Original background color */
        background-color: #2a2a35;
        /* Transition for the background color change on hover */
        transition: background-color 0.2s ease;
    }

    /* --- Animated Gradient Layer (the rainbow) --- */
    .chart-analyzer-btn::before {
        content: '';
        position: absolute;
        z-index: -2; /* Sits behind the inner background layer */
        inset: 0;
        border-radius: inherit; /* Inherits the button's 2px radius */
        /* The rainbow gradient that will be animated */
        background: linear-gradient( 90deg, #60a5fa, #a78bfa, #f87171, #fb923c, #facc15, #4ade80, #60a5fa );
        /* Make the background much wider than the button to allow for movement */
        background-size: 400% 100%;
        /* Hidden by default */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        /* Set animation that will be un-paused on hover */
        animation: rainbow-chase 4s linear infinite;
        animation-play-state: paused; /* Animation is paused by default */
    }

    /* --- HOVER STATES --- */

    /* --- HOVER & SCRIPT-INVOKED STATES --- */

    /* 1. Show the animated gradient on hover OR when the .force-hover class is present */
    .chart-analyzer-btn:hover::before,
    .chart-analyzer-btn.force-hover::before {
        opacity: 1;
        animation-play-state: running; /* Play the animation */
    }

    /* 2. Change the inner background color on hover OR when the .force-hover class is present */
    .chart-analyzer-btn:hover::after,
    .chart-analyzer-btn.force-hover::after {
        background-color: #000000; /* Your original hover color */
    }






.trade-buttons-row {
    padding: 4px 12px;
    display: flex;
    gap: 8px;
    border-bottom: none;
}

.btn-buy-large, .btn-sell-large, .btn-reverse, .btn-flat, .chart-analyzer-btn, .simulator-toggle-btn {
    border: none;
    color: white;
    font-weight: 600 !important;
    padding: 8px;
    border-radius: 2px;
    flex: 1;
    cursor: pointer;
    font-size: clamp(12px, 2.5vw, 14px) !important;
    position: relative;
}

.hotkey-badge {
    position: absolute;
    top: 4px;
    right: 5px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 2px;
    background: rgba(0, 0, 0, 0.3);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.btn-buy-large, .btn-reverse {
    background: #22c55e;
}

    .btn-buy-large:hover, .btn-reverse:hover {
        background: #16a34a;
    }

.btn-sell-large, .btn-flat {
    background: #ef4444;
}

    .btn-sell-large:hover, .btn-flat:hover {
        background: #dc2626;
    }

.quantity-row {
    padding: 12px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #1a1a25;
    flex-wrap: wrap;
}

.quantity-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(12px, 2.5vw, 14px);
    width: 80px;
    min-width: 60px;
}

    .quantity-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.max-shares-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    white-space: nowrap;
}

    .max-shares-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
    }

    .max-shares-checkbox input[type="checkbox"]:checked {
        background-color: #00ff88;
        border-color: #00ff88;
    }

    .max-shares-checkbox input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #0a0a0f;
        font-size: 13px;
        font-weight: bold;
    }

.limit-orders-section {
    padding: 12px 12px;
}

.limit-orders-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.limit-orders-header {
    font-size: clamp(12px, 2.5vw, 14px);
    font-weight: 600;
    color: #e0e6ed;
    margin-bottom: 0;
}

.ladder-toggle-btn {
    align-items: center;
    background: transparent;
    border: 1px dashed #2f3442;
    border-radius: 4px;
    color: #7a8191;
    cursor: pointer;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    height: 28px;
    justify-content: center;
    letter-spacing: 0.6px;
    line-height: 1;
    min-width: 82px;
    padding: 0 10px;
    text-transform: uppercase;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ladder-toggle-btn:hover {
    border-color: #4b5565;
    color: #9ca3af;
}

.ladder-toggle-btn.active {
    background: rgba(6, 182, 212, 0.08);
    border-color: #0891b2;
    border-style: solid;
    color: #22d3ee;
}

.ladder-toggle-icon {
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    margin-top: -1px;
}

.ladder-toggle-text {
    line-height: 1;
}

.replay-dom-column {
    display: none;
    width: var(--replay-dom-ladder-width, 290px);
    min-width: var(--replay-dom-ladder-width, 290px);
    height: calc(100% - 10px);
    background: #0b0c11;
    border-left: 1px solid #1f2937;
    flex-direction: column;
    margin-bottom: 10px;
}

.sidebar-container.dom-mode-active .replay-dom-column {
    display: flex;
}

.replay-dom-header,
.replay-dom-row {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
}

.replay-dom-header {
    background: #11121a;
    border-bottom: 1px solid #1f2937;
    color: #787b86;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 7px 0;
    text-align: center;
    text-transform: uppercase;
}

.replay-dom-table {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-bottom: 38px;
    position: relative;
    scroll-padding-bottom: 38px;
}

.replay-dom-table::after {
    content: '';
    display: block;
    height: 30px;
}

.replay-dom-table::-webkit-scrollbar {
    width: 6px;
}

.replay-dom-table::-webkit-scrollbar-track {
    background: #0b0c11;
}

.replay-dom-table::-webkit-scrollbar-thumb {
    background: #2a2a35;
    border-radius: 2px;
}

.replay-dom-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    min-height: 24px;
}

.replay-dom-row.current-market {
    background: rgba(34, 211, 238, 0.12);
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.18);
}

.replay-dom-row.inserted-order-level {
    background: rgba(245, 158, 11, 0.08);
    box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.18), inset 0 -1px 0 rgba(245, 158, 11, 0.18);
}

.replay-dom-cell {
    align-items: center;
    display: flex;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 11px;
    justify-content: center;
    line-height: 1;
    min-width: 0;
    padding: 6px 4px;
    position: relative;
}

.replay-dom-price {
    background: rgba(255, 255, 255, 0.03);
    color: #d1d5db;
    font-weight: 800;
}

.replay-dom-price.above-market {
    color: #10b981;
}

.replay-dom-price.below-market {
    color: #ef4444;
}

.replay-dom-price.current-market {
    color: #f59e0b;
}

.replay-dom-price.inserted-order-level {
    color: #fbbf24;
}

.replay-dom-bid {
    color: #22c55e;
}

.replay-dom-ask {
    color: #ef4444;
}

.replay-dom-clickable {
    cursor: pointer;
}

.replay-dom-clickable:hover {
    background: rgba(255, 255, 255, 0.08);
}

.replay-dom-clickable.has-order:hover {
    background: transparent;
}

.replay-dom-clickable[data-hover-label] {
    color: #ffffff;
}

.replay-dom-clickable[data-hover-label]:not(.has-order)::after {
    align-items: center;
    border-radius: 2px;
    content: attr(data-hover-label);
    display: inline-flex;
    font-family: inherit;
    font-size: 9px;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0.4px;
    line-height: 1;
    min-width: 30px;
    padding: 4px 5px;
    position: absolute;
}

.replay-dom-bid[data-hover-label]::after {
    background: #16a34a;
    right: 6px;
}

.replay-dom-ask[data-hover-label]::after {
    background: #dc2626;
    left: 6px;
}

.replay-dom-order-indicator {
    align-items: center;
    border-radius: 2px;
    color: #ffffff;
    display: inline-flex;
    gap: 5px;
    font-size: 10px;
    font-weight: 800;
    justify-content: center;
    min-width: 26px;
    padding: 3px 5px;
    pointer-events: auto;
}

.replay-dom-order-indicator.buy {
    background: #16a34a;
}

.replay-dom-order-indicator.sell,
.replay-dom-order-indicator.stop {
    background: #dc2626;
}

.replay-dom-order-indicator:hover {
    cursor: grab;
    filter: brightness(1.15);
}

.replay-dom-dragging-order,
.replay-dom-dragging-order * {
    cursor: grabbing !important;
    user-select: none;
}

.replay-dom-drag-ghost {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
    opacity: 0.92;
    pointer-events: none;
    position: fixed;
    transform: translate3d(0, 0, 0);
    z-index: 9999;
}

.replay-dom-order-cancel {
    align-items: center;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 2px;
    display: inline-flex;
    font-size: 9px;
    font-weight: 900;
    height: 12px;
    justify-content: center;
    line-height: 1;
    text-transform: uppercase;
    width: 12px;
}

.replay-dom-scroll-indicator {
    align-items: center;
    background: rgba(2, 132, 199, 0.92);
    color: #ffffff;
    cursor: pointer;
    display: none;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    justify-content: center;
    padding: 6px;
}

.replay-dom-scroll-indicator.visible {
    display: flex;
}

.replay-dom-empty {
    color: #6b7280;
    font-size: 12px;
    padding: 20px 10px;
    text-align: center;
}

.replay-dom-zoom-bar {
    align-items: center;
    background: #0b0c11;
    border-top: 1px solid #1f2937;
    display: flex;
    flex-shrink: 0;
    gap: 7px;
    justify-content: center;
    padding: 7px 8px 8px;
}

.replay-dom-zoom-btn {
    align-items: center;
    background: #0f1118;
    border: 1px solid #263040;
    border-radius: 4px;
    color: #aeb6c4;
    cursor: pointer;
    display: inline-flex;
    font-size: 11px;
    height: 28px;
    justify-content: center;
    width: 30px;
}

.replay-dom-zoom-btn:hover:not(:disabled) {
    background: #111827;
    border-color: #164e63;
    color: #22d3ee;
}

.replay-dom-zoom-btn:disabled {
    cursor: default;
    opacity: 0.35;
}

.replay-dom-zoom-step {
    align-items: center;
    background: rgba(8, 145, 178, 0.14);
    border: 1px solid #075985;
    border-radius: 4px;
    color: #22d3ee;
    display: inline-flex;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    letter-spacing: 0.2px;
    min-width: 82px;
    padding: 0 12px;
}

.limit-orders-table-header {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
}

    .limit-orders-table-header span {
        flex: 1;
    }

.limit-order-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.order-type-select, .limit-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    flex: 1;
    min-width: 60px;
}

    .order-type-select:focus, .limit-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.btn-add {
    background: #0ea5e9;
    border: none;
    color: white;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 2px;
    cursor: pointer;
    font-size: clamp(10px, 2vw, 12px);
    white-space: nowrap;
}

    .btn-add:hover {
        background: #0284c7;
    }

/* Custom scrollbars */
.tab-content-area::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
    width: 4px;
}

.tab-content-area::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
    background: #0f1015;
}

.tab-content-area::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #00ff88, #00d4ff);
    border-radius: 2px;
}

    .tab-content-area::-webkit-scrollbar-thumb:hover,
    .sidebar::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #00d4ff, #00ff88);
    }

/* Mobile-specific styles */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding: 0 0.5rem;
    }

    .main-content {
        height: calc(100dvh - 60px);
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar-container {
        width: 100%;
        height: 40%;
        max-height: 50vh;
        min-height: 200px;
        max-width: none;
    }

    .sidebar-container.dom-mode-active {
        width: 100%;
        max-width: none;
        max-height: 65vh;
    }

    .sidebar-container.dom-mode-active .sidebar {
        flex-direction: column;
    }

    .sidebar-container.dom-mode-active .replay-dom-column {
        width: 100%;
        min-width: 0;
        min-height: 260px;
        border-left: 0;
        border-top: 1px solid #1f2937;
    }

    .main-panel {
        height: 60%;
        min-height: 50vh;
    }

    .resize-handle {
        width: 100%;
        height: 2px;
        top: 0;
        left: 0;
        cursor: row-resize;
    }

    .navbar-content {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .current-ticker-info {
        order: -1;
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .search-form {
        /*flex: 1;*/
        min-width: 120px;
    }


    .search-icon {
        left: 8px;
        font-size: 11px;
    }

    .simulator-toggle-btn i {
        /*display: none;*/
    }

    .chart-analyzer-btn i {
        margin-right: 0;
    }

    .quantity-row {
        justify-content: space-between;
    }

    .limit-order-row {
        gap: 4px;
    }

    .trade-buttons-row {
        gap: 4px;
    }
}

/* Tablet styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar-container {
        width: 280px;
        min-width: 220px;
    }

    .sidebar-container.dom-mode-active {
        max-width: none;
    }

    .current-ticker-info {
        gap: 12px;
    }

    .search-form {
        max-width: 300px;
    }
}

/* Large screen optimizations */
@media (min-width: 1400px) {
    .sidebar-container {
        width: 420px;
        max-width: 420px;
    }

    .search-form {
        max-width: 500px;
    }
}

/* Ultra-wide screen optimizations */
@media (min-width: 1920px) {
    .sidebar-container {
        width: 420px;
        max-width: 420px;
    }
}

/* Animation for price flashing */
.price-flash-up {
    animation: price-flash-up 1.2s ease-out;
}

.price-flash-down {
    animation: price-flash-down 1.2s ease-out;
}

@keyframes price-flash-up {
    0% {
        background-color: rgba(16, 185, 129, 0.25);
        box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.15);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

@keyframes price-flash-down {
    0% {
        background-color: rgba(239, 68, 68, 0.25);
        box-shadow: inset 0 0 12px rgba(239, 68, 68, 0.15);
    }
    100% {
        background-color: transparent;
        box-shadow: none;
    }
}

/* Ensure chart container is responsive */
#newChart {
    width: 100%;
    height: 100%;
    background-color: #0a0a0f !important;
}

.sc-chart-container.dark-mode {
    background-color: #0a0a0f !important;
}

.sc-price-chart {
    border: 0px !important;
}
/* Modal responsive styles */
.modal-dialog {
    max-width: min(800px, 95vw);
    margin: 1rem auto;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    .modal-content {
        border-radius: 8px;
    }

    .modal-header {
        padding: 15px 20px;
    }

    .symbol-tabs {
        gap: 12px !important;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


.hamburger-menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    .hamburger-menu-btn:hover {
        background-color: rgba(0, 255, 136, 0.1);
        color: #00ff88;
    }

.hamburger-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .hamburger-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.hamburger-menu {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100%;
    background-color: #0f1015;
    border-right: 1px solid #1a1a25;
    z-index: 1999;
    transition: left 0.3s ease;
    overflow-y: auto;
}

    .hamburger-menu.active {
        left: 0;
    }

.hamburger-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #1a1a25;
}

.hamburger-logo {
    height: 45px;
}

.hamburger-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

    .hamburger-close:hover {
        color: #e0e6ed;
    }

.hamburger-nav {
    /*padding: 20px 0;*/
}

.hamburger-nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    color: #e0e6ed;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

    .hamburger-nav-item:hover {
        background-color: rgba(0, 255, 136, 0.05);
        border-left-color: #00ff88;
        color: #00ff88;
    }

    .hamburger-nav-item i {
        font-size: 16px;
        width: 20px;
        text-align: center;
    }

    .hamburger-nav-item span {
        font-size: 14px;
        font-weight: 500;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .hamburger-menu {
        width: 280px;
        left: -280px;
    }
}




/* Full-width thin footer bar with center notch */
.footer-handle {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10px;
    z-index: 1000;
    /* Default state now uses what used to be the hover styling (green-tinted) */
    background: linear-gradient(180deg, #1f1f28, #141418);
    border-top: 1px solid rgba(0, 255, 136, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

    .footer-handle:hover {
        background: linear-gradient(180deg, #24242f, #18181e);
        border-top-color: rgba(0, 255, 136, 0.6);
    }

    .footer-handle:hover .footer-handle-notch {
        border-color: rgba(0, 255, 136, 0.9);
        background: linear-gradient(180deg, #2c2c3a, #1f1f2a);
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.45);
    }

    .footer-handle:hover .footer-handle-notch i {
        color: #00ff88;
        opacity: 1;
        text-shadow: 0 0 8px rgba(0, 255, 136, 0.8);
    }

/* Center notch - subtle tent/tab shape; default state uses the old hover look */
.footer-handle-notch {
    position: relative;
    top: -12px;
    width: 60px;
    height: 18px;
    background: linear-gradient(180deg, #252530, #1a1a22);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

    .footer-handle-notch i {
        font-size: 8px;
        color: #00ff88;
        transition: all 0.3s ease;
        opacity: 1;
    }

/* Rotate chevron when expanded */
.footer-handle.expanded .footer-handle-notch i {
    transform: rotate(180deg);
}

.footer-panel {
    position: fixed;
    bottom: -500px;
    left: 0;
    right: 0;
    height: 500px;
    background: linear-gradient(180deg, #0f1015, #1a1a25);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

    .footer-panel.expanded {
        bottom: 10px; /* Sits above the 10px footer handle bar */
    }

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px;
    padding: 48px 48px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h6 {
    color: #e0e6ed;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-section a {
    display: block;
    color: #8a92a6;
    text-decoration: none !important;
    padding: 0;
    margin-bottom: 11px;
    font-size: 13.5px;
    line-height: 1.4;
    transition: color 150ms;
    transform: translateY(0);
    border: none !important;
}

.footer-section a:last-child {
    margin-bottom: 0;
}

    .footer-section a:hover {
        color: #00ff88;
        text-decoration: none !important;
        transform: translateY(0);
    }

    .footer-section a i {
        width: 16px;
        margin-right: 8px;
    }

.footer-bottom {
    /*border-top: 1px solid #2a2a35;*/
    padding: 1rem 2rem;
    text-align: center;
}

    .footer-bottom p {
        color: #787b86;
        font-size: 12px;
        margin: 0;
    }

/* Mobile adjustments */
@media (max-width: 768px) {
    .footer-panel {
        height: 250px;
        bottom: -250px;
    }

        .footer-panel.expanded {
            bottom: 10px;
        }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding: 1.5rem;
    }

    /* Smaller notch on mobile */
    .footer-handle-notch {
        width: 50px;
        height: 16px;
        top: -10px;
    }

        .footer-handle-notch i {
            font-size: 7px;
        }
}

/* App Store Badges - consistent height */
.app-store-badges {
    padding: 20px 0;
}

.app-badge {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

    .app-badge:hover {
        transform: scale(1.05);
        opacity: 1;
    }

@media (max-width: 576px) {
    .app-badge {
        height: 40px;
    }
}

/* Modal search input */
.modal-search {
    background: #1a1a25;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 12px 16px 12px 45px;
    font-size: 14px;
    border-radius: 2px; /* Match trading panel inputs */
    width: 100%;
    height: 44px;
}

    .modal-search:focus {
        outline: none;
        border-color: #00ff88; /* Green outline like trading inputs */
    }


#tickerSearch:focus {
    outline: none;
    border-color: #00ff88 !important;
}



.simulator-toggle-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 12px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    font-weight: 500;
}

    /* Default Start button active state */
    .simulator-toggle-btn.active {
        background-color: #0ea5e9;
        color: #ffffff;
        border-color: #0ea5e9;
    }

        .simulator-toggle-btn.active:hover {
            background-color: #0284c7;
            border-color: #0284c7;
        }

    /* Challenge button inactive state */
    .simulator-toggle-btn.challenge:not(.active) {
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        color: #0ea5e9; /* Blue text when inactive */
    }

        .simulator-toggle-btn.challenge:not(.active):hover {
            background-color: #0ea5e9; /* Blue background on hover */
            border-color: #0ea5e9;
            color: #ffffff; /* White text on hover */
        }

    /* Challenge button active state */
    .simulator-toggle-btn.challenge.active {
        background-color: #0ea5e9; /* Same blue as Start when active */
        border-color: #0ea5e9;
        color: #ffffff;
    }

        .simulator-toggle-btn.challenge.active:hover {
            background-color: #0284c7; /* Darker blue on hover when active */
            border-color: #0284c7;
        }

    /* Regular inactive button hover */
    .simulator-toggle-btn:hover:not(.active):not(.challenge) {
        background-color: #3a3a45;
        border-color: #22d3ee;
        color: #e0e6ed;
    }


    .simulator-toggle-btn.challenge i {
        color: #eab308 !important; /* Yellow bolt icon */
    }

    .simulator-toggle-btn.challenge.active:hover i,
    .simulator-toggle-btn.challenge:hover i {
        color: #ffffff !important; /* White bolt when hovering/active */
    }

.playback-controls-row {
    padding: 12px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #1a1a25;
    padding-top: 0px !important;
}

.playback-date-selector {
    flex: 2;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 11px);
    cursor: pointer;
    transition: all 0.2s ease;
}

    .playback-date-selector:focus {
        outline: none;
        border-color: #00ff88;
    }

    .playback-date-selector::-webkit-calendar-picker-indicator {
        filter: invert(1);
        opacity: 0.7;
    }

.playback-btn {
    flex: 1;
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #787b86;
    padding: 6px 8px;
    border-radius: 2px;
    font-size: clamp(10px, 2vw, 11px);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 30px;
}

    .playback-btn:hover {
        background-color: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

    .playback-btn.active {
    }

        .playback-btn.active:hover {
            background-color: #0284c7;
            border-color: #0284c7;
        }

.playback-speed {
    font-weight: 500;
    font-size: clamp(9px, 1.8vw, 12px);
    cursor: auto;
}

    .playback-speed:hover {
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        color: #787b86;
    }

/* Playback speed slider (replay 1x-10x) */
.playback-speed-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid #1a1a25;
}

.playback-speed-tag {
    font-size: clamp(9px, 1.8vw, 11px);
    color: #787b86;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.playback-speed-value {
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 600;
    color: #00ff88;
    min-width: 26px;
    text-align: right;
    flex-shrink: 0;
}

.playback-speed-slider {
    flex: 1;
    min-width: 0;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #2a2a35;
    border-radius: 2px;
    cursor: pointer;
}

    .playback-speed-slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 14px;
        height: 14px;
        border-radius: 2px;
        background: #787b86;
        border: 1px solid #1a1a25;
        transition: background 0.2s ease;
    }

    .playback-speed-slider:hover::-webkit-slider-thumb,
    .playback-speed-slider:active::-webkit-slider-thumb {
        background: #00ff88;
    }

    .playback-speed-slider::-moz-range-thumb {
        width: 14px;
        height: 14px;
        border-radius: 2px;
        background: #787b86;
        border: 1px solid #1a1a25;
        transition: background 0.2s ease;
    }

    .playback-speed-slider:hover::-moz-range-thumb,
    .playback-speed-slider:active::-moz-range-thumb {
        background: #00ff88;
    }

    .playback-speed-slider::-moz-range-track {
        height: 4px;
        background: #2a2a35;
        border-radius: 2px;
    }

/* === MARKET INDICES - GLASS CARDS === */
/* === MARKET INDICES MARQUEE === */
.market-marquee {
    position: relative;
    height: 32px;
    background: linear-gradient(180deg, #0b0d14 0%, #070911 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.market-marquee::before,
.market-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.market-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #070911 0%, transparent 100%);
}

.market-marquee::after {
    right: 0;
    background: linear-gradient(-90deg, #070911 0%, transparent 100%);
}

.market-track {
    display: flex;
    align-items: center;
    animation: marquee-scroll 40s linear infinite;
    white-space: nowrap;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.market-snapshot {
    display: flex;
    gap: 0;
    align-items: center;
    margin-left: 0;
}

.market-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    height: 32px;
    background: none;
    border-top: none;
    border-bottom: none;
    border-left: none;
    border-radius: 0;
    position: static;
    transition: none;
    overflow: visible;
}

.market-item::before {
    display: none;
}

.market-item:hover {
    background: none;
    transform: none;
}

.market-item.positive-card,
.market-item.negative-card {
    border-top: none;
    border-color: transparent;
}

.market-item.positive-card,
.market-item.negative-card {
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.market-symbol {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    line-height: 1;
    margin-bottom: 0;
}

.market-price {
    font-size: 12px;
    color: #e0e6ed;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
}

.market-change {
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.market-change .change-arrow {
    display: inline-block;
    margin-right: 1px;
    font-size: 9px;
    vertical-align: middle;
}

.market-change.positive { color: #4ADE80; }
.market-change.negative { color: #F87171; }
/* === END MARKET INDICES MARQUEE === */

.user-menu {
    margin-left: auto;
}

.user-icon-btn {
    background: none;
    border: none;
    color: #787b86;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .user-icon-btn:hover {
        color: #00ff88;
        background-color: rgba(0, 255, 136, 0.1);
    }

/* Mobile adjustments - Marquee */
@media (max-width: 768px) {
    .market-marquee {
        display: none !important;
    }
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto; /* Push this entire group to the right */
}

.user-menu {
    /* Remove margin-left: auto */
}



.quantity-row {
    padding: 12px 12px;
    display: grid; /* Change from flex to grid */
    grid-template-columns: 1fr 1fr; /* Two equal columns like the buttons above */
    gap: 8px; /* Same gap as the button rows */
    align-items: center;
    border-bottom: 1px solid #1a1a25;
}

.quantity-input {
    background-color: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: clamp(12px, 2.5vw, 14px);
    width: 100%; /* Fill the first grid column */
}

    .quantity-input:focus {
        outline: none;
        border-color: #00ff88;
    }

.max-shares-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: clamp(10px, 2vw, 12px);
    color: #787b86;
    white-space: nowrap;
    justify-self: start; /* Align to start of second column */
}

    .max-shares-checkbox input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        background-color: #2a2a35;
        border: 1px solid #2a2a35;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
    }

    .max-shares-checkbox input[type="checkbox"]:checked {
        background-color: #00ff88;
        border-color: #00ff88;
    }

    .max-shares-checkbox input[type="checkbox"]:checked::after {
        content: '✓';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #0a0a0f;
        font-size: 13px;
        font-weight: bold;
    }

.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1070;
    /*pointer-events: none;*/
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.notification {
    border-radius: 4px;
    padding: 20px 40px;
    color: #fff;
    font-size: 16px;
    opacity: 0;
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

    /* Trade notifications - V2 dimensional style */
    .notification.profit,
    .notification.loss {
        min-width: auto;
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        gap: 0;
    }

    /* Achievement notification - V2 dimensional style */
    .notification.achievement {
        min-width: auto;
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        gap: 0;
    }

    /* Action notification - most compact */
    .notification.action {
        /*padding: 12px 24px;*/
        min-width: 180px;
    }

    /* Trade confirm notification - V2 style */
    .notification.confirm {
        min-width: auto;
        padding: 0;
        background: none;
        border: none;
        backdrop-filter: none;
        gap: 0;
    }

    /* Trade notifications - override base for V2 */
    .notification.profit {
        background: none;
        border: none;
    }

    .notification.loss {
        background: none;
        border: none;
    }

    /* Achievement notification - override base styles */
    .notification.achievement {
        background: none;
        border: none;
        padding: 0;
    }

    /* Action notification */
    .notification.action {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .notification.action .value {
        color: #fff;
    }

/* V2 Trade Confirm Toast */
.toast-confirm {
    background: linear-gradient(180deg, #1d2132 0%, #14171f 100%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 18px 24px 18px 18px;
    color: #E6E8EF;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 14px 32px rgba(0,0,0,0.55),
                0 1px 0 rgba(255,255,255,0.06) inset;
    position: relative;
    overflow: hidden;
}
.toast-confirm::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
}
.toast-confirm.toast-confirm-sell::before {
    background: linear-gradient(180deg, #EF4444 0%, #B91C1C 100%);
}
.toast-confirm .toast-confirm-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(34,197,94,0.18);
    color: #4ADE80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(34,197,94,0.3);
}
.toast-confirm.toast-confirm-sell .toast-confirm-ico {
    background: rgba(239,68,68,0.18);
    color: #F87171;
    border-color: rgba(239,68,68,0.3);
}
.toast-confirm .toast-confirm-stack {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.toast-confirm .toast-confirm-top-line {
    font-size: 12px;
    font-weight: 700;
    color: #4ADE80;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.toast-confirm.toast-confirm-sell .toast-confirm-top-line {
    color: #F87171;
}
.toast-confirm .toast-confirm-main-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}
.toast-confirm .toast-confirm-main-line .toast-confirm-px {
    color: #4ADE80;
}
.toast-confirm.toast-confirm-sell .toast-confirm-main-line .toast-confirm-px {
    color: #F87171;
}
.toast-confirm .toast-confirm-ticker-tape {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 800;
    color: rgba(255,255,255,0.04);
    letter-spacing: -1px;
    pointer-events: none;
}

/* V2 confirm spring-in animation */
.notification.confirm.show-notification {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: confirmSpringIn 380ms cubic-bezier(.2,1.4,.4,1) both;
}

@keyframes confirmSpringIn {
    0% { transform: translateY(-30px) scale(0.92); opacity: 0; }
    60% { transform: translateY(2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* V2 Trade Complete Toast */
.toast-complete {
    width: 300px;
    background: linear-gradient(180deg, #1c2333 0%, #11141d 100%);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 14px;
    color: #E6E8EF;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.6),
                0 1px 0 rgba(255,255,255,0.06) inset;
    position: relative;
}
.toast-complete::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #22C55E 0%, #4ADE80 50%, #22C55E 100%);
}
.toast-complete.toast-loss::before {
    background: linear-gradient(90deg, #EF4444 0%, #F87171 50%, #EF4444 100%);
}
.toast-complete .toast-complete-top {
    padding: 16px 18px 14px;
    position: relative;
    overflow: hidden;
}
.toast-complete .toast-complete-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(220px 120px at 50% 0%, rgba(34,197,94,0.12), transparent 70%);
    pointer-events: none;
}
.toast-complete.toast-loss .toast-complete-top::before {
    background: radial-gradient(220px 120px at 50% 0%, rgba(239,68,68,0.12), transparent 70%);
}
.toast-complete .toast-complete-head {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #4ADE80;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 8px;
    position: relative;
}
.toast-complete.toast-loss .toast-complete-head {
    color: #F87171;
}
.toast-complete .toast-complete-head svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
}
.toast-complete .toast-complete-pnl-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    position: relative;
}
.toast-complete .toast-complete-pnl {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -1.2px;
    color: #4ADE80;
    line-height: 1;
    text-shadow: 0 0 20px rgba(34,197,94,0.4);
}
.toast-complete.toast-loss .toast-complete-pnl {
    color: #F87171;
    text-shadow: 0 0 20px rgba(239,68,68,0.4);
}
.toast-complete .toast-complete-pct {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: rgba(230,232,239,0.6);
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
    position: relative;
}
.toast-complete .toast-complete-spark {
    display: none;
}
.toast-complete .toast-complete-ad {
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
    padding: 12px 18px;
    position: relative;
    text-align: center;
}
.toast-complete .toast-complete-ad .toast-ad-label {
    position: absolute;
    top: -7px;
    left: 12px;
    background: #1d2030;
    font-size: 8.5px;
    color: rgba(230,232,239,0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* V2 trade complete spring-in animation */
.notification.profit.show-notification,
.notification.loss.show-notification {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: tradeSpringIn 420ms cubic-bezier(.2,1.4,.4,1) both;
}

@keyframes tradeSpringIn {
    0% { transform: translateY(-30px) scale(0.92); opacity: 0; }
    60% { transform: translateY(2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

/* V2 Achievement Toast — "bold gold bar" share treatment */
.toast-achieve {
    width: 320px;
    box-sizing: border-box;
    background: linear-gradient(180deg, #1c1d28 0%, #131119 100%);
    border: 1px solid rgba(251,191,36,0.42);
    border-radius: 16px;
    color: #E6E8EF;
    box-shadow: 0 18px 48px rgba(0,0,0,0.6),
                0 0 44px rgba(251,191,36,0.13),
                0 1px 0 rgba(255,255,255,0.05) inset;
    position: relative;
    overflow: hidden;
}
.toast-achieve *, .toast-achieve *::before, .toast-achieve *::after { box-sizing: border-box; }

/* padded content area (the share bar lives outside this so it can go edge-to-edge) */
.toast-achieve .achieve-body {
    padding: 22px 20px 16px;
    text-align: center;
    position: relative;
}
.toast-achieve .achieve-body::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 150px;
    background: radial-gradient(220px 120px at 50% -10%, rgba(251,191,36,0.2), transparent 70%);
    pointer-events: none;
}
.toast-achieve .achieve-icon {
    width: 66px;
    height: 66px;
    margin: 2px auto 12px;
    position: relative;
    z-index: 2;
}
.toast-achieve .achieve-icon img {
    width: 66px;
    height: 66px;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(217,119,6,0.55));
    animation: achieveIconSpin 700ms cubic-bezier(.4,1.5,.5,1) both;
    animation-delay: 120ms;
}
.toast-achieve .achieve-lbl-unlock {
    font-size: 11px;
    font-weight: 800;
    color: #FCD34D;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-bottom: 9px;
    position: relative;
}
.toast-achieve .achieve-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px;
    color: #fff;
    letter-spacing: -0.4px;
    position: relative;
}
.toast-achieve .achieve-desc {
    font-size: 13.5px;
    color: rgba(230,232,239,0.6);
    margin: 0 0 16px;
    position: relative;
}
.toast-achieve .achieve-progress-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.toast-achieve .achieve-progress-row .achieve-lvl {
    font-size: 11.5px;
    font-weight: 700;
    color: #FCD34D;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.toast-achieve .achieve-progress-row .achieve-bar {
    flex: 1;
    height: 5px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.toast-achieve .achieve-progress-row .achieve-fill {
    height: 100%;
    background: linear-gradient(90deg, #FBBF24 0%, #FCD34D 100%);
    border-radius: 999px;
    box-shadow: 0 0 8px rgba(251,191,36,0.5);
    animation: achieveBarFill 900ms cubic-bezier(.3,.7,.3,1) both;
    animation-delay: 420ms;
}
.toast-achieve .achieve-progress-row .achieve-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
/* Share footer — amber tease line + full-width bold gold bar */
.toast-achieve .achieve-share { margin-top: 16px; }
.toast-achieve .achieve-share .achieve-share-cta {
    font-size: 12px;
    font-weight: 600;
    color: #FCD34D;
    letter-spacing: 0.2px;
    text-align: center;
    padding: 0 20px 12px;
}
.toast-achieve .achieve-share .achieve-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    border: 0;
    cursor: pointer;
    font: 800 14.5px 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.2px;
    color: #2a1c02;
    padding: 15px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #FCD34D 0%, #D97706 100%);
    box-shadow: 0 -1px 0 rgba(251,191,36,0.4) inset;
}
.toast-achieve .achieve-share .achieve-share-btn .achieve-share-ic {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #2a1c02;
}
.toast-achieve .achieve-share .achieve-share-btn::after {
    content: '';
    position: absolute; top: 0; bottom: 0; left: -40%; width: 35%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-18deg);
    animation: achieveShimmer 3.4s ease-in-out infinite;
    animation-delay: 900ms;
}
.toast-achieve .achieve-share .achieve-share-btn:hover { filter: brightness(1.05); }
.toast-achieve .achieve-share .achieve-share-btn:active { filter: brightness(0.97); }
@keyframes achieveShimmer { 0% { left: -40%; } 55%, 100% { left: 130%; } }

/* Achievement toast spring-in animation */
.notification.achievement.show-notification {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: achieveSpringIn 460ms cubic-bezier(.2,1.4,.4,1) both;
}

@keyframes achieveSpringIn {
    0% { transform: translateY(-30px) scale(0.92); opacity: 0; }
    60% { transform: translateY(2px) scale(1.02); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes achieveIconSpin {
    0% { transform: scale(0.3) rotate(-90deg); opacity: 0; }
    60% { transform: scale(1.18) rotate(8deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}
@keyframes achieveBarFill {
    from { width: 0; }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    20% {
        opacity: 1;
        transform: translateY(0);
    }

    80% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/*.show-notification {
    animation: slideDown 4s forwards ease-out;
}

*/

.notification {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

    .notification.show-notification {
        opacity: 1;
        transform: translateY(0);
    }







/* ============================================================
   V3 Unlock $1M Modal
   ============================================================ */
#loginModal .modal-content.um-modal {
    position: relative;
    color: #E6E8EF;
    background:
        radial-gradient(420px 200px at 50% 0%, rgba(124,107,255,0.16), transparent 70%),
        linear-gradient(180deg, rgba(32,35,50,0.14) 0%, transparent 40%),
        #161925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 30px 80px rgba(0,0,0,0.6),
        0 6px 16px rgba(0,0,0,0.4);
}
#loginModal .modal-content.um-modal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, #c4b5fd, #f0abfc, #e3e3e3);
    pointer-events: none;
}
#loginModal .um-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.5);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 120ms, color 120ms;
}
#loginModal .um-close:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
#loginModal .um-top,
#loginModal .um-default-top {
    padding: 52px 32px 0;
    text-align: center;
    background: transparent;
}
#loginModal .um-title {
    margin: 0 0 12px;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.7px;
    line-height: 1.1;
}
#loginModal .um-default-title {
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
#loginModal .um-title .um-amt {
    color: #F0ABFC;
}
#loginModal .um-desc,
#loginModal .um-default-desc {
    max-width: 360px;
    margin: 0 auto 26px;
    font-size: 15px;
    line-height: 1.5;
    color: rgba(230,232,239,0.55);
}
#loginModal .um-perks {
    margin: 0 32px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 8px;
    padding: 18px 20px;
}
#loginModal .um-perk {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14.5px;
    line-height: 1.4;
    color: rgba(230,232,239,0.72);
    padding: 6px 0;
}
#loginModal .um-perk .um-ck {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(196,181,253,0.12);
    border: 1px solid rgba(196,181,253,0.4);
    color: #C4B5FD;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#loginModal .um-perk .um-perk-label {
    color: rgba(230,232,239,0.72);
    font-weight: 500;
}
#loginModal .um-perk .um-perk-label strong {
    color: #fff;
    font-weight: 700;
}
#loginModal .um-body {
    padding: 0 32px 0;
}
#loginModal .um-oauth {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
    transition: background 120ms, border-color 120ms, transform 120ms;
}
#loginModal .um-oauth:hover {
    background: rgba(255,255,255,0.11);
    border-color: rgba(196,181,253,0.45);
}
#loginModal .um-oauth:active {
    transform: translateY(1px);
}
#loginModal .um-oauth svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
#loginModal .um-legal {
    margin-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 16px 0 22px;
    font-size: 13px;
    color: rgba(230,232,239,0.42);
    text-align: center;
    line-height: 1.5;
}
#loginModal .um-legal a {
    color: #B9ACFF;
    text-decoration: none;
}
#loginModal .um-legal a:hover {
    text-decoration: underline;
}

.footer-stats-row {
    display: flex;
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
}

    .footer-stats-row .col-6,
    .footer-stats-row .col-md-3 {
        flex: none;
        width: auto;
    }

.stat-card {
    background: linear-gradient(135deg, #0a0a10 0%, #0f1218 100%);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 2px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    width: 280px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

    /* Highlight bar on TOP */
    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #00ff88, #00d4ff);
        border-radius: 2px 2px 0 0;
        box-shadow: 0 0 12px rgba(0, 255, 136, 0.5);
    }

    /* Hover lift effect */
    .stat-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 255, 136, 0.3);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 136, 0.1);
        background: linear-gradient(135deg, #0f1218 0%, #141a22 100%);
    }

    /* Subtle shine sweep on hover */
    .stat-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.05), transparent);
        transition: left 0.5s ease;
    }

    .stat-card:hover::after {
        left: 100%;
    }

.stat-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.1;
    letter-spacing: -1.2px;
}

.stat-value .stat-pre,
.stat-value .stat-suf {
    color: #4ADE80;
    font-size: 1.4rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.85rem;
    color: #9ca3af;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .stat-card {
        width: 160px;
        height: 100px;
        padding: 18px 14px;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .footer-stats-row {
        gap: 8px;
    }
}


.simul8or-text {
    background: linear-gradient(45deg, #00ff88, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    font-weight: 700;
}

.footer-panel::-webkit-scrollbar {
    width: 6px;
}

.footer-panel::-webkit-scrollbar-track {
    background: #0f1015;
    border-radius: 3px;
}

.footer-panel::-webkit-scrollbar-thumb {
    background: #3a3a45;
    border-radius: 3px;
    border: 1px solid #4a4a55;
}

    .footer-panel::-webkit-scrollbar-thumb:hover {
        background: #4a4a55;
        border-color: #5a5a65;
    }

/* For Firefox */
.footer-panel {
    scrollbar-width: thin;
    scrollbar-color: #3a3a45 #0f1015;
}



.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.footer-bottom-left {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    height: 45px;
}

.footer-copyright {
    color: #787b86;
    font-size: 12px;
    margin: 0;
}

.footer-bottom-right {
    flex: 1;
}

    .footer-bottom-right p {
        color: #787b86;
        font-size: 14px;
        margin: 0;
        line-height: 1.6;
    }

/* Style the simul8or text with green gradient */
.footer-bottom .simul8or-text {
    /*background: linear-gradient(45deg, #00ff88, #00d4ff);*/
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Make specific terms stand out */
.footer-bottom strong {
    color: #e0e6ed;
    font-weight: 600;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-left {
        align-items: center;
    }
}



.footer-bottom {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    max-width: 1200px; /* Add max-width */
    margin: 0 auto; /* Center it */
}






/* Contact Modal - aligned with Settings modal */
#contactModal .modal-dialog {
    max-width: 620px;
    margin: 1.75rem auto;
}

#contactModal .modal-content {
    position: relative;
    color: #E6E8EF;
    background:
        radial-gradient(520px 220px at 50% 0%, rgba(124,107,255,0.12), transparent 70%),
        #161925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 30px 80px rgba(0,0,0,0.6),
        0 6px 16px rgba(0,0,0,0.4);
}

#contactModal .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, #c4b5fd, #f0abfc, #e3e3e3);
    pointer-events: none;
}

#contactModal .modal-header {
    background: transparent;
    border-bottom: none;
    padding: 30px 36px 18px;
    justify-content: space-between;
    align-items: center;
}

#contactModal .modal-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

#contactModal .btn-close {
    background: none;
    border: 0;
    color: rgba(255,255,255,0.5);
    opacity: 1;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 120ms, color 120ms;
}

    #contactModal .btn-close:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.07);
    }

    #contactModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }

#contactModal .modal-body {
    color: #E6E8EF;
    padding: 0 36px 34px;
}

#contactModal .contact-intro p {
    margin: 0 0 22px;
    color: rgba(230,232,239,0.72);
    font-size: 15px;
    line-height: 1.55;
}

#contactModal .form-control,
#contactModal .form-select {
    padding: 13px 15px;
    font-size: 15px;
    color: #E6E8EF;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    transition: border-color 120ms, background 120ms;
}

    #contactModal .form-select option {
        color: #E6E8EF;
        background-color: #161925;
    }

    #contactModal .form-select option:checked {
        color: #1a1330;
        background-color: #E6DEFF;
    }

    #contactModal .form-select option:hover {
        color: #fff;
        background-color: rgba(196,181,253,0.18);
    }

    #contactModal .form-control::placeholder {
        color: rgba(230,232,239,0.4);
    }

    #contactModal .form-control:focus,
    #contactModal .form-select:focus {
        outline: none;
        border-color: rgba(196,181,253,0.5);
        background: rgba(255,255,255,0.07);
        color: #E6E8EF;
        box-shadow: none;
    }

#contactModal textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

#contactModal .form-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

#contactModal .contact-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

#contactModal .contact-status {
    display: none;
    margin: 0 0 14px;
    padding: 12px 14px;
    color: #fecaca;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
}

    #contactModal .contact-status.is-visible {
        display: block;
    }

#contactModal .btn-submit {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1a1330;
    background: linear-gradient(180deg, #FFFFFF 0%, #E6DEFF 100%);
    border: 0;
    border-radius: 6px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 0 0 1px rgba(255,255,255,0.12),
        0 14px 34px rgba(196,181,253,0.32);
    transition: filter 120ms, transform 120ms;
}

    #contactModal .btn-submit:hover {
        filter: brightness(1.03);
    }

    #contactModal .btn-submit:active {
        transform: translateY(1px);
    }

    #contactModal .btn-submit:disabled {
        cursor: not-allowed;
        filter: grayscale(0.4) brightness(0.8);
        transform: none;
    }

#contactModal .success-message {
    display: none;
    padding: 38px 20px 42px;
    text-align: center;
}

    #contactModal .success-message i {
        color: #C4B5FD;
        font-size: 42px;
        margin-bottom: 18px;
    }

    #contactModal .success-message h5 {
        color: #fff;
        font-size: 22px;
        font-weight: 800;
        margin-bottom: 8px;
    }

    #contactModal .success-message p {
        color: rgba(230,232,239,0.72);
        margin: 0;
    }

@media (max-width: 768px) {
    #contactModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #contactModal .modal-header {
        padding: 24px 22px 16px;
    }

    #contactModal .modal-body {
        padding: 0 22px 24px;
    }
}




/* Add these styles to your existing CSS */
#disclaimerModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#disclaimerModal .modal-header {
    background: #1a1a25;
    border-bottom: 1px solid #2a2a35;
    border-radius: 8px 8px 0 0;
}

#disclaimerModal .modal-title {
    color: #e0e6ed;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

    #disclaimerModal .modal-title i {
        color: #ffc107;
    }

#disclaimerModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 0.7;
}

    #disclaimerModal .btn-close:hover {
        color: #e0e6ed;
        opacity: 1;
    }

#disclaimerModal .disclaimer-content h6 {
    color: #e0e6ed;
    font-weight: 600;
    margin-bottom: 12px;
}

#disclaimerModal .disclaimer-content p {
    color: #9ca3af;
    line-height: 1.6;
}

#disclaimerModal .btn-secondary {
    background: #0ea5e9;
    border: none;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
}

    #disclaimerModal .btn-secondary:hover {
        background: #0284c7;
    }

/* Ensure the modal scrolls properly on smaller screens */
@media (max-width: 768px) {
    #disclaimerModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #disclaimerModal .modal-body {
        max-height: 70vh;
        overflow-y: auto;
    }
}



/* Login Modal Fixes */
#loginModal .modal-dialog {
    max-width: 550px; /* Much narrower than default */
    margin: 1rem auto;
}

#loginModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#loginModal .modal-header {
    background: #0f1015; /* Match modal content background instead of darker */
    border-bottom: none; /* Remove border since there's no visible header content */
    border-radius: 8px 8px 0 0;
    padding: 15px 20px 0 20px; /* Reduce bottom padding since no title */
    justify-content: flex-end; /* Push close button to right */
}

/* Login Modal - Close Button Fix */
#loginModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 1;
    margin: 0;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #loginModal .btn-close:hover {
        color: #e0e6ed;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Override Bootstrap's close button styling for login modal */
    #loginModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }


#loginModal .modal-body {
    color: #e0e6ed;
    padding: 0 20px 20px 20px; /* No top padding since header has no bottom padding */
}

#loginModal h4 {
    color: #e0e6ed;
    font-weight: 600;
}

#loginModal .text-muted {
    color: #9ca3af !important;
}

#loginModal .btn-light {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    transition: all 0.2s ease;
}

    #loginModal .btn-light:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

#loginModal .fab {
    margin-right: 8px;
}

#loginModal a {
    color: #00ff88;
    text-decoration: none;
}

    #loginModal a:hover {
        color: #00d4ff;
    }


/* Logout Modal - Match Login Modal Style */
#logoutModal .modal-dialog {
    max-width: 400px; /* Same as welcome modal */
    margin: 1rem auto;
}

#logoutModal .modal-content {
    background: #0f1015;
    border: 1px solid #2a2a35;
    border-radius: 8px;
}

#logoutModal .modal-header {
    background: #0f1015; /* Match modal content background */
    border-bottom: none; /* Remove border */
    border-radius: 8px 8px 0 0;
    padding: 15px 20px 0 20px; /* Reduce bottom padding */
    justify-content: space-between; /* Space between title and close button */
}

#logoutModal .modal-title {
    color: #e0e6ed;
    font-weight: 600;
    margin: 0; /* Remove default margin */
}

#logoutModal .btn-close {
    background: none;
    border: none;
    color: #787b86;
    font-size: 20px;
    opacity: 1;
    margin: 0;
    padding: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

    #logoutModal .btn-close:hover {
        color: #e0e6ed;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Override Bootstrap's close button styling */
    #logoutModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }

#logoutModal .modal-body {
    color: #e0e6ed;
    padding: 20px; /* Consistent padding */
    text-align: center; /* Center the text like login modal */
    font-size: 16px; /* Match login modal text size */
}

#logoutModal .modal-footer {
    border-top: none; /* Remove border to match login modal */
    padding: 0 20px 20px 20px; /* Match login modal padding pattern */
    justify-content: center; /* Center the buttons */
    gap: 12px; /* Add gap between buttons */
}

#logoutModal .btn-secondary {
    background: #2a2a35;
    border: 1px solid #2a2a35;
    color: #e0e6ed;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 80px; /* Ensure consistent button width */
}

    #logoutModal .btn-secondary:hover {
        background: #3a3a45;
        border-color: #3a3a45;
        color: #e0e6ed;
    }

#logoutModal .btn-danger {
    background: #ef4444;
    border: 1px solid #ef4444;
    color: #ffffff;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 2px;
    transition: all 0.2s ease;
    min-width: 80px; /* Ensure consistent button width */
}

    #logoutModal .btn-danger:hover {
        background: #dc2626;
        border-color: #dc2626;
        color: #ffffff;
    }

/* Mobile responsiveness - match other modals */
@media (max-width: 768px) {
    #logoutModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #logoutModal .modal-body {
        padding: 15px;
    }

    #logoutModal .modal-footer {
        padding: 0 15px 15px 15px;
        flex-direction: column; /* Stack buttons on mobile */
    }

    #logoutModal .btn-secondary,
    #logoutModal .btn-danger {
        width: 100%; /* Full width on mobile */
        margin-bottom: 8px;
    }

    #logoutModal .btn-danger {
        margin-bottom: 0; /* Remove margin from last button */
    }
}


/* Mobile responsiveness */
@media (max-width: 768px) {
    #loginModal .modal-dialog,
    #welcomeModal .modal-dialog,
    #logoutModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #settingsModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }
}


.noavsel {
    border: 2px solid #4CAF50;
    border-radius: 50%;
    padding: 4px;
    box-sizing: border-box;
}


.avatar-scroll-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.avatar-scroll-wrapper {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.avatar-options-row {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.avatar-option {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 84px;
    height: 84px;
}

.avatar-option-sm {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 60px;
    height: 60px;
}

    .avatar-option-sm img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }



.avatar-option-xs {
    flex: 0 0 auto;
    cursor: pointer;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}

    .avatar-option-xs img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .avatar-option-xs.selected {
        border-color: #4CAF50;
    }


.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.avatar-option:hover {
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: #4CAF50;
}

/* User Initials Avatar - Top Nav */
.user-initials-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgb(0, 255, 136), #00cc6a);
    color: #000;
    font-weight: 600;
    font-size: 0.75rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 0 2px rgba(0, 255, 136, 0.5);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.user-initials-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.5);
}

.user-initials-avatar span,
.user-initials-avatar:hover span {
    color: #000 !important;
}

/* Pro badge */
.user-initials-avatar .pro-badge,
.user-avatar-img .pro-badge {
    position: absolute;
    bottom: -4px;
    right: -8px;
    font-size: 0.45rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff !important;
    background: #0ea5e9;
    padding: 1px 4px;
    border-radius: 2px;
    line-height: 1.3;
    border: 1px solid #131722;
    pointer-events: none;
}

/* Logged-in status dot */
.user-initials-avatar.logged-in::after,
.user-avatar-img.logged-in::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #131722;
}

/* User Avatar Image - Top Nav */
.user-avatar-img {
    width: 32px;
    height: 32px;
    position: relative;
    cursor: pointer;
}

.user-avatar-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: transform 0.15s;
}

.user-avatar-img:hover img {
    transform: scale(1.05);
}

/* Settings Modal - V3 makeover (matches login / welcome / paywall modals) */
#settingsModal .modal-dialog {
    max-width: 680px;
    margin: 1.75rem auto;
}

#settingsModal .modal-content {
    position: relative;
    color: #E6E8EF;
    background:
        radial-gradient(520px 220px at 50% 0%, rgba(124,107,255,0.12), transparent 70%),
        #161925;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 8px;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.05) inset,
        0 30px 80px rgba(0,0,0,0.6),
        0 6px 16px rgba(0,0,0,0.4);
}
#settingsModal .modal-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, #c4b5fd, #f0abfc, #e3e3e3);
    pointer-events: none;
}

#settingsModal .modal-header {
    background: transparent;
    border-bottom: none;
    padding: 30px 36px 26px;
    justify-content: space-between;
    align-items: center;
}

#settingsModal .modal-title {
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin: 0;
}

#settingsModal .btn-close {
    background: none;
    border: 0;
    color: rgba(255,255,255,0.5);
    opacity: 1;
    margin: 0;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 120ms, color 120ms;
}

    #settingsModal .btn-close:hover {
        color: #fff;
        background-color: rgba(255,255,255,0.07);
    }

    /* Override Bootstrap's close button styling for settings modal */
    #settingsModal .btn-close::before {
        content: "×";
        font-size: 24px;
        line-height: 1;
        color: inherit;
    }

#settingsModal .modal-body {
    color: #E6E8EF;
    padding: 0 36px;
}

/* Inputs */
#settingsModal .form-control,
#settingsModal .form-select {
    padding: 13px 15px;
    font-size: 15px;
    color: #E6E8EF;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    transition: border-color 120ms, background 120ms;
}

    #settingsModal .form-control::placeholder {
        color: rgba(230,232,239,0.4);
    }

    #settingsModal .form-control:focus,
    #settingsModal .form-select:focus {
        outline: none;
        border-color: rgba(196,181,253,0.5);
        background: rgba(255,255,255,0.07);
        color: #E6E8EF;
        box-shadow: none;
    }

#settingsModal .form-control.mono {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
}

#settingsModal .form-label {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

#settingsModal .form-check-label {
    color: #E6E8EF;
    font-weight: 500;
}

#settingsModal .form-check-input {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    accent-color: #C4B5FD;
}

    #settingsModal .form-check-input:checked {
        background-color: #C4B5FD;
        border-color: #C4B5FD;
    }

    #settingsModal .form-check-input:focus {
        border-color: #C4B5FD;
        box-shadow: 0 0 0 0.2rem rgba(196,181,253,0.25);
    }

/* Hotkey 2x2 grid */
#settingsModal .hotkey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}

/* Avatar carousel */
#settingsModal .avatar-scroll-container {
    display: block;
    position: relative;
    background: rgba(255,255,255,0.018);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 22px 56px;
}

#settingsModal .avatar-options-row {
    gap: 22px;
}

#settingsModal .avatar-option:hover {
    transform: translateY(-2px);
}

#settingsModal .avatar-option.selected {
    border-color: #C4B5FD;
    box-shadow: 0 0 0 3px rgba(196,181,253,0.18), 0 8px 20px rgba(107,90,237,0.35);
}

#settingsModal .scroll-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.6);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 120ms, color 120ms;
}

    #settingsModal .scroll-button.scroll-left { left: 12px; }
    #settingsModal .scroll-button.scroll-right { right: 12px; }

    #settingsModal .scroll-button:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
    }

    #settingsModal .scroll-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

/* Footer / CTA */
#settingsModal .modal-footer {
    display: block;
    border-top: none;
    padding: 8px 36px 34px;
}

    #settingsModal .modal-footer > span {
        display: block;
        width: 100%;
    }

#settingsModal .btn-primary,
#settingsModal .btn-soft-info {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #1a1330;
    background: linear-gradient(180deg, #FFFFFF 0%, #E6DEFF 100%);
    border: 0;
    border-radius: 6px;
    box-shadow:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 0 0 1px rgba(255,255,255,0.12),
        0 14px 34px rgba(196,181,253,0.32);
    transition: filter 120ms, transform 120ms;
}

    #settingsModal .btn-primary:hover,
    #settingsModal .btn-soft-info:hover {
        filter: brightness(1.03);
        background: linear-gradient(180deg, #FFFFFF 0%, #E6DEFF 100%);
        color: #1a1330;
    }

    #settingsModal .btn-primary:active,
    #settingsModal .btn-soft-info:active {
        transform: translateY(1px);
    }

#settingsModal .btn-secondary {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 13px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    color: #E6E8EF;
    font-weight: 600;
    border-radius: 6px;
    transition: background 120ms, border-color 120ms, color 120ms;
}

    #settingsModal .btn-secondary:hover {
        background: rgba(255,255,255,0.09);
        border-color: rgba(255,255,255,0.2);
        color: #fff;
    }

/* Links (e.g. Generate Username) */
#settingsModal a {
    display: inline-block;
    margin-top: 6px;
    color: #C4B5FD;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

    #settingsModal a:hover {
        color: #DCD0FF;
        text-decoration: underline;
    }

/* Mobile responsiveness */
@media (max-width: 768px) {
    #settingsModal .modal-dialog {
        margin: 0.5rem;
        max-width: none;
    }

    #settingsModal .modal-header {
        padding: 24px 22px 20px;
    }

    #settingsModal .modal-body {
        padding: 0 22px;
    }

    #settingsModal .hotkey-grid {
        gap: 16px 18px;
    }

    #settingsModal .modal-footer {
        padding: 8px 22px 24px;
    }

    #settingsModal .avatar-scroll-container {
        padding: 18px 48px;
    }
}


body > nav > div > div > div.navbar-right > div.dropdown.d-inline-block > button,
.dropdown-item:focus,
.dropdown-item:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Also target any links within dropdown items */
body > nav > div > div > div.navbar-right > div.dropdown.d-inline-block > button,
.dropdown-menu a:focus,
.dropdown-menu a:active {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}



.modal-search-custom {
    max-width: 450px; /* Makes it narrower */
    margin-top: 10%; /* Positions it lower on the page */
}

/* Mobile responsive */
@media (max-width: 768px) {
    .modal-search-custom {
        margin-top: 10%;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
}

/* V1 ticker search modal */
.s8-search-modal {
    --s8-search-green: #4ade80;
    --s8-search-green-2: #4ade80;
    --s8-search-green-dark: #4ade80;
    --s8-search-cyan: #38bdf8;
    --s8-search-amber: #fbbf24;
    --s8-search-purple: #a89bff;
    --s8-search-text: #e6e8ef;
    --s8-search-muted: #8a92a6;
    --s8-search-faint: rgba(230, 232, 239, 0.4);
    --s8-search-panel: #12151e;
    --s8-search-border: rgba(255, 255, 255, 0.08);
    --s8-search-hover: rgba(255, 255, 255, 0.04);
    --s8-search-green-soft: rgba(34, 197, 94, 0.12);
    --s8-search-selected: rgba(255, 255, 255, 0.075);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.s8-search-modal .modal-backdrop {
    background: #000;
}

.s8-search-dialog.modal-search-custom {
    max-width: 540px;
    margin: 9vh auto 0;
}

.s8-search-panel {
    width: 540px;
    max-width: 100%;
    background: var(--s8-search-panel);
    border: 1px solid var(--s8-search-border);
    border-radius: 3px;
    overflow: hidden;
    color: var(--s8-search-text);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.s8-search-top {
    padding: 18px 18px 14px;
}

.s8-search-top h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--s8-search-muted);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.s8-search-esc,
.s8-search-kbd {
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--s8-search-border);
    border-radius: 5px;
    color: var(--s8-search-muted);
}

.s8-search-esc {
    font-size: 10px;
    color: var(--s8-search-faint);
    padding: 2px 6px;
    letter-spacing: 0.8px;
    text-transform: none;
    font-weight: 600;
}

.s8-search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1.5px solid var(--s8-search-green-dark);
    border-radius: 9px;
    padding: 10px 14px;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.10);
}

.s8-search-field i {
    width: 16px;
    color: var(--s8-search-muted);
    font-size: 14px;
}

.s8-search-field .modal-search {
    flex: 1;
    width: auto;
    height: auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: none;
    color: #fff;
    padding: 0;
    border-radius: 0;
    font-size: 14.5px;
    font-weight: 500;
}

.s8-search-field .modal-search:focus,
.s8-search-field #tickerSearch:focus {
    border-color: transparent !important;
    outline: none;
}

.s8-search-field .modal-search::placeholder {
    color: rgba(230, 232, 239, 0.35);
}

.s8-search-clear {
    font-family: inherit;
    font-size: 10.5px;
    color: var(--s8-search-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--s8-search-border);
    border-radius: 5px;
    padding: 2px 6px;
    cursor: pointer;
    line-height: 1.3;
}

.s8-search-clear.d-none {
    display: none;
}

.s8-search-pills {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.s8-search-pill {
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--s8-search-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--s8-search-border);
    border-radius: 5px;
    padding: 3px 8px;
    cursor: pointer;
}

.s8-search-pill.on {
    color: var(--s8-search-green-2);
    background: rgba(34, 197, 94, 0.10);
    border-color: rgba(34, 197, 94, 0.25);
}

.s8-search-modal .search-results {
    display: block;
    position: static;
    width: 100%;
    max-height: 440px;
    overflow-y: auto;
    background: transparent;
    border: 0;
    box-shadow: none !important;
}

.s8-search-modal .list-group {
    background: transparent;
}

.s8-search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px 6px;
    border-top: 1px solid var(--s8-search-border);
    font-size: 10.5px;
    font-weight: 800;
    color: var(--s8-search-faint);
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.s8-search-section-header:first-child {
    border-top: 0;
}

.s8-search-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    margin-right: 7px;
    background: var(--ac-c);
    vertical-align: middle;
}

.s8-search-count {
    font-weight: 700;
    color: var(--s8-search-muted);
}

.s8-search-row {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 120ms;
    position: relative;
    color: var(--s8-search-text);
}

.s8-search-row:hover {
    background: var(--s8-search-hover);
}

.s8-search-row.selected {
    background: var(--s8-search-selected) !important;
    color: var(--s8-search-text) !important;
}

.s8-search-modal #searchResults .list-group .search-result-item.selected {
    background: var(--s8-search-selected) !important;
    color: var(--s8-search-text) !important;
}

.s8-search-row:hover::before,
.s8-search-row.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--s8-search-green);
}

.s8-search-modal #searchResults .list-group .search-result-item.selected .ticker-symbol,
.s8-search-modal #searchResults .list-group .search-result-item.selected .company-name {
    color: inherit !important;
}

.s8-search-modal #searchResults .list-group .search-result-item.selected .ticker-symbol {
    color: #fff !important;
}

.s8-search-tile {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    color: var(--ac-c);
    background: var(--ac-bg);
    border: 1px solid var(--ac-bd);
}

.s8-search-mid {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.s8-search-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.s8-search-row .ticker-symbol {
    font-weight: 650;
    font-size: 14.5px;
    color: #fff;
    letter-spacing: 0;
}

.s8-search-row .ticker-symbol mark {
    color: var(--s8-search-green-2);
    background: transparent;
    padding: 0;
    font-weight: 650;
}

.s8-search-row .company-name {
    font-size: 12.5px;
    color: var(--s8-search-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 340px;
}

.s8-search-asset {
    font-family: inherit;
    font-size: 10px;
    color: var(--ac-c);
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    background: var(--ac-bg);
    border: 1px solid var(--ac-bd);
    border-radius: 4px;
    padding: 3px 7px;
}

.s8-search-empty {
    padding: 18px;
    border-top: 1px solid var(--s8-search-border);
    color: var(--s8-search-muted);
    font-size: 13px;
}

.s8-search-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid var(--s8-search-border);
    font-family: inherit;
    font-size: 10.5px;
    color: var(--s8-search-faint);
    background: rgba(0, 0, 0, 0.2);
}

.s8-search-keys {
    display: flex;
    align-items: center;
    gap: 14px;
}

.s8-search-key {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.s8-search-kbd {
    padding: 1px 5px;
    font-size: 9.5px;
    min-width: 16px;
    text-align: center;
}

.s8-search-modal .ac-stock {
    --ac-c: var(--s8-search-green-2);
    --ac-bg: rgba(34, 197, 94, 0.08);
    --ac-bd: rgba(34, 197, 94, 0.20);
}

.s8-search-modal .ac-futures {
    --ac-c: var(--s8-search-amber);
    --ac-bg: rgba(251, 191, 36, 0.08);
    --ac-bd: rgba(251, 191, 36, 0.22);
}

.s8-search-modal .ac-forex {
    --ac-c: var(--s8-search-cyan);
    --ac-bg: rgba(56, 189, 248, 0.08);
    --ac-bd: rgba(56, 189, 248, 0.22);
}

.s8-search-modal .ac-crypto {
    --ac-c: var(--s8-search-purple);
    --ac-bg: rgba(168, 155, 255, 0.08);
    --ac-bd: rgba(168, 155, 255, 0.22);
}

@media (max-width: 768px) {
    .s8-search-dialog.modal-search-custom {
        max-width: calc(100% - 28px);
        margin: 10vh auto 0;
    }

    .s8-search-panel {
        width: 100%;
    }

    .s8-search-footer {
        display: none;
    }
}


.line1 {
    font-size: 20px;
    font-weight: 700;
    color: #ff6b35;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.line2 {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 24px;
}

.upgrade-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    color: white;
    padding: 18px 36px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

    .upgrade-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    }

/* Gradient separator for footer */
.footer-separator {
    max-width: 1200px;
    margin: 40px auto;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(16, 185, 129, 0.5) 20%, rgba(16, 185, 129, 0.5) 80%, transparent 100%);
    border: none;
}

/* Corner Ad Popup */
.corner-ad {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1050;
    max-width: 400px;
    width: 90vw;
    background: var(--section-medium, #0c0c12);
    border: 1px solid var(--border-light, rgba(255,255,255,0.15));
    border-radius: 2px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    overflow: hidden;
}

.corner-ad.visible {
    opacity: 1;
    transform: translateY(0);
}

.corner-ad-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.15));
}

.corner-ad-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted, rgba(255,255,255,0.6));
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 2px;
}

.corner-ad-remove {
    color: var(--text-muted, rgba(255,255,255,0.6));
    font-size: 0.7rem;
    text-decoration: none;
    margin-left: auto;
    margin-right: 8px;
    transition: color 0.2s;
}

.corner-ad-remove:hover {
    color: var(--accent-cyan, #22d3ee);
}

.corner-ad-close {
    background: none;
    border: none;
    color: var(--text-muted, rgba(255,255,255,0.6));
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 4px;
    transition: color 0.2s;
}

.corner-ad-close:hover {
    color: var(--text-primary, #ffffff);
}

.corner-ad-content {
    padding: 12px;
}

.corner-ad-content a {
    color: var(--accent-cyan, #22d3ee);
    text-decoration: none;
}

.corner-ad-content a:hover {
    text-decoration: underline;
}

.corner-ad-content img {
    max-width: 100%;
    height: auto;
    border-radius: 2px;
}

/* Hide corner ads for premium users */
.is-premium .corner-ad {
    display: none !important;
}

@media (max-width: 480px) {
    .corner-ad {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        width: auto;
    }
}

/* ── Webull Inline Brand Chip ───────────────────────────────── */
.wb-chip {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    text-decoration: none;
    padding: 7px 13px;
    border-radius: 9px;
    border: 1px solid rgba(74,107,255,0.28);
    background: linear-gradient(180deg, rgba(31,60,255,0.13) 0%, rgba(31,60,255,0.06) 100%);
    transition: border-color 160ms, background 160ms;
    position: relative;
    margin-right: 20px;
}
.wb-chip::after {
    content: '';
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}
.wb-chip:hover {
    border-color: rgba(74,107,255,0.55);
    background: linear-gradient(180deg, rgba(31,60,255,0.22) 0%, rgba(31,60,255,0.10) 100%);
}
.wb-chip .wb-mark { height: 14px !important; display: block !important; color: rgba(255,255,255,0.90) !important; background: transparent !important; }
.wb-chip .wb-mark svg { display: block !important; height: 100% !important; width: auto !important; fill: currentColor !important; background: transparent !important; }
.wb-chip .wb-vr { width: 1px !important; height: 16px !important; background: rgba(255,255,255,0.16) !important; flex-shrink: 0 !important; }
.wb-chip .wb-cta {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: rgba(230,232,239,0.78) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: transparent !important;
    transition: color 160ms;
    white-space: nowrap !important;
}
.wb-chip:hover .wb-cta { color: #fff !important; }
.wb-chip .wb-cta svg { transition: transform 160ms; background: transparent !important; }
.wb-chip:hover .wb-cta svg { transform: translateX(2px); }
@media (max-width: 991px) { .wb-chip { display: none; } }
