/* Modern Financial Dashboard Redesign - Professional & Interactive */

/* Baskerville Font for all text */
* {
    font-family: 'Baskerville', 'Baskerville Old Face', 'Goudy Old Style', 'Palatino', 'Palatino Linotype', 'Book Antiqua', serif !important;
}

/* Exclude Font Awesome and other icon fonts */
i[class*="fa-"],
i[class*="fas"],
i[class*="far"],
i[class*="fab"],
i[class*="fal"],
[class*="fa-"]:before,
[class*="fa-"]:after,
[data-icon]:before,
[data-icon]:after,
.fa,
.fas,
.far,
.fab,
.fal {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 5 Free", "Font Awesome 5 Pro", "FontAwesome" !important;
}

.dashboard-redesign {
    width: 100vw !important;
    max-width: 100% !important;
    min-height: 100vh;
    background: linear-gradient(135deg, #000000 0%, #0D0D0D 50%, #1A1A1A 100%);
    color: #ffffff;
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    font-family: 'Baskerville', 'Baskerville Old Face', 'Goudy Old Style', 'Palatino', 'Palatino Linotype', 'Book Antiqua', serif;
    isolation: isolate;
}

/* Top Navigation */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00D924;
    margin-right: 2rem;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-tab.active {
    background: #00D924;
    border-color: transparent;
    color: #000000;
    font-weight: 600;
}

.nav-tab i {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: rotate(180deg);
}

.refresh-btn i {
    font-size: 1rem;
}

/* Real-time Connection Status Indicator */
.realtime-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    position: relative;
    transition: all 0.3s ease;
}

.realtime-status-indicator.connected {
    background: rgba(0, 217, 36, 0.1);
    border-color: rgba(0, 217, 36, 0.3);
}

.realtime-status-indicator.disconnected {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.realtime-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    transition: background 0.3s ease;
}

.realtime-status-dot.pulse {
    background: #00D924;
    animation: realtimePulse 2s infinite;
    box-shadow: 0 0 8px rgba(0, 217, 36, 0.6);
}

.realtime-status-indicator.connected .realtime-status-dot {
    background: #00D924;
}

.realtime-status-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.realtime-status-indicator.connected .realtime-status-text {
    color: #00D924;
}

.realtime-status-indicator.disconnected .realtime-status-text {
    color: #ef4444;
}

.update-rate-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    background: rgba(0, 217, 36, 0.2);
    border: 1px solid rgba(0, 217, 36, 0.4);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00D924;
    margin-left: 0.25rem;
}

@keyframes realtimePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Market Status Indicator */
.market-status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
}

.market-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 2s infinite;
}

.market-status-dot.open {
    background: #00D924;
}

.market-status-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Last Update Indicator */
.last-update-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.6);
}

.last-update-indicator i {
    font-size: 0.875rem;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.user-menu-wrapper {
    position: relative;
    z-index: 999999;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-btn .fa-chevron-down {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.user-menu-btn .fa-chevron-down.open {
    transform: rotate(180deg);
}

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

/* User Dropdown Menu */
.user-dropdown {
    position: fixed !important;
    width: 280px;
    background: #000000 !important;
    opacity: 1 !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem 0;
    z-index: 2147483647 !important; /* Maximum z-index value */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.8);
    isolation: isolate;
    will-change: transform;
    pointer-events: auto;
    transform: translateZ(0); /* Force hardware acceleration and new stacking context */
}

.user-dropdown-header {
    padding: 0 1.5rem 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00D924;
}

.user-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

.user-email {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dropdown-item i {
    width: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.dropdown-item:hover i {
    color: #00D924;
}

.dropdown-item.logout {
    color: #FF6B35;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 53, 0.1);
    color: #FF6B35;
}

.dropdown-item.logout:hover i {
    color: #FF6B35;
}

/* Quick Search Bar */
.quick-search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00D924;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.quick-search-bar .fa-search {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.25rem;
}

.search-btn {
    padding: 0.875rem 2rem;
    background: #00D924;
    border: none;
    border-radius: 5px;
    color: #000000;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #00B01F;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 36, 0.3);
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.5rem);
    background: rgba(24, 26, 35, 1);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 5px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 40;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
}

.suggestion-item .s-symbol {
    font-weight: 700;
    color: #00D924;
    min-width: 60px;
}

.suggestion-item .s-name {
    color: rgba(255,255,255,0.6);
    flex: 1;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: rgba(0, 217, 36, 0.1);
    border-left: 3px solid #00D924;
    padding-left: calc(1rem - 3px);
}

.suggestion-item:hover .s-name,
.suggestion-item.active .s-name {
    color: rgba(255,255,255,0.9);
}

/* KPI Cards Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.kpi-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.kpi-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.kpi-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.kpi-icon.portfolio {
    background: rgba(255, 255, 255, 0.08);
    color: #00D924;
}

.kpi-icon.positions {
    background: rgba(255, 255, 255, 0.08);
    color: #8b5cf6;
}

.kpi-icon.performance {
    background: rgba(255, 255, 255, 0.08);
    color: #FF6B35;
}

.kpi-icon.market {
    background: rgba(255, 255, 255, 0.08);
    color: #3b82f6;
}

.kpi-content {
    flex: 1;
}

.kpi-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
}

.kpi-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.kpi-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.kpi-change.positive {
    color: #00D924;
}

.kpi-change.negative {
    color: #ef4444;
}

/* Main Grid Layout */
.main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding: 0 2rem 2rem;
}

.main-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.main-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    border-color: #00D924;
    color: #00D924;
}

/* Watchlist Quick View */
.watchlist-quick {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-row:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stock-row:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 217, 36, 0.35);
    border-color: rgba(0, 217, 36, 0.5);
}

.stock-info {
    flex: 1;
}

.stock-symbol {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: #cc5500;
}

.stock-name {
    font-size: 0.875rem;
    color: #cc5500;
}

.stock-price {
    font-weight: 600;
    font-size: 1.125rem;
    margin-right: 1rem;
}

.stock-price.positive {
    color: #00D924;
}

.stock-price.negative {
    color: #ef4444;
}

.stock-change {
    font-weight: 600;
    font-size: 1rem;
}

.stock-change.positive {
    color: #00D924;
}

.stock-change.negative {
    color: #ef4444;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.empty-state i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.5);
}

/* Insights List */
.insights-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.insight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.insight-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.insight-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    color: #00D924;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.insight-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.insight-content p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Watchlist View */
.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.view-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Watchlist Grid */
.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.watchlist-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.watchlist-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stock-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    color: #cc5500;
}

.more-btn {
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.stock-name {
    font-size: 0.875rem;
    color: #cc5500;
    margin-bottom: 1rem;
}

.stock-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.stock-price-large.positive {
    color: #00D924;
}

.stock-price-large.negative {
    color: #ef4444;
}

.stock-price-large.price-updated.positive {
    animation: priceFlashPositive 1.5s ease-in-out;
    color: #00D924;
}

.stock-price-large.price-updated.negative {
    animation: priceFlashNegative 1.5s ease-in-out;
    color: #ef4444;
}

.stock-price-large.updating {
    position: relative;
    opacity: 0.8;
}

.stock-price-large.updating::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid rgba(0, 217, 36, 0.3);
    border-radius: 4px;
    animation: updatingPulse 1.5s infinite;
}

.price-updating-indicator {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 36, 0.25);
    border: 2px solid rgba(0, 217, 36, 0.5);
    border-radius: 50%;
    z-index: 10;
    box-shadow: 0 0 10px rgba(0, 217, 36, 0.4);
}

.price-updating-indicator i {
    font-size: 0.75rem;
    color: #00D924;
}

.price-value {
    display: inline-block;
}

@keyframes priceFlashPositive {
    0%, 100% {
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
    15% {
        background-color: rgba(0, 217, 36, 0.2);
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(0, 217, 36, 0.4);
    }
    30% {
        background-color: rgba(0, 217, 36, 0.1);
        transform: scale(1.05);
    }
    60% {
        background-color: rgba(0, 217, 36, 0.05);
        transform: scale(1.02);
    }
}

@keyframes priceFlashNegative {
    0%, 100% {
        background-color: transparent;
        transform: scale(1);
        box-shadow: none;
    }
    15% {
        background-color: rgba(239, 68, 68, 0.2);
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }
    30% {
        background-color: rgba(239, 68, 68, 0.1);
        transform: scale(1.05);
    }
    60% {
        background-color: rgba(239, 68, 68, 0.05);
        transform: scale(1.02);
    }
}

@keyframes updatingPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.stock-change-large {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.card-action-btn {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.empty-watchlist {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
}

.empty-watchlist i {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
}

.empty-watchlist h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-watchlist p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.empty-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #00D924, #FF6B35);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.empty-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 217, 36, 0.3);
}

/* News View */
.news-filters {
    display: flex;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: linear-gradient(135deg, #00D924, #FF6B35);
    border-color: transparent;
    color: #ffffff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.news-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.news-card.featured {
    grid-column: 1 / -1;
    position: relative;
}

.news-image-container {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 217, 36, 0.15), rgba(255, 107, 53, 0.15));
}

.news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.news-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 217, 36, 0.15), rgba(255, 107, 53, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #00D924;
    position: absolute;
    top: 0;
    left: 0;
}

.news-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #00D924, #FF6B35);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-content {
    padding: 1.5rem;
}

.news-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 217, 36, 0.2);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #00D924;
    margin-bottom: 0.75rem;
}

.news-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.news-content p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.read-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more:hover {
    border-color: #00D924;
    color: #00D924;
}

/* Intelligence View */
.intel-tabs {
    display: flex;
    gap: 0.5rem;
}

.intel-tab {
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.intel-tab:hover,
.intel-tab.active {
    background: linear-gradient(135deg, #00D924, #FF6B35);
    border-color: transparent;
    color: #ffffff;
}

.intel-content {
    padding: 2rem;
}

.intel-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
}

.intel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.intel-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.intel-count {
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 36, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #00D924;
}

.intel-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intel-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.intel-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.intel-symbol {
    width: 60px;
    text-align: center;
    font-weight: 700;
    font-size: 1.125rem;
}

.intel-details {
    flex: 1;
}

.intel-company {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.intel-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.intel-estimate {
    font-weight: 600;
    color: #00D924;
}

/* Floating AI Button */
.floating-ai-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #00D924, #FF6B35);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 217, 36, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-ai-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 217, 36, 0.4);
}

.tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 0.75rem;
    padding: 0.5rem 1rem;
    background: #1f2937;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.floating-ai-btn:hover .tooltip {
    opacity: 1;
}

/* AI Assistant View */
.assistant-view {
    padding: 2rem;
    height: 100%;
}

.assistant-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.assistant-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.assistant-header p {
    color: rgba(255, 255, 255, 0.6);
}

.assistant-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 217, 36, 0.15);
    border: 1px solid rgba(0, 217, 36, 0.3);
    border-radius: 8px;
    font-size: 0.875rem;
}

.assistant-status .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00D924;
    animation: pulse 2s infinite;
}

.assistant-chat {
    display: flex;
    flex-direction: column;
    height: 520px;
    background: transparent;
    border: none;
    border-radius: 8px;
    overflow: visible;
}

.assistant-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    height: 100%;
    margin: 0 auto;
}

.assistant-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #00D924;
    margin-bottom: 2rem;
}

.assistant-welcome h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.assistant-welcome p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    max-width: 500px;
}

.quick-prompts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    justify-content: center;
    justify-items: center;
    margin: 0 auto;
}

.prompt-btn {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #ffffff;
    font-size: 0.875rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prompt-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00D924;
    transform: translateY(-2px);
}

.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.assistant-msg {
    display: flex;
    margin-bottom: 1rem;
}

.assistant-msg.user {
    justify-content: flex-end;
}

.assistant-msg.user .assistant-msg-content {
    background: #00D924;
    color: #000000;
    max-width: 70%;
}

.assistant-msg.ai .assistant-msg-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 70%;
}

.assistant-msg-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 8px;
}

.ai-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #00D924;
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.assistant-input {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    background: transparent;
    border-top: none;
}

.assistant-input-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
}

.assistant-input-field:focus {
    border-color: #00D924;
}

.assistant-input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: #00D924;
    border: none;
    border-radius: 50%;
    color: #000000;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover:not(:disabled) {
    background: #00B01F;
    transform: translateY(-2px);
}

.send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .quick-search-bar {
        padding: 1rem;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .main-grid {
        padding: 0 1rem 1rem;
    }
    
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-ai-btn {
        width: 56px;
        height: 56px;
        bottom: 1rem;
        right: 1rem;
    }
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: linear-gradient(135deg, #0D0D0D 0%, #1A1A1A 100%);
}

.loading-spinner {
    margin-bottom: 2rem;
}

.loading-container h3 {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ============================================
   PORTFOLIO PERFORMANCE DASHBOARD STYLES
   ============================================ */

/* Portfolio Summary Card */
.portfolio-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
}

.summary-header h2 i {
    color: #cc5500;
}

.summary-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.metric-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.metric-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.metric-item.primary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.metric-item.positive {
    border-left: 3px solid #00D924;
}

.metric-item.negative {
    border-left: 3px solid #ef4444;
}

.metric-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-item.positive .metric-value {
    color: #00D924;
}

.metric-item.negative .metric-value {
    color: #ef4444;
}

.metric-amount {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.performer-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.performer-symbol {
    font-size: 1.25rem;
    font-weight: 700;
    color: #cc5500;
}

.performer-change {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
}

.performer-change.positive {
    color: #00D924;
    background: rgba(0, 217, 36, 0.15);
}

.performer-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Performance Timeline */
.performance-timeline {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.timeline-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.range-selector {
    display: flex;
    gap: 0.5rem;
}

.range-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.range-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.range-btn.active {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.performance-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.performance-value {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.performance-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    flex-wrap: wrap;
}

.performance-change.positive {
    color: #00D924;
}

.performance-change.negative {
    color: #ef4444;
}

.performance-amount {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
}

.performance-loading,
.performance-empty {
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* Enhanced Main Grid */
.main-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.main-card.enhanced {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.main-card.enhanced:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Enhanced Watchlist with Sparklines */
.watchlist-quick-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.stock-row-enhanced {
    display: grid;
    grid-template-columns: 1fr auto 120px;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stock-row-enhanced:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.stock-info-enhanced {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stock-symbol-enhanced {
    font-size: 1.125rem;
    font-weight: 700;
    color: #cc5500;
}

.stock-name-enhanced {
    font-size: 0.875rem;
    color: #cc5500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stock-sparkline {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sparkline-chart {
    display: block;
    width: 80px;
    height: 30px;
    image-rendering: auto;
}

.sparkline-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.stock-price-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.stock-price-enhanced {
    font-size: 1.125rem;
    font-weight: 700;
}

.stock-price-enhanced.positive {
    color: #10B981;
}

.stock-price-enhanced.negative {
    color: #EF4444;
}

.stock-change-enhanced {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.stock-change-enhanced.positive {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.stock-change-enhanced.negative {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

/* Sector Allocation Chart */
.sector-allocation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
}

.sector-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 250px;
}

.sector-chart {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.sector-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

.sector-chart-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.sector-legend {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 250px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    justify-content: space-between;
}

.legend-label {
    flex: 1;
    font-weight: 500;
}

.legend-percentage {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    min-width: 50px;
    text-align: right;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .main-grid-enhanced {
        grid-template-columns: 1fr;
    }
    
    .summary-metrics {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .portfolio-summary-card {
        padding: 1.5rem;
    }
    
    .summary-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .stock-row-enhanced {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stock-price-group {
        align-items: flex-start;
    }
}

/* ============================================
   PREFERENCES MODAL STYLES
   ============================================ */

.preferences-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.preferences-modal {
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease-out;
    overflow: hidden;
}

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

.preferences-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preferences-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preferences-header h2 i {
    color: #cc5500;
}

.preferences-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.preferences-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.preferences-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.preferences-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.preferences-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preferences-section h3 i {
    color: #00D924;
    font-size: 1rem;
}

.preference-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preference-item label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.preference-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00D924;
}

.preference-item select,
.preference-item input[type="number"] {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
    max-width: 300px;
}

.preference-item select:hover,
.preference-item input[type="number"]:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.preference-item select:focus,
.preference-item input[type="number"]:focus {
    outline: none;
    border-color: #00D924;
    background: rgba(255, 255, 255, 0.1);
}

.preferences-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 1rem;
}

.preferences-reset,
.preferences-close-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preferences-reset {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
}

.preferences-reset:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.preferences-close-btn {
    background: #00D924;
    color: #000000;
    border-color: #00D924;
    margin-left: auto;
}

.preferences-close-btn:hover {
    background: #00B81F;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 217, 36, 0.3);
}

/* Scrollbar styling for preferences content */
.preferences-content::-webkit-scrollbar {
    width: 8px;
}

.preferences-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.preferences-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.preferences-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   TRADING VIEW STYLES
   ============================================ */

.trading-coming-soon {
    padding: 2.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.trading-hero {
    text-align: center;
    margin-bottom: 3.5rem;
    padding-top: 1rem;
}

.trading-icon-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: rgba(0, 217, 36, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 217, 36, 0.2);
}

.trading-icon-wrapper i {
    font-size: 2.5rem;
    color: #00D924;
}

.trading-hero h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.trading-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    font-weight: 400;
}

.trading-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.trading-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 2rem;
}

.trading-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.trading-feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
    transition: border-color 0.2s ease;
}

.trading-feature-card:hover {
    border-color: rgba(0, 217, 36, 0.25);
}

.trading-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(0, 217, 36, 0.1);
}

.trading-feature-icon i {
    font-size: 1.4rem;
    color: #00D924;
}

.trading-feature-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.trading-feature-card p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    margin: 0;
}

.trading-benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.trading-benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.015);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.trading-benefit-item i {
    font-size: 1.1rem;
    color: #00D924;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.trading-benefit-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.trading-benefit-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .trading-coming-soon {
        padding: 1.5rem 1rem;
    }
    
    .trading-hero h1 {
        font-size: 2rem;
    }
    
    .trading-subtitle {
        font-size: 1rem;
    }
    
    .trading-section {
        padding: 1.5rem;
    }
    
    .trading-features {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

