@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ============================================ */
/* EXAMPLE DESIGN SYSTEM - ADDED STYLES */
/* ============================================ */

/* Animated Grid Background */
.grid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background-image: 
        linear-gradient(rgba(30, 58, 138, 0.03) 1px, transparent 1px),
linear-gradient(90deg, rgba(30, 58, 138, 0.03) 1px, transparent 1px);    background-size: 50px 50px;
    animation: grid-pulse 8s ease-in-out infinite;
}

@keyframes grid-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.grid-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%),
rgba(59, 130, 246, 0.15) 0%,        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:hover .grid-background::before {
    opacity: 1;
}

/* Content Layer */
.content-layer {
    position: relative;
    z-index: 1;
}

/* Glassmorphism Cards (Enhanced) */
.glass-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.08);    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(26, 26, 26, 0.8);
border-color: rgba(255, 255, 255, 0.15);    transform: translateY(-4px);
box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);}

body.dark-mode .glass-card {
    background: rgba(26, 26, 26, 0.6);
border-color: rgba(255, 255, 255, 0.08);}

body.dark-mode .glass-card:hover {
    background: rgba(26, 26, 26, 0.8);
border-color: rgba(255, 255, 255, 0.15);}

/* Gradient Utilities */
.gradient-purple {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.gradient-purple-dark {
    background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%);
}

.gradient-section-1 {
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0a2e 50%, #0a0a0a 100%);
}

.gradient-section-2 {
background: transparent;}
.gradient-section-3 {
background: transparent;}
/* Float Animation */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float-slow 6s ease-in-out infinite;
}

body { 
    font-family: 'Inter', sans-serif; 
    color: #e5e5e5; 
    background: #0a0a0a; 
    margin: 0; 
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.glossy-background { 
    display: none; /* Grid background replaces this */
}

@keyframes float-particles {
    0%, 100% { transform: translate(0, 0); opacity: 0.3; }
    50% { transform: translate(20px, -20px); opacity: 0.6; }
}

.hero-background-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-background-layer::before,
.hero-background-layer::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float-particles 8s ease-in-out infinite;
}

.hero-background-layer::before {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-background-layer::after {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    bottom: -10%;
    right: -10%;
    animation-delay: 4s;
}

/* Dashboard Layout Refinements */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Dashboard Layout Refinements */
.dashboard-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-performers-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-performers-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

body.dark-mode .dashboard-performers-card {
    background: #0f0f0f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-mode .dashboard-performers-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.performers-vertical-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.performer-card-compact {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark-mode .performer-card-compact {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.performer-card-compact:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
}

body.dark-mode .performer-card-compact:hover {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.dashboard-graph-section {
    margin-top: 1.5rem;
}

.dashboard-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.dashboard-card-equal-height {
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .dashboard-top-row,
    .dashboard-bottom-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-card-equal-height {
        min-height: auto;
    }
}

/* ============================================ */
/* MARKET PAGE STYLES */
/* ============================================ */
/* Market Profile Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 2rem;
}

.market-profile-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

body.dark-mode .market-profile-card {
    background: #0f0f0f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.market-profile-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.15);
}

body.dark-mode .market-profile-card:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
}

.market-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.market-profile-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #000;
}

body.dark-mode .market-profile-info h3 {
    color: #e0e0e0;
}

.market-profile-symbol {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

body.dark-mode .market-profile-symbol {
    color: rgba(255, 255, 255, 0.6);
}

.market-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.market-profile-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}
.market-price-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.25rem;
}

body.dark-mode .market-price-value {
    color: #e0e0e0;
}

.market-price-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.market-profile-role {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.4;
    min-height: 2.8em;
}

body.dark-mode .market-profile-role {
    color: rgba(255, 255, 255, 0.65);
}

.market-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.market-buy-button {
    flex: 1;
    background: linear-gradient(135deg, #2563EB, #2563EB);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.market-buy-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.market-buy-button:hover::before {
    width: 300px;
    height: 300px;
}

.market-buy-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #2563EB, #2563EB);
}

.market-buy-button:active {
    transform: translateY(0) scale(1);
}

.market-sell-button {
    flex: 1;
    background: linear-gradient(135deg, #2e2e2e, #2e2e2e);
    color: #fff;
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(95, 95, 95, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.market-sell-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.market-sell-button:hover::before {
    width: 300px;
    height: 300px;
}

.market-sell-button:hover {
    transform: translateY(-3px) scale(1.05);
    background: linear-gradient(135deg, #b4b4b4, #b4b4b4);
}

.market-sell-button:active {
    transform: translateY(0) scale(1);
}

/* Mobile Responsiveness for Market Page */
@media (max-width: 768px) {
    .market-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }    
    .market-profile-card {
        padding: 1rem;
    }
      /* Consistent card spacing on mobile */
    [style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    .market-grid {
        grid-template-columns: 1fr;
    }
    
    .market-actions {
        flex-direction: column;
    }
    
    .market-buy-button,
    .market-sell-button {
        width: 100%;
    }
}

/* Default 60% zoom for laptop and desktop */
@media (min-width: 992px) {
    body {
        zoom: 0.60;
    }
}       .glossy-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,1)); backdrop-filter: blur(20px); }
        .container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; position: relative; box-sizing: border-box; }
        .page { display: none; animation: fadeIn 0.3s ease-in; }
        .page.active { display: block; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); flex-wrap: wrap; gap: 1rem; }
        .logo { font-size: clamp(24px, 5vw, 36px); font-weight: 600; background: linear-gradient(135deg, #000, #000222); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; cursor: pointer; transition: all 0.3s ease; }
        .logo:hover { transform: translateY(-2px); }
        .nav-links { display: flex; gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; }
        .nav-links a { color: #000; font-weight: 500; text-decoration: none; cursor: pointer; transition: all 0.3s; }
        .nav-links a:hover { opacity: 0.7; }
.hero { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    padding: clamp(6rem, 18vh, 10rem) 0 clamp(4rem, 10vw, 7rem); 
    min-height: 100vh; 
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Remove hero::before grid pattern - grid-background handles this */
.hero::before {
    display: none;
}

.hero > * {
    position: relative;
    z-index: 2;}        
.main-title { 
    font-size: clamp(4rem, 13vw, 8rem); 
    font-weight: 900; 
    margin-bottom: 1.5rem; 
    letter-spacing: clamp(-2px, -0.3vw, -3px); 
    line-height: 0.95; 
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 50%, #fff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

body.dark-mode .main-title {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes title-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1)); }
    50% { filter: drop-shadow(0 0 40px rgba(0, 0, 0, 0.15)); }}       
.subtitle { 
    font-size: clamp(1.5rem, 4.5vw, 2rem); 
    color: rgba(255, 255, 255, 0.7); 
    margin: 0 auto clamp(2.5rem, 6vw, 3.5rem); 
    max-width: 90%; 
    font-weight: 400; 
    letter-spacing: -0.02em;
    text-align: center;
}

body.dark-mode .subtitle {
    color: rgba(255, 255, 255, 0.7);
}       
.cta-button { 
background: linear-gradient(135deg, #2563EB 0%, #2563EB 100%);    color: #fff; 
    font-weight: 700;
    box-shadow: 
    0 4px 20px rgba(15, 23, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    padding: 1rem clamp(2.5rem, 5vw, 3.5rem); 
    border-radius: 8px; 
    font-size: clamp(1rem, 2.2vw, 1.15rem); 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
border: 1px solid rgba(37, 99, 235, 0.3);    box-shadow: 
        0 4px 20px rgba(91, 33, 182, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: none;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover { 
    transform: translateY(-3px) scale(1.05); 
    box-shadow: 
        0 12px 35px rgba(91, 33, 182, 0.5),
        0 0 60px rgba(168, 85, 247, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.stock-ticker { 
    display: flex; 
    overflow: hidden; 
    white-space: nowrap; 
    padding: 1rem 0; 
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 1) 0%,
        rgba(10, 10, 10, 1) 50%,
        rgba(0, 0, 0, 1) 100%
    );
}

.ticker-item { 
    display: inline-flex; 
    gap: 2.5rem; 
    animation: ticker 90s linear infinite; 
    padding-right: 2.5rem;
}

@keyframes ticker { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

.ticker-name { 
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600; 
    color: #fff; 
    margin-right: 0.75rem; 
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.ticker-value { 
    font-family: 'JetBrains Mono', monospace;
    color: #00ff88; 
    margin-right: 2.5rem; 
    font-weight: 600;
    font-size: 0.9rem;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    animation: pulse-green 2s ease-in-out infinite;
}

.ticker-value.negative { 
    color: #ff3366; 
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
    animation: pulse-red 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes pulse-red {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ============================================ */
/* TICKER IMAGES - SUPABASE INTEGRATION */
/* ============================================ */

/* Ticker Image Styles */
.ticker-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.ticker-item-content {
    display: inline-flex;
    align-items: center;
    margin-right: 2.5rem;
}

/* Market Profile Card Images */
.market-profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

body.dark-mode .market-profile-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Dashboard Performer Card Images */
.performer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

body.dark-mode .performer-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Ticker Detail Page Avatar */
.ticker-detail-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-right: 1.5rem;
}

body.dark-mode .ticker-detail-avatar {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Watchlist Images */
.watchlist-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stock-ticker-container { 
    width: 100%; 
    position: relative; 
    background: #000; 
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);    
    box-shadow: 
    0 -2px 20px rgba(0, 0, 0, 0.2),
    0 2px 20px rgba(0, 0, 0, 0.2);}

.stock-ticker-container::before,
.stock-ticker-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.stock-ticker-container::before {
    left: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, transparent 100%);
}

.stock-ticker-container::after {
    right: 0;
    background: linear-gradient(270deg, rgba(0, 0, 0, 1) 0%, transparent 100%);
}
        .section { 
    padding: clamp(4rem, 8vw, 6rem) 0; 
    position: relative;
}

.section-title { 
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    font-weight: 700; 
    margin-bottom: clamp(2rem, 4vw, 3rem); 
    letter-spacing: -1px; 
background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

body.dark-mode .section-title {
background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);    -webkit-background-clip: text;
    background-clip: text;
}
        .content-box { 
    background: rgba(26, 26, 26, 0.6); 
    backdrop-filter: blur(12px);
    color: #e5e5e5; 
    padding: clamp(1.5rem, 4vw, 2.5rem); 
    border-radius: 12px; 
    margin-bottom: 2rem; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);border: 1px solid rgba(255, 255, 255, 0.08);}

.content-box:hover { 
    transform: translateY(-6px) scale(1.02); 
box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);border-color: rgba(255, 255, 255, 0.15);}

body.dark-mode .content-box {
    background: rgba(26, 26, 26, 0.6);
border-color: rgba(255, 255, 255, 0.08);}
body.dark-mode .content-box:hover {
border-color: rgba(255, 255, 255, 0.15);}
        .auth-content { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 2rem 0; width: 100%; }
        .auth-card { background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2rem); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); width: 100%; max-width: 420px; }
        .auth-tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
        .auth-tab { padding: 0.75rem 1.5rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; }
        .auth-tab.active { border-bottom: 2px solid #000; font-weight: 600; }
        body.dark-mode .auth-tab {color: #e0e0e0;}        
        .auth-form { display: none; }
        .auth-form.active { display: block; }
        .form-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
        .form-group { margin-bottom: 1.5rem; }
        .form-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.5rem; }
        .form-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; font-size: 1rem; transition: all 0.3s; box-sizing: border-box; }
        .form-input:focus { outline: none; border-color: rgba(0, 0, 0, 0.3); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05); }
        .auth-button { 
    width: 100%; 
    background: linear-gradient(135deg, #2563EB, #2563EB); 
    color: #fff; 
    font-weight: 600; 
    padding: 0.9rem; 
    border-radius: 4px; 
    font-size: 1rem; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1); 
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.auth-button:hover::before {
    width: 300px;
    height: 300px;
}

.auth-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
        .dashboard-header { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); flex-wrap: wrap; gap: 1rem; }
        .logo-small { font-size: clamp(22px, 4vw, 28px); font-weight: 600; background: linear-gradient(135deg, #000, #000222); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; cursor: pointer; }
        .search-container { position: relative; width: 100%; max-width: 400px; flex: 1; min-width: 200px; }
        .search-input { width: 100%; padding: 0.75rem 1rem 0.75rem 2.5rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; font-size: 0.9rem; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); transition: all 0.3s; }
        .search-input:focus { outline: none; border-color: rgba(0, 0, 0, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
        .search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: rgba(0, 0, 0, 0.4); }
        .search-results { position: absolute; top: 100%; left: 0; width: 100%; background: #fff; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); z-index: 10; margin-top: 0.5rem; max-height: 300px; overflow-y: auto; display: none; }
        .search-result-item { padding: 0.75rem 1rem; cursor: pointer; transition: all 0.2s; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
        .search-result-item:hover { background: rgba(0, 0, 0, 0.03); }
        .search-result-item:last-child { border-bottom: none; }
        .no-results { padding: 1rem; text-align: center; color: rgba(0, 0, 0, 0.6); }
        .user-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
        .user-avatar { width: 38px; height: 38px; border-radius: 50%; background: #f0f0f0; display: flex; align-items: center; justify-content: center; font-weight: 600; color: #000; border: 1px solid rgba(0, 0, 0, 0.1); flex-shrink: 0; }
        .dark-button { 
    background: linear-gradient(135deg, #000, #1a1a1a); 
    color: #fff; 
    font-weight: 500; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); 
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.dark-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.dark-button:hover::before {
    width: 200px;
    height: 200px;
}

.dark-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}
        .light-button { 
    background: #fff; 
    color: #000; 
    font-weight: 500; 
    padding: 0.5rem 1rem; 
    border-radius: 4px; 
    font-size: 0.9rem; 
    cursor: pointer; 
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); 
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.light-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.light-button:hover::before {
    width: 200px;
    height: 200px;
}

.light-button:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}
        .sub-nav { display: flex; margin: 1.5rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); gap: clamp(1rem, 3vw, 2rem); flex-wrap: wrap; }
        .sub-nav-link { font-size: 0.95rem; font-weight: 500; color: #000; cursor: pointer; padding: 0.25rem 0; position: relative; transition: all 0.3s; }
        .sub-nav-link.active { font-weight: 600; }
        .sub-nav-link.active::after { content: ''; position: absolute; bottom: -0.5rem; left: 0; width: 100%; height: 2px; background: #000; }
        .sub-nav-link:hover { opacity: 0.7; }
        .performers-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
        .performer-card { padding: 1rem; border-radius: 6px; background: rgba(0, 0, 0, 0.02); border: 1px solid rgba(0, 0, 0, 0.05); cursor: pointer; transition: all 0.3s; }
        .performer-card:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); background: rgba(0, 0, 0, 0.03); }
        .positive { color: #0c0; }
        .negative { color: #f00; }
.detail-card { 
    background: #fff; 
    border: 1px solid rgba(0, 0, 0, 0.08); 
    border-radius: 8px; 
    padding: clamp(1rem, 2.5vw, 1.25rem); 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); 
    margin-bottom: 0; 
    width: 100%; 
    box-sizing: border-box;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}        

/* Authenticated Pages - Purple Accent Theme */
body.dark-mode .detail-card {
    background: rgba(26, 26, 26, 0.6);
border: 1px solid rgba(255, 255, 255, 0.08);    backdrop-filter: blur(12px);
}

body.dark-mode .detail-card:hover {
border-color: rgba(255, 255, 255, 0.15);}

body.dark-mode .dashboard-performers-card {
    background: rgba(26, 26, 26, 0.6);
border: 1px solid rgba(255, 255, 255, 0.08);    backdrop-filter: blur(12px);
}

body.dark-mode .market-profile-card {
    background: rgba(26, 26, 26, 0.6);
border: 1px solid rgba(255, 255, 255, 0.08);    backdrop-filter: blur(12px);
}

body.dark-mode .market-profile-card:hover {
border-color: rgba(255, 255, 255, 0.15);    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
}
        .wallet-balance { text-align: center; padding: clamp(1.5rem, 4vw, 2.5rem); }
        .balance-amount { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 700; margin: 1rem 0; }
        .back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(0, 0, 0, 0.6); font-weight: 500; margin: 1.5rem 0 1rem; cursor: pointer; transition: all 0.3s; }
        .back-link:hover { color: #000; }
        .trade-tabs { display: flex; margin-bottom: 1.5rem; border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
        .trade-tab { padding: 0.75rem 1.5rem; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s; }
        .trade-tab.active { border-bottom: 2px solid #000; font-weight: 600; }
        body.dark-mode .trade-tab {color: #e0e0e0;}        
        .positions-table { width: 100%; border-collapse: collapse; }
        .positions-table th { text-align: left; padding: 0.75rem 1rem; font-weight: 500; color: rgba(0, 0, 0, 0.6); border-bottom: 1px solid rgba(0, 0, 0, 0.1); background: rgba(0, 0, 0, 0.02); font-size: 0.9rem; }
        .positions-table td { padding: 1rem; border-bottom: 1px solid rgba(0, 0, 0, 0.05); font-size: 0.9rem; }
        .positions-table tr:hover { background: rgba(0, 0, 0, 0.02); }
        .side-tag { display: inline-flex; padding: 0.25rem 0.75rem; border-radius: 4px; font-weight: 500; font-size: 0.8rem; }
        .side-tag.long { background: rgba(0, 204, 0, 0.1); color: #0c0; }
        .side-tag.short { background: rgba(255, 0, 0, 0.1); color: #f00; }
        .empty-state { padding: 3rem 0; text-align: center; color: rgba(0, 0, 0, 0.5); }
        .watchlist-action { opacity: 0; transition: all 0.2s; }
        tr:hover .watchlist-action { opacity: 1; }
        .modal-background { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 100; align-items: center; justify-content: center; backdrop-filter: blur(4px); display: none; }
        .modal { background: #fff; border-radius: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); width: 90%; max-width: 500px; padding: clamp(1rem, 4vw, 2rem); max-height: 90vh; overflow-y: auto; }
        .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
        .modal-title { font-size: 1.2rem; font-weight: 600; }
        .modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: rgba(0, 0, 0, 0.5); transition: all 0.2s; }
        .modal-close:hover { color: #000; }
        .watchlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; max-height: 300px; overflow-y: auto; }
        .watchlist-item { padding: 0.75rem; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 4px; display: flex; justify-content: space-between; align-items: center; transition: all 0.2s; flex-wrap: wrap; gap: 0.5rem; }
        .watchlist-item:hover { background: rgba(0, 0, 0, 0.02); }
        /* Dark mode adaptive text class */
.adaptive-text {
    color: inherit;
}

        /* Dark Mode Styles - Comprehensive Text Colors */
/* Dark Mode Styles - Comprehensive Text Colors */
body.dark-mode {
    color: #e0e0e0;
    background-color: #0a0a0a;
}

body.dark-mode .glossy-background {
    background: linear-gradient(180deg, #0a0a0a 0%, #121212 100%);
}

body.dark-mode .hero::before {
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px
        );
}

body.dark-mode .main-title {
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

body.dark-mode .cta-button {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.dark-mode .cta-button:hover {
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 60px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .stock-ticker-container {
    background: #000;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 -2px 20px rgba(0, 0, 0, 0.5),
        0 2px 20px rgba(0, 0, 0, 0.5);
}
body.dark-mode .glass-overlay {
    background: linear-gradient(135deg, rgba(30,30,30,0.5), rgba(30,30,30,0.2));
}
body.dark-mode .logo {
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
}
body.dark-mode .logo-small {
    background: linear-gradient(135deg, #fff, #e0e0e0);
    -webkit-background-clip: text;
    background-clip: text;
}
body.dark-mode .nav-links a {
    color: #e0e0e0;
}
body.dark-mode .header, 
body.dark-mode .dashboard-header,
body.dark-mode .sub-nav {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .subtitle {
    color: rgba(255, 255, 255, 0.7);
}
body.dark-mode .detail-card, 
body.dark-mode .auth-card,
body.dark-mode .modal {
    background: #0f0f0f;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    color: #e0e0e0;
}

body.dark-mode .detail-card:hover {
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(255, 255, 255, 0.03);
}
body.dark-mode .performer-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
body.dark-mode .performer-card:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
body.dark-mode .content-box {
    background: linear-gradient(135deg, #2a2a2a, #1e1e1e);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
body.dark-mode .form-input,
body.dark-mode .search-input {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}
body.dark-mode .form-input::placeholder,
body.dark-mode .search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-mode .form-input:focus,
body.dark-mode .search-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}
body.dark-mode .form-label {
    color: #e0e0e0;
}
body.dark-mode .positions-table th {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .positions-table td {
    border-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}
body.dark-mode .positions-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}
body.dark-mode .sub-nav-link {
    color: #e0e0e0;
}
body.dark-mode .sub-nav-link.active::after {
    background: #fff;
}
body.dark-mode .dark-button {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

body.dark-mode .dark-button:hover {
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.1);
}

body.dark-mode .light-button {
    background: #1a1a1a;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-mode .light-button:hover {
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 255, 255, 0.05);
}
body.dark-mode .user-avatar {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: rgba(255, 255, 255, 0.2);
}
body.dark-mode .auth-tab.active {
    border-bottom-color: #fff;
}
body.dark-mode .empty-state {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-mode .back-link {
    color: rgba(255, 255, 255, 0.6);
}
body.dark-mode .back-link:hover {
    color: #fff;
}
body.dark-mode .trade-tab.active {
    border-bottom-color: #fff;
}
body.dark-mode .search-results {
    background: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .search-result-item {
    border-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
}
body.dark-mode .search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}
body.dark-mode .no-results {
    color: rgba(255, 255, 255, 0.6);
}
body.dark-mode .modal-close {
    color: rgba(255, 255, 255, 0.5);
}
body.dark-mode .modal-close:hover {
    color: #fff;
}
body.dark-mode .watchlist-item {
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .watchlist-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* More comprehensive text color fixes for dark mode */
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4, 
body.dark-mode h5, 
body.dark-mode h6 {
    color: #e0e0e0;
}

body.dark-mode p, 
body.dark-mode span:not(.positive):not(.negative), 
body.dark-mode div:not(.positive):not(.negative), 
body.dark-mode td, 
body.dark-mode th, 
body.dark-mode li, 
body.dark-mode label {
    color: #e0e0e0;
}

/* Inline style overrides for dark mode */
body.dark-mode [style*="color: rgba(0, 0, 0, 0.6)"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode [style*="color: rgba(0, 0, 0, 0.5)"] {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode [style*="color: rgba(0,0,0,0.6)"] {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode [style*="color: rgba(0,0,0,0.8)"] {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode [style*="color: #000"] {
    color: #e0e0e0 !important;
}

body.dark-mode [style*="border-bottom: 1px solid rgba(0, 0, 0"] {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode [style*="border: 1px solid rgba(0, 0, 0"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode [style*="border-top: 1px solid rgba(0, 0, 0, 0.1)"] {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode [style*="background: rgba(0, 0, 0, 0.02)"],
body.dark-mode [style*="background: rgba(0,0,0,0.02)"] {
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode svg path {
    stroke: white;
}

body.dark-mode svg text {
    fill: white;
}

body.dark-mode .chart-time {
    color: rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .modal-title {
    color: #e0e0e0;
}

body.dark-mode .form-title {
    color: #e0e0e0;
}

body.dark-mode table {
    color: #e0e0e0;
}

body.dark-mode .search-icon {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-mode .watchlist-item div {
    color: #e0e0e0;
}

body.dark-mode #ticker-symbol,
body.dark-mode #ticker-role {
    color: rgba(255, 255, 255, 0.6) !important;
}

body.dark-mode #chart-ticker-subject {
    color: rgba(255, 255, 255, 0.6) !important;
}        
        /* Comprehensive Responsive Design */
        /* Mobile menu toggle */
        .mobile-menu-button {
            display: none;
        }

        /* For making tables responsive */
        .table-responsive {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            width: 100%;
        }

        /* Footer responsiveness */
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        /* Grid layout adjustments */
        .dashboard-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
        }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
        }

        /* Responsive stats grid */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
            gap: 1rem;
        }

        /* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-dropdown {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 2rem 1.5rem;
    overflow-y: auto;
}

body.dark-mode .mobile-menu-dropdown {
    background: #1e1e1e;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.3);
}

.mobile-menu-dropdown.active {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.6);
}

body.dark-mode .mobile-menu-close {
    color: rgba(255, 255, 255, 0.6);
}

.mobile-menu-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mobile-menu-item {
    font-weight: 500;
    font-size: 1rem;
    color: #000;
    text-decoration: none;
    cursor: pointer;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile Menu User Section */
.mobile-menu-user-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

body.dark-mode .mobile-menu-user-section {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.mobile-user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #000;
}

body.dark-mode .mobile-user-name {
    color: #e0e0e0;
}

body.dark-mode .mobile-menu-item {
    color: #e0e0e0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

        /* Media queries for responsive design */
        @media (max-width: 1200px) {
            .dashboard-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1.5rem;
            }
        }
        @media (max-width: 992px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            .cta-button {
                padding: 0.7rem 1.5rem;
            }
        }

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block !important;
        font-size: 1.3rem;
        background: none;
        border: none;
        cursor: pointer;
        order: 2;
    }
    
    .nav-links {
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .header {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    /* Compact mobile header */
    .dashboard-header {
        padding: 0.75rem 0;
        gap: 0.5rem;
        justify-content: space-between;
    }
    
    .logo-small {
        font-size: 20px;
    }
    
    .search-container {
        max-width: 100%;
        order: 3;
        flex-basis: 100%;
    }
    
    .search-input {
        padding: 0.6rem 0.8rem 0.6rem 2rem;
        font-size: 0.85rem;
    }
    
    /* HIDE USER NAV ON MOBILE - MOVED TO HAMBURGER */
    .user-nav {
        display: none;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    
    .theme-toggle-wrapper {
        margin-right: 0;
    }
    
    .theme-toggle {
        width: 42px;
        height: 20px;
    }
    
    .slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }
    
    input:checked + .slider:before {
        transform: translateX(22px);
    }
    
    /* HIDE SUB-NAV ON MOBILE */
    .sub-nav {
        display: none;
    }
    
    /* FIX DASHBOARD BOTTOM ROW - WATCHLIST & NEWS ALIGNMENT */
.dashboard-bottom-row,
.dashboard-top-row {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    padding: 0 !important;
    margin: 1.5rem 0 !important;
}

.dashboard-card-equal-height {
    min-height: auto !important;
    max-height: none !important;
    width: 100% !important;
    margin: 0 0 1rem 0 !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
}

/* Watchlist table scrollable */
.dashboard-card-equal-height .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-card-equal-height table {
    min-width: 500px;
    font-size: 0.8rem;
}

/* Market News height control */
#market-news-container {
    max-height: 350px !important;
    overflow-y: auto !important;
}

/* Ensure all detail cards are consistent */
.detail-card {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0.875rem !important;
    margin-bottom: 1rem !important;
}
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        gap: 1rem;
    }
    
    .performers-list {
        gap: 0.5rem;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .watchlist-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hero section adjustments */
    .hero {
        min-height: 70vh;
        padding: clamp(5rem, 20vh, 10rem) 0 clamp(2rem, 6vw, 4rem);
    }
    
    .main-title {
        font-size: clamp(3.5rem, 14vw, 5rem);
        margin-bottom: 2rem;
    }
    
    .subtitle {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
        margin-bottom: 3rem;
    }
    
    .section {
        padding: clamp(2rem, 6vw, 4rem) 0;
    }
    
    body.dark-mode .mobile-menu-button {
        color: #e0e0e0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .trade-tabs {
        flex-direction: row;
        width: 100%;
    }
    
    .trade-tab {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .cta-button {
        width: 100%;
        max-width: 300px;
    }
    
    .auth-tab {
        flex: 1;
        text-align: center;
        padding: 0.75rem 0;
    }
    
    .dark-button, .light-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    /* Stock ticker adjustments */
    .stock-ticker {
        padding: 0.6rem 0;
    }
    
    .ticker-value {
        margin-right: 1.5rem;
    }
}
        @media (max-width: 380px) {
            .performers-list {
                grid-template-columns: 1fr;
            }
            .stats-grid {
                grid-template-columns: 1fr;
            }
        }
        
/* ============================================ */
/* MICRO-INTERACTIONS */
/* ============================================ */

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero > * {
    animation: fade-in-up 0.8s ease-out backwards;
}

.hero .main-title {
    animation-delay: 0.2s;
}

.hero .subtitle {
    animation-delay: 0.4s;
}

.hero .cta-button {
    animation-delay: 0.6s;
}

.content-box {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.content-box:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.15),
        0 0 40px rgba(99, 102, 241, 0.1);
}

body.dark-mode .content-box:hover {
    box-shadow: 
        0 12px 35px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.05);
}

/* ============================================ */
/* FOOTER DARK MODE SYNC */
/* ============================================ */

body.dark-mode #landing-footer {
    background: #0a0a0a !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}