:root {
    /* Colors */
    --bg-body: #050507;
    --bg-surface: #0a0a0c;
    --bg-card: rgba(20, 20, 25, 0.4);
    --bg-card-hover: rgba(30, 30, 35, 0.6);

    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-success: #00ff9d;
    --accent-danger: #ff0055;
    --accent-warning: #ffbe0b;

    --text-main: #ffffff;
    --text-muted: #9494a8;
    --text-dim: #555566;

    /* Fonts */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Effects */
    --glass-border: 1px solid rgba(255, 255, 255, 0.06);
    --glass-highlight: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --neon-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);

    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
}

html {
    background-color: var(--bg-body);
}

body {
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    min-height: 100vh;
}

/* === Global Link Reset === */
/* === Global Link Reset === */
a {
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* ... (rest of CSS) ... */

/* === Sidebar === */
/* ... */
.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 500;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Added cursor pointer */
    background: transparent;
    /* Reset button default if used as button */
    border: none;
    /* Reset button default */
    width: 100%;
    /* Full width */
    text-align: left;
    /* Align text */
    font-size: 1rem;
    /* Ensure consistent size */
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Use border property directly */
}

/* ... */

/* Ticker */
/* ... */
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 2400s linear infinite;
    /* Extremely slow speed */
    padding-left: 100%;
}

.ticker-container:hover .ticker-content {
    animation-play-state: paused !important;
    /* Pause when hovering anywhere in the container */
}

.ticker-item {
    display: inline-block;
    padding: 0 30px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

/* ... */

/* Load More */
.load-more-btn .count {
    display: none;
    /* Hide count */
}

/* === Ambient Effects === */
.ambient-glow {
    position: fixed;
    top: -30%;
    left: -10%;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 70%);
    filter: blur(100px);
    z-index: -1;
    animation: pulseGlow 15s ease-in-out infinite alternate;
}

.ambient-glow::after {
    content: '';
    position: fixed;
    bottom: -30%;
    right: -10%;
    width: 70vw;
    height: 70vh;
    background: radial-gradient(circle, rgba(112, 0, 255, 0.06) 0%, transparent 70%);
    filter: blur(120px);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJnoiPjxmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI2cpIiBvcGFjaXR5PSIwLjAzIi8+PC9zdmc+');
    pointer-events: none;
    z-index: 998;
    opacity: 0.4;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.02) 51%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* === Layout === */
.app-container {
    display: flex;
    max-width: 1440px;
    margin: 0 auto;
    padding: 30px;
    gap: 40px;
}

/* === Sidebar === */
.sidebar {
    width: 260px;
    position: sticky;
    top: 30px;
    height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
}

.brand {
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--neon-shadow);
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: inherit;
    filter: blur(8px);
    opacity: 0.5;
    z-index: -1;
}

.inner-pulse {
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.brand h1 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-indicator {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--accent-success);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    letter-spacing: 0.05em;
    background: rgba(0, 255, 157, 0.1);
    padding: 4px 8px;
    border-radius: 100px;
    border: 1px solid rgba(0, 255, 157, 0.2);
}

.live-indicator .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-success);
    animation: blink 1.5s infinite;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 500;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: var(--glass-highlight);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40%;
    background: var(--accent-primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px var(--accent-primary);
}

.nav-item i {
    font-size: 1.3rem;
    color: inherit;
    display: inline-block;
}

.mini-stats {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-item .label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.stat-item .value {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* === Main Feed === */
.main-feed {
    flex: 1;
    min-width: 0;
}

/* Quick Bites Widget */
.bites-widget {
    border-left: 3px solid var(--accent-primary);
}

.bites-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.bite-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.4;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
}

.bite-item:last-child {
    border-bottom: none;
}

.bite-item i {
    color: var(--accent-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

a.bite-item:hover {
    color: var(--text-main);
    padding-left: 4px;
}

a.bite-item:hover i {
    color: var(--accent-primary);
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
}

.hero-card {
    background: radial-gradient(circle at top right, rgba(20, 20, 25, 0.8), rgba(10, 10, 15, 0.95));
    border: var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.hero-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 60px -20px rgba(0, 240, 255, 0.15);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.03) 45%, transparent 50%);
    background-size: 200% 200%;
    animation: shine 6s infinite;
    pointer-events: none;
}

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

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 190, 11, 0.1);
    border: 1px solid rgba(255, 190, 11, 0.2);
    color: var(--accent-warning);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: flex-start;
    font-family: var(--font-display);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #a5a5b5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    color: #ffffff;
    /* Fallback */
}

.hero-summary {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    margin-top: auto;
}

.hero-footer i {
    transition: transform 0.3s ease;
}

.hero-card:hover .hero-footer i {
    transform: translateX(6px);
}

.why-it-matters {
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 4px solid var(--accent-secondary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #e0e0e0;
    font-style: italic;
    margin-bottom: 32px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.filter-chips {
    display: flex;
    gap: 10px;
}

.chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-display);
    font-weight: 500;
}

.chip:hover,
.chip.active {
    background: var(--accent-primary);
    color: #000;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* News Cards */
.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}



/* ... */

.news-card {
    background: rgba(20, 20, 25, 0.6);
    /* Slightly more opaque for contrast */
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Subtle border */
    border-radius: 16px;
    padding: 24px;
    /* Increased padding */
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Increased gap */
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Soft shadow */
}

.news-card:hover {
    background: rgba(30, 30, 35, 0.8);
    transform: translateY(-4px);
    border-color: var(--accent-primary);
    /* Highlight border on hover */
    box-shadow: 0 15px 40px -10px rgba(0, 240, 255, 0.1);
    /* Glow effect */
}

/* ... */

.news-category {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    /* Make it look clickable */
    padding: 4px 8px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    transition: all 0.2s;
}

.news-category:hover {
    background: var(--accent-primary);
    color: #000;
}

.news-card .news-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
    color: var(--text-main);
    /* Use var instead of hex for consistency */
}

/* Ensure link inside card doesn't override title color */
.news-card-link {
    color: inherit;
}

.news-summary {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.news-actions {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.action-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    transition: color 0.2s;
    font-family: var(--font-display);
    font-weight: 500;
}

.action-btn:hover {
    color: var(--text-main);
}

/* Widgets */
.widget-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.widget-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge {
    background: rgba(255, 0, 85, 0.1);
    color: var(--accent-danger);
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 0, 85, 0.2);
}

/* Trending List */
.trending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trend-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.trend-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.trend-content h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    margin-bottom: 6px;
    font-weight: 500;
}

.trend-buzz {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Market Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.market-item {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
}

.market-item:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.stock-name {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.stock-val {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
}

.pos {
    color: var(--accent-success);
    text-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.neg {
    color: var(--accent-danger);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.3);
}

/* Load More */
.load-more-btn {
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
}

.load-more-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

/* Mobile Responsive */
.mobile-header,
.mobile-nav {
    display: none;
}

@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        padding: 20px;
        padding-bottom: 100px;
        gap: 30px;
    }

    .sidebar {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 24px;
        background: rgba(5, 5, 7, 0.85);
        backdrop-filter: blur(20px);
        position: sticky;
        top: 0;
        z-index: 100;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .mobile-header .logo {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 700;
        font-size: 1.2rem;
        font-family: var(--font-display);
        text-decoration: none;
        color: inherit;
    }

    .icon-btn {
        background: none;
        border: none;
        color: #fff;
        font-size: 1.4rem;
        padding: 8px;
    }

    .mobile-nav {
        display: flex;
        justify-content: space-around;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 400px;
        background: rgba(20, 20, 25, 0.8);
        backdrop-filter: blur(20px);
        padding: 12px;
        border: var(--glass-border);
        border-radius: 100px;
        z-index: 100;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-item {
        color: var(--text-muted);
        font-size: 1.4rem;
        padding: 12px 24px;
        border-radius: 100px;
        transition: all 0.3s;
    }

    .mobile-nav-item.active {
        color: #000;
        background: var(--accent-primary);
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    }

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

    .hero-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }

    70% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--radius-md);
}

.hero-skeleton {
    height: 400px;
    width: 100%;
    border-radius: 32px;
}

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

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

.hidden-item {
    display: none !important;
}

/* === Footer Widget === */
.footer-widget {
    text-align: center;
    padding: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-widget:hover {
    opacity: 1;
}

.footer-widget .footer-copy {
    margin: 0 0 4px;
    font-size: 0.7rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.footer-widget .footer-credit {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-widget a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.footer-widget a:hover {
    opacity: 0.8;
}