/* ========================================
   NOVRIX - Dual-Themed Architecture
   Premium Financial Terminal Design
   
   LIGHT MODE: Clean Institutional
   DARK MODE: Premium Terminal Aesthetic
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ========================================
   LIGHT MODE CSS VARIABLES (Default)
   Clean, Institutional, High-End Report Aesthetic
   ======================================== */

:root {
    /* Backgrounds */
    --color-bg-primary: #FFFFFF;
    --color-bg-secondary: #FAFAFA;
    --color-bg-tertiary: #F5F5F5;
    
    /* Accents */
    --color-accent-primary: #5E0219;
    --color-accent-secondary: #AE0F32;
    --color-accent-tertiary: #8A0826;
    
    /* Text */
    --color-text-primary: #1A1A1A;
    --color-text-secondary: #4A4A4A;
    --color-text-tertiary: #7A7A7A;
    --color-text-light: #999999;
    
    /* Borders */
    --color-border: #F0F0F0;
    --color-border-secondary: #E5E5E5;
    
    /* Shadows */
    --color-shadow-light: rgba(0, 0, 0, 0.04);
    --color-shadow-medium: rgba(0, 0, 0, 0.08);
    --color-shadow-heavy: rgba(0, 0, 0, 0.12);
    
    /* Special Effects */
    --color-glow: transparent;
    --color-badge: #AE0F32;
    
    /* Backdrop & Blur */
    --backdrop-blur: blur(10px);
    --card-backdrop: rgba(255, 255, 255, 0.7);
}

/* ========================================
   DARK MODE CSS VARIABLES (.dark-theme)
   Premium Terminal, Crypto Dashboard Aesthetic
   ======================================== */

html.dark-theme {
    /* Backgrounds - Deep Black */
    --color-bg-primary: #080808;
    --color-bg-secondary: #0D0D0D;
    --color-bg-tertiary: #1A1A1A;
    
    /* Accents - Rich Burgundy for Terminal Feel */
    --color-accent-primary: #9A1B47;
    --color-accent-secondary: #D62E56;
    --color-accent-tertiary: #B8264A;
    
    /* Text - Pure White & Muted Silver */
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #D0D0D0;
    --color-text-tertiary: #A0A0A0;
    --color-text-light: #808080;
    
    /* Borders - Subtle Burgundy Glow */
    --color-border: rgba(154, 27, 71, 0.25);
    --color-border-secondary: rgba(154, 27, 71, 0.35);
    
    /* Shadows - Deep with Burgundy Tint */
    --color-shadow-light: rgba(0, 0, 0, 0.5);
    --color-shadow-medium: rgba(0, 0, 0, 0.7);
    --color-shadow-heavy: rgba(154, 27, 71, 0.3);
    
    /* Special Effects - Burgundy Glow */
    --color-glow: inset 0 0 30px rgba(154, 27, 71, 0.15), 0 0 20px rgba(214, 46, 86, 0.2);
    --color-badge: #D62E56;
    
    /* Backdrop & Blur */
    --backdrop-blur: blur(15px);
    --card-backdrop: rgba(13, 13, 13, 0.6);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease-in-out, 
                color 0.5s ease-in-out, 
                border-color 0.5s ease-in-out, 
                box-shadow 0.5s ease-in-out;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg-primary);
    background: linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background grid pattern - works on both light and dark */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(0deg, transparent 24%, var(--color-border) 25%, var(--color-border) 26%, transparent 27%, transparent 74%, var(--color-border) 75%, var(--color-border) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, var(--color-border) 25%, var(--color-border) 26%, transparent 27%, transparent 74%, var(--color-border) 75%, var(--color-border) 76%, transparent 77%, transparent);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

main, nav, section {
    position: relative;
    z-index: 1;
}

/* ========================================
   LOADING SPINNER - Radar Effect
   ======================================== */

.loading-spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 0.5s ease-in-out 2s forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        visibility: visible;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.radar {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid var(--color-accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.radar-circle:nth-child(1) {
    width: 40px;
    height: 40px;
    animation: radar-scan 3s ease-in-out infinite;
}

.radar-circle:nth-child(2) {
    width: 80px;
    height: 80px;
    animation: radar-scan 3s ease-in-out 0.6s infinite;
}

.radar-circle:nth-child(3) {
    width: 120px;
    height: 120px;
    animation: radar-scan 3s ease-in-out 1.2s infinite;
}

.radar-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px var(--color-accent-primary);
    animation: pulse-radar 2s ease-in-out infinite;
}

@keyframes radar-scan {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes pulse-radar {
    0%, 100% {
        box-shadow: 0 0 20px var(--color-accent-primary);
    }
    50% {
        box-shadow: 0 0 40px var(--color-accent-primary), 0 0 60px rgba(174, 15, 50, 0.4);
    }
}

.loading-spinner p {
    color: var(--color-text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.95rem;
}

/* ========================================
   MARKET TICKER BAR
   Live Financial Feel with Scrolling Prices
   ======================================== */

.ticker-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(90deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
}

html.dark-theme .ticker-bar {
    border-bottom-color: rgba(174, 15, 50, 0.15);
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: flex;
    gap: 3rem;
    animation: scroll-left 40s linear infinite;
    padding: 0 2rem 0 0;
    white-space: nowrap;
}

.ticker-content + .ticker-content {
    animation-delay: -20s;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    flex-shrink: 0;
}

.ticker-label {
    font-weight: 700;
    color: var(--color-accent-primary);
    letter-spacing: 0.5px;
    min-width: 70px;
}

.ticker-price {
    font-weight: 600;
    color: var(--color-text-primary);
    min-width: 85px;
    text-align: right;
}

.ticker-change {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    min-width: 65px;
    text-align: right;
}

.ticker-change.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.15);
}

.ticker-change.down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.15);
}

.ticker-updated {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    white-space: nowrap;
    margin-left: 2rem;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   NAVIGATION BAR - Glassmorphism
   Works flawlessly on both white and black
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 160px;
    background: var(--card-backdrop);
    backdrop-filter: blur(20px);
    z-index: 1000;
    box-shadow: 0 4px 30px var(--color-shadow-light);
    border-bottom: 1px solid;
    position: relative;
}

html:not(.dark-theme) .navbar {
    border-bottom-color: rgba(200, 200, 200, 0.3);
}

html.dark-theme .navbar {
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(94, 2, 25, 0.6), rgba(174, 15, 50, 0.5), rgba(94, 2, 25, 0.6)) 0 0 1 0;
}

/* Header background pattern - Enhanced Dot Grid */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle, rgba(174, 15, 50, 0.06) 1.5px, transparent 1.5px),
        linear-gradient(90deg, transparent 99%, rgba(174, 15, 50, 0.05) 100%);
    background-size: 30px 30px, 1px 100%;
    pointer-events: none;
    z-index: 1;
}

.navbar > * {
    position: relative;
    z-index: 2;
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 100%;
    gap: 1.5rem;
}

.navbar-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    letter-spacing: -0.02em;
    flex-shrink: 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-left: 5%;
    height: 100%;
}

/* Logo Image Styling - Visual Parity with 120px Base */
.logo-image {
    height: 120px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: all 0.5s ease-in-out;
}

/* Dark Mode Logo - Increased height for visual parity (125px for optical balance) */
html.dark-theme .logo-image {
    height: 125px;
    object-fit: contain;
}

.navbar-logo:hover .logo-image {
    transform: scale(1.15);
}

/* ========================================
   SEARCH BAR - Premium Financial Dashboard
   ======================================== */

.search-bar {
    flex: 0.4;
    margin: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--color-bg-tertiary);
    border: 1.5px solid var(--color-accent-primary);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 2px 10px var(--color-shadow-light);
}

html.dark-theme .search-bar {
    background: rgba(154, 27, 71, 0.08);
    border-color: rgba(174, 15, 50, 0.6);
}

.search-bar:focus-within {
    box-shadow: 0 0 20px rgba(174, 15, 50, 0.4);
    border-color: var(--color-accent-secondary);
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent-primary);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--color-text-tertiary);
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 3.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.5s ease-in-out;
    position: relative;
    white-space: nowrap;
    padding-bottom: 0.4rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-accent-primary);
    transform: translateX(-50%);
    transition: width 0.5s ease-in-out;
}

.nav-link:hover {
    color: var(--color-accent-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--color-accent-primary);
}

.nav-link.active::after {
    width: 100%;
    background-color: var(--color-accent-primary);
}

/* ========================================
   BUTTONS - Primary & CTA
   ======================================== */

.btn-telegram {
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-primary) 100%);
    color: #FFFFFF !important;
    padding: 0.7rem 1.8rem;
    border-radius: 8px;
    border: none;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    flex-shrink: 0;
    box-shadow: 0 4px 15px var(--color-shadow-medium);
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-shadow-heavy), 0 0 20px rgba(174, 15, 50, 0.35);
}

html.dark-theme .btn-telegram {
    box-shadow: 0 0 16px rgba(255, 107, 157, 0.4);
}

html.dark-theme .btn-telegram:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 157, 0.4), 0 0 24px rgba(255, 107, 157, 0.6);
}

/* ========================================
   TERMINAL DROPDOWN - Premium Ecosystem Menu
   Glassmorphism with burgundy accent
   ======================================== */

.terminal-dropdown-container {
    position: relative;
    display: flex;
    align-items: center;
}

.terminal-toggle {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
}

.terminal-toggle:hover {
    color: var(--color-accent-primary);
}

html.dark-theme .terminal-toggle:hover {
    color: var(--color-accent-secondary);
}

.chevron-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.terminal-dropdown-container:hover .chevron-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.terminal-dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

html.dark-theme .terminal-dropdown {
    background: rgba(12, 12, 20, 0.85);
    border-color: rgba(94, 2, 25, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 157, 0.1);
}

.terminal-dropdown-container:hover .terminal-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown Items */
.terminal-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-decoration: none;
    color: inherit;
}

.terminal-item:hover {
    background: rgba(94, 2, 25, 0.08);
    border-left-color: var(--color-accent-primary);
    transform: translateX(4px);
}

html.dark-theme .terminal-item:hover {
    background: rgba(255, 107, 157, 0.1);
    border-left-color: var(--color-accent-secondary);
}

/* Item Icon */
.terminal-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.terminal-item[data-feature="sentiment"] .terminal-item-icon {
    background: rgba(94, 2, 25, 0.1);
    color: var(--color-accent-primary);
}

html.dark-theme .terminal-item[data-feature="sentiment"] .terminal-item-icon {
    background: rgba(255, 107, 157, 0.15);
    color: var(--color-accent-secondary);
}

.terminal-item[data-feature="analytics"] .terminal-item-icon {
    background: rgba(94, 2, 25, 0.1);
    color: var(--color-accent-primary);
}

html.dark-theme .terminal-item[data-feature="analytics"] .terminal-item-icon {
    background: rgba(255, 107, 157, 0.15);
    color: var(--color-accent-secondary);
}

.terminal-item[data-feature="tracking"] .terminal-item-icon {
    background: rgba(94, 2, 25, 0.1);
    color: var(--color-accent-primary);
}

html.dark-theme .terminal-item[data-feature="tracking"] .terminal-item-icon {
    background: rgba(255, 107, 157, 0.15);
    color: var(--color-accent-secondary);
}

.terminal-item-icon svg {
    width: 20px;
    height: 20px;
}

.terminal-item:hover .terminal-item-icon {
    transform: scale(1.1);
}

/* Item Text */
.terminal-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.terminal-item-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--color-text-primary);
    transition: color 0.3s ease;
}

.terminal-item-description {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    transition: color 0.3s ease;
    line-height: 1.3;
}

.terminal-item:hover .terminal-item-title {
    color: var(--color-accent-primary);
}

html.dark-theme .terminal-item:hover .terminal-item-title {
    color: var(--color-accent-secondary);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-primary) 100%);
    color: #FFFFFF;
    padding: 1rem 3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 4px 20px var(--color-shadow-medium);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px var(--color-shadow-heavy);
}

/* ========================================
   FOOTER - Professional 4-Column Layout
   Elite Design with Premium Typography
   ======================================== */

.footer {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-tertiary) 100%);
    border-top: 2px solid;
    backdrop-filter: blur(10px);
    padding: 5rem 2rem 2rem;
    margin-top: 8rem;
    position: relative;
}

html:not(.dark-theme) .footer {
    border-top-color: rgba(94, 2, 25, 0.2);
}

html.dark-theme .footer {
    border-top-color: rgba(174, 15, 50, 0.4);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-section:nth-child(4) {
    animation-delay: 0.4s;
}

.footer-section h3 {
    color: var(--color-accent-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

/* Column 1: Brand & Mission */
.footer-brand {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.footer-mission {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.footer-year {
    color: var(--color-text-tertiary);
    font-size: 0.8rem;
    margin-top: auto;
}

/* Column 2: Quick Links */
.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.5s ease-in-out;
    position: relative;
    padding-left: 0;
    display: inline-block;
}

.footer-link::before {
    content: '→';
    margin-right: 0.8rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: all 0.5s ease-in-out;
    color: var(--color-accent-primary);
}

.footer-link:hover {
    color: var(--color-accent-primary);
    padding-left: 0.5rem;
}

.footer-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Column 3: Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.contact-handle {
    color: var(--color-text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
}

.contact-email {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-telegram {
    display: inline-block;
    color: var(--color-accent-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border: 1.5px solid var(--color-accent-primary);
    border-radius: 8px;
    transition: all 0.5s ease-in-out;
    background: transparent;
}

.contact-telegram:hover {
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-primary) 100%);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--color-shadow-medium);
}

/* Column 4: Socials */
.footer-socials {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-accent-secondary) 0%, var(--color-accent-primary) 100%);
    border-radius: 16px;
    color: #FFFFFF;
    text-decoration: none;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 8px 25px var(--color-shadow-medium);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.telegram-icon-large svg {
    width: 40px;
    height: 40px;
    fill: #FFFFFF;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease-in-out;
    z-index: 0;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 40px var(--color-shadow-heavy);
}

.social-label {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--color-text-tertiary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

/* ========================================
   ANIMATIONS
   Fade-in Effects for Page Load
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply fade-in animation to main sections */
.hero,
.cta-section {
    animation: fadeInUp 0.8s ease-out;
}

/* ========================================
   THEME TOGGLE BUTTON
   Smooth Sun/Moon Icon Transitions
   ======================================== */

.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.4s ease-in-out;
    color: var(--color-accent-primary);
    padding: 0;
}

.theme-toggle:hover {
    opacity: 0.7;
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sun-icon {
    position: absolute;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    position: absolute;
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

html.dark-theme .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

html.dark-theme .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ========================================
   HERO SECTION - Premium Typography
   ======================================== */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 7rem;
    text-align: center;
    position: relative;
    margin-top: 140px;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-shadow-medium) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   CALL-TO-ACTION SECTION
   ======================================== */

.cta-section {
    max-width: 1000px;
    margin: 5rem auto;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--card-backdrop);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--color-glow), 0 4px 20px var(--color-shadow-light);
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ========================================
   INSIGHTS SECTION - Live Terminal
   ======================================== */

.insights-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6rem 2rem;
    position: relative;
}

.insights-container {
    position: relative;
    z-index: 2;
}

.insights-header {
    margin-bottom: 4rem;
}

.insights-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.insights-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    line-height: 1.6;
}

/* ========================================
   BENTO GRID LAYOUT - Asymmetric Cards
   ======================================== */

.insights-feed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* First card spans 2 columns for visual hierarchy */
.insights-feed > .insight-card:first-child {
    grid-column: span 2;
}

/* ========================================
   INSIGHT CARD - The Heart of the Design
   ======================================== */

.insight-card {
    background: var(--card-backdrop);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.4s ease-in-out;
    box-shadow: 0 2px 10px var(--color-shadow-light);
    position: relative;
    overflow: hidden;
}

/* Dark mode: Subtle gradient + burgundy glow */
html.dark-theme .insight-card {
    background: linear-gradient(135deg, #0D0D0D 0%, #080808 100%);
    box-shadow: var(--color-glow), 0 2px 10px var(--color-shadow-light);
}

/* Hover effect: Lift card and enhance shadow */
.insight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px var(--color-shadow-medium);
    border-color: var(--color-border-secondary);
}

html.dark-theme .insight-card:hover {
    box-shadow: var(--color-glow), 0 12px 40px var(--color-shadow-medium);
}

/* Card Header with Timestamp */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.card-timestamp {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.card-category {
    display: inline-block;
    background: var(--color-bg-tertiary);
    color: var(--color-accent-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html.dark-theme .card-category {
    background: rgba(154, 27, 71, 0.2);
    color: var(--color-accent-secondary);
}

/* Card Title */
.card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-accent-primary);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

/* Chart Placeholder Area */
.chart-placeholder {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, var(--color-bg-tertiary) 0%, var(--color-bg-secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
    border: 1px dashed var(--color-border);
}

html.dark-theme .chart-placeholder {
    background: linear-gradient(135deg, rgba(154, 27, 71, 0.1) 0%, rgba(13, 13, 13, 0.5) 100%);
}

/* Card Summary */
.card-summary {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* LIVE Badge with Pulse Animation */
.live-badge {
    display: inline-block;
    background: var(--color-badge);
    color: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px var(--color-badge);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 15px var(--color-badge);
    }
    50% {
        opacity: 0.6;
        box-shadow: 0 0 25px var(--color-badge);
    }
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
   ======================================== */

@media (max-width: 1024px) {
    .insights-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .insights-feed > .insight-card:first-child {
        grid-column: span 2;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .navbar-container {
        padding: 1rem 1.5rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
    }
}

/* Terminal Dropdown Responsive */
@media (max-width: 1024px) {
    .terminal-dropdown {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .terminal-dropdown {
        position: fixed;
        top: 140px;
        right: 20px;
        left: auto;
        width: 300px;
    }

    .terminal-item {
        padding: 0.8rem;
    }

    .terminal-item-title {
        font-size: 0.9rem;
    }

    .terminal-item-description {
        font-size: 0.75rem;
    }

    .terminal-item-icon {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .terminal-dropdown {
        width: 280px;
        top: 135px;
        right: 15px;
    }

    .terminal-item {
        gap: 0.75rem;
        padding: 0.7rem;
    }

    .terminal-item-icon {
        width: 32px;
        height: 32px;
    }

    .terminal-item-icon svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .insights-feed {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .insights-feed > .insight-card:first-child {
        grid-column: span 1;
    }
    
    .hero {
        padding: 6rem 2rem 5rem;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .insights-section {
        padding: 4rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .search-bar {
        flex: 0.3;
        margin: 0 1.5rem;
    }
    .insights-title {
        font-size: 2rem;
    }
    
    .navbar-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }
    
    .cta-section {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 5rem 1.5rem 4rem;
        margin-top: 80px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .navbar-container {
        padding: 1rem 1rem;
    }
    
    .navbar-logo {
        font-size: 1.4rem;
    }
    
    .navbar-menu {
        gap: 0.8rem;
    }
    
    .nav-link {
        font-size: 0.75rem;
    }
    
    .btn-telegram {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .insights-section {
        padding: 3rem 1rem;
    }
    
    .insights-title {
        font-size: 1.6rem;
    }
    
    .insights-subtitle {
        font-size: 0.95rem;
    }
    
    .insight-card {
        padding: 1.5rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .cta-section {
        padding: 2rem 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .search-bar {
        display: none;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .insights-title {
        font-size: 1.3rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .navbar-menu {
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .telegram-link {
        width: 50px;
        height: 50px;
    }
    
    .telegram-icon {
        width: 28px;
        height: 28px;
    }
    
    .footer-section h3 {
        font-size: 1rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

/* ========================================
   MARKET OVERVIEW DASHBOARD
   Real-time cryptocurrency table with live data
   ======================================== */

.market-overview-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--color-bg-primary);
    transition: background 0.5s ease;
}

.market-overview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.market-overview-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-primary);
    transition: color 0.5s ease;
}

.market-status {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: var(--color-bg-secondary);
    transition: background 0.5s ease;
}

.live-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.5s ease;
}

.live-status-dot.online {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-green 2s infinite;
}

.live-status-dot.offline {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.status-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.5s ease;
}

.market-table-container {
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    background: var(--color-bg-secondary);
    transition: all 0.5s ease;
}

.market-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.market-table thead {
    background: var(--color-bg-tertiary);
    transition: background 0.5s ease;
}

.market-table th {
    padding: 1rem 1.5rem;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-border);
    transition: all 0.5s ease;
}

.market-table tbody {
    display: table-row-group;
}

.market-row {
    border-bottom: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.market-row:hover {
    background: var(--color-bg-tertiary);
    transform: scale(1.01);
}

html.dark-theme .market-row:hover {
    background: rgba(255, 107, 157, 0.1);
}

.market-row td {
    padding: 1rem 1.5rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: color 0.5s ease;
}

.rank-cell {
    font-weight: 700;
    color: var(--color-accent-primary);
    transition: color 0.5s ease;
    width: 60px;
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
}

.crypto-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.crypto-name {
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.5s ease;
    white-space: nowrap;
}

.crypto-symbol {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.5s ease;
    text-transform: uppercase;
}

.crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.price-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.5s ease;
    min-width: 120px;
}

.change-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    min-width: 100px;
    transition: color 0.5s ease;
}

.change-cell.up {
    color: #10b981;
}

html.dark-theme .change-cell.up {
    color: #34d399;
}

.change-cell.down {
    color: #ef4444;
}

html.dark-theme .change-cell.down {
    color: #f87171;
}

.market-cap-cell {
    font-family: 'JetBrains Mono', monospace;
    color: var(--color-text-secondary);
    transition: color 0.5s ease;
    min-width: 140px;
    text-align: right;
}

/* ========================================
   SEARCH DROPDOWN & RESULTS
   ======================================== */

.search-bar {
    position: relative;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

html.dark-theme .search-dropdown {
    background: rgba(8, 8, 8, 0.95);
    border-color: rgba(255, 107, 157, 0.2);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: var(--color-bg-secondary);
    padding-left: 1.25rem;
}

html.dark-theme .search-result-item:hover {
    background: rgba(255, 107, 157, 0.05);
}

.result-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.result-info {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.5s ease;
}

.result-symbol {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.5s ease;
}

.result-price {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--color-text-primary);
    transition: color 0.5s ease;
    min-width: 100px;
    text-align: right;
}

.result-change {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    min-width: 80px;
    text-align: right;
}

.result-change.up {
    color: #10b981;
}

.result-change.down {
    color: #ef4444;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--color-text-tertiary);
    transition: color 0.5s ease;
}

/* ========================================
   QUICK VIEW MODAL
   ======================================== */

.quickview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.quickview-modal.show {
    display: flex;
}

.quickview-content {
    background: var(--color-bg-primary);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    transition: all 0.5s ease;
}

html.dark-theme .quickview-content {
    background: rgba(8, 8, 8, 0.95);
    border-color: rgba(255, 107, 157, 0.2);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quickview-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg-secondary);
    color: var(--color-text-primary);
    font-size: 1.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quickview-close:hover {
    background: var(--color-border);
    transform: scale(1.1);
}

.quickview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.quickview-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.quickview-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    transition: color 0.5s ease;
}

.quickview-symbol {
    font-size: 0.9rem;
    color: var(--color-text-tertiary);
    font-family: 'JetBrains Mono', monospace;
    margin: 0.5rem 0 0 0;
    transition: color 0.5s ease;
}

.quickview-price {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.price-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.change-display {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.change-display.up {
    color: #10b981;
}

.change-display.down {
    color: #ef4444;
}

.quickview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.quickview-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.item-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-tertiary);
    font-weight: 600;
    transition: color 0.5s ease;
}

.item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.5s ease;
}

/* ========================================
   MARKET TABLE RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .market-table-container {
        border-radius: 0.5rem;
    }
    
    .market-row td {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .market-table th {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }
    
    .name-cell {
        min-width: 150px;
    }
    
    .market-cap-cell {
        min-width: 120px;
    }
}

@media (max-width: 768px) {
    .market-overview-section {
        padding: 2rem 1.5rem;
    }
    
    .market-overview-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .market-table {
        font-size: 0.85rem;
    }
    
    .market-row td,
    .market-table th {
        padding: 0.75rem 0.8rem;
    }
    
    .crypto-icon {
        width: 28px;
        height: 28px;
    }
    
    .name-cell {
        min-width: 120px;
        gap: 0.5rem;
    }
    
    .market-cap-cell {
        min-width: 100px;
        font-size: 0.8rem;
    }
    
    .price-cell {
        min-width: 100px;
    }
    
    .change-cell {
        min-width: 80px;
    }
    
    .quickview-content {
        width: 95%;
    }
    
    .quickview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .market-overview-section {
        padding: 1.5rem 1rem;
    }
    
    .market-overview-header h2 {
        font-size: 1.4rem;
    }
    
    .market-table {
        font-size: 0.8rem;
    }
    
    .market-row td,
    .market-table th {
        padding: 0.6rem 0.5rem;
    }
    
    .market-table th {
        font-size: 0.75rem;
    }
    
    .crypto-icon {
        width: 24px;
        height: 24px;
    }
    
    .rank-cell {
        width: 45px;
    }
    
    .name-cell {
        min-width: 100px;
        gap: 0.4rem;
    }
    
    .crypto-name {
        font-size: 0.85rem;
    }
    
    .crypto-symbol {
        font-size: 0.75rem;
    }
    
    .price-cell {
        font-size: 0.85rem;
        min-width: 80px;
    }
    
    .change-cell {
        font-size: 0.85rem;
        min-width: 70px;
    }
    
    .market-cap-cell {
        display: none;
    }
    
    .quickview-content {
        padding: 1.5rem;
    }
    
    .quickview-header {
        margin-bottom: 1.5rem;
    }
    
    .quickview-name {
        font-size: 1.2rem;
    }
    
    .price-display {
        font-size: 1.5rem;
    }
}

/* ========================================
   PAGE STYLING - SENTIMENT, ANALYTICS, TRACKING
   ======================================== */

/* Page Header */
.page-header {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-bottom: 1px solid var(--color-border);
    margin-top: 60px;
    text-align: center;
}

html.dark-theme .page-header {
    background: linear-gradient(135deg, rgba(94, 2, 25, 0.1) 0%, rgba(255, 107, 157, 0.05) 100%);
}

.page-header-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.page-header-content p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styling */
.sentiment-page,
.analytics-page,
.tracking-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.sentiment-section,
.analytics-section,
.tracking-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.section-title {
    margin-bottom: 2rem;
}

.section-title h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.section-title .timestamp {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* ========================================
   SENTIMENT PAGE SPECIFIC
   ======================================== */

.sentiment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sentiment-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

html.dark-theme .sentiment-card {
    background: rgba(12, 12, 20, 0.6);
}

.sentiment-card.large {
    grid-column: 1 / -1;
}

.sentiment-meter {
    text-align: center;
}

.meter-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.meter-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.meter-container svg {
    width: 200px;
    height: 120px;
}

.meter-value {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.value-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-accent-primary);
}

.value-label {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.sentiment-stat {
    text-align: center;
    padding: 1rem;
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.stat-change.positive {
    color: var(--color-success);
}

.stat-change.negative {
    color: var(--color-danger);
}

/* Sentiment Chart */
.sentiment-chart {
    margin-top: 1.5rem;
}

.chart-container {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
}

html.dark-theme .chart-container {
    background: rgba(12, 12, 20, 0.4);
}

.trend-chart,
.transaction-trend {
    width: 100%;
    min-height: 300px;
}

.chart-legend {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Signals Table */
.signals-table,
.address-table,
.transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.signals-table th,
.address-table th,
.transactions-table th {
    background: rgba(94, 2, 25, 0.1);
    color: var(--color-text-primary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--color-border);
}

html.dark-theme .signals-table th,
html.dark-theme .address-table th,
html.dark-theme .transactions-table th {
    background: rgba(255, 107, 157, 0.1);
}

.signals-table td,
.address-table td,
.transactions-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.signals-table tr:hover,
.address-table tr:hover,
.transactions-table tr:hover {
    background: rgba(94, 2, 25, 0.05);
}

html.dark-theme .signals-table tr:hover,
html.dark-theme .address-table tr:hover,
html.dark-theme .transactions-table tr:hover {
    background: rgba(255, 107, 157, 0.08);
}

.signal-name,
.address-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.positive {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
}

.status-badge.negative {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

.status-badge.neutral {
    background: rgba(255, 193, 7, 0.2);
    color: var(--color-text-secondary);
}

.status-badge.confirmed {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
}

.status-badge.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #FFA500;
}

.change {
    font-weight: 600;
}

.change.positive {
    color: var(--color-success);
}

.change.negative {
    color: var(--color-danger);
}

.change.neutral {
    color: var(--color-text-secondary);
}

/* Insights List */
.insights-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

html.dark-theme .insight-item {
    background: rgba(12, 12, 20, 0.5);
}

.insight-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.insight-content h4 {
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
    font-size: 1.05rem;
}

.insight-content p {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ========================================
   ANALYTICS PAGE SPECIFIC
   ======================================== */

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

html.dark-theme .metric-card {
    background: rgba(12, 12, 20, 0.6);
}

.metric-header h3 {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.metric-value {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    margin-bottom: 0.5rem;
}

.metric-value.large {
    font-size: 2.2rem;
}

.metric-change {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Flow Chart */
.flow-container {
    margin-top: 1.5rem;
}

.flow-chart {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
}

html.dark-theme .flow-chart {
    background: rgba(12, 12, 20, 0.4);
}

.flow-diagram {
    width: 100%;
    min-height: 300px;
}

/* ========================================
   TRACKING PAGE SPECIFIC
   ======================================== */

.whale-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.whale-stat-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

html.dark-theme .whale-stat-card {
    background: rgba(12, 12, 20, 0.6);
}

.whale-stat-card .stat-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.stat-content h4 {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-main {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--color-accent-primary);
    margin-bottom: 0.3rem;
}

.stat-sub {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.type-badge {
    display: inline-block;
    padding: 0.35rem 0.7rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}

.type-badge.buy {
    background: rgba(76, 175, 80, 0.2);
    color: var(--color-success);
}

.type-badge.sell {
    background: rgba(244, 67, 54, 0.2);
    color: var(--color-danger);
}

.time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.wallet {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--color-accent-primary);
}

.amount {
    font-weight: 600;
    color: var(--color-text-primary);
}

/* Smart Money Grid */
.smart-money-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.smart-money-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

html.dark-theme .smart-money-card {
    background: rgba(12, 12, 20, 0.6);
}

.smart-money-card h4 {
    font-size: 1.05rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.smart-money-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.smart-money-list li {
    display: grid;
    grid-template-columns: 30px 1fr 1fr;
    gap: 0.8rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9rem;
    align-items: center;
}

.smart-money-list li:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 700;
    color: var(--color-accent-primary);
}

.address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    word-break: break-all;
}

.value {
    font-weight: 600;
    color: var(--color-text-primary);
    text-align: right;
}

/* Exchange Activity */
.exchange-activity {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.exchange-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

html.dark-theme .exchange-card {
    background: rgba(12, 12, 20, 0.6);
}

.exchange-card h4 {
    font-size: 1.05rem;
    color: var(--color-text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.exchange-value {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.exchange-value.positive {
    color: var(--color-success);
}

.exchange-value.negative {
    color: var(--color-danger);
}

.exchange-note {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.exchange-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    font-size: 0.9rem;
    padding: 0.8rem;
    background: rgba(94, 2, 25, 0.05);
    border-radius: 6px;
}

html.dark-theme .detail-item {
    background: rgba(255, 107, 157, 0.1);
}

.detail-label {
    color: var(--color-text-secondary);
    font-weight: 600;
}

.detail-value {
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

/* ========================================
   RESPONSIVE PAGES
   ======================================== */

@media (max-width: 1024px) {
    .page-header-content h1 {
        font-size: 2rem;
    }
    
    .sentiment-page,
    .analytics-page,
    .tracking-page {
        padding: 1.5rem;
    }
    
    .sentiment-section,
    .analytics-section,
    .tracking-section {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 1rem;
        margin-top: 55px;
    }
    
    .page-header-content h1 {
        font-size: 1.6rem;
    }
    
    .page-header-content p {
        font-size: 0.95rem;
    }
    
    .sentiment-grid {
        grid-template-columns: 1fr;
    }
    
    .sentiment-card.large {
        grid-column: 1;
    }
    
    .metrics-grid,
    .whale-stats,
    .smart-money-grid,
    .exchange-activity {
        grid-template-columns: 1fr;
    }
    
    .signals-table,
    .address-table,
    .transactions-table {
        font-size: 0.85rem;
    }
    
    .signals-table th,
    .address-table th,
    .transactions-table th,
    .signals-table td,
    .address-table td,
    .transactions-table td {
        padding: 0.7rem;
    }
    
    .insights-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .page-header-content h1 {
        font-size: 1.3rem;
    }
    
    .section-title h2 {
        font-size: 1.3rem;
    }
    
    .sentiment-page,
    .analytics-page,
    .tracking-page {
        padding: 1rem;
    }
    
    .sentiment-section,
    .analytics-section,
    .tracking-section {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    .trend-chart,
    .transaction-trend,
    .flow-diagram {
        min-height: 250px;
    }
    
    .smart-money-list li {
        grid-template-columns: 20px 1fr;
        gap: 0.5rem;
    }
    
    .value {
        text-align: left;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        text-align: left;
    }
    
    .detail-value {
        text-align: left;
    }
}

/* ========================================
   HAMBURGER MENU - Mobile Navigation
   Responsive toggle for small screens
   ======================================== */

.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    z-index: 2001;
}

.hamburger-menu.active {
    transform: rotate(90deg);
}

.hamburger-line {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(12px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-12px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 998;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Mobile Navigation Menu */
.navbar-menu.mobile-open {
    position: fixed;
    top: 160px;
    left: 0;
    width: 100%;
    background: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 0;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    z-index: 999;
}

html.dark-theme .navbar-menu.mobile-open {
    background: var(--color-bg-secondary);
    border-top-color: rgba(94, 2, 25, 0.2);
}

.navbar-menu.mobile-open li {
    width: 100%;
}

.navbar-menu.mobile-open li a,
.navbar-menu.mobile-open li button {
    display: block;
    width: 100%;
    padding: 1rem 2rem !important;
    text-align: left;
    border-radius: 0;
    border-left: 4px solid transparent;
}

.navbar-menu.mobile-open li a:hover,
.navbar-menu.mobile-open li button:hover {
    background: var(--color-bg-secondary);
    border-left-color: var(--color-accent-primary);
}

html.dark-theme .navbar-menu.mobile-open li a:hover,
html.dark-theme .navbar-menu.mobile-open li button:hover {
    background: var(--color-bg-tertiary);
    border-left-color: var(--color-accent-secondary);
}

/* Mobile Terminal Dropdown */
.terminal-dropdown-container.mobile-open .terminal-dropdown {
    position: static;
    width: 100%;
    background: var(--color-bg-secondary);
    backdrop-filter: none;
    border: none;
    box-shadow: inset 0 2px 10px var(--color-shadow-light);
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-radius: 0;
}

html.dark-theme .terminal-dropdown-container.mobile-open .terminal-dropdown {
    background: var(--color-bg-tertiary);
    border-top: 1px solid rgba(94, 2, 25, 0.2);
}

.terminal-dropdown-container.mobile-open .terminal-item {
    padding: 1rem 2rem;
    border-left-width: 4px;
    border-bottom: 1px solid var(--color-border);
}

/* Active Navigation State */
.nav-link.active {
    color: var(--color-accent-primary);
    font-weight: 700;
}

html.dark-theme .nav-link.active {
    color: var(--color-accent-secondary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent-primary);
    border-radius: 2px;
}

html.dark-theme .nav-link.active::after {
    background: var(--color-accent-secondary);
}

.navbar-menu.mobile-open .nav-link.active {
    background: rgba(94, 2, 25, 0.1);
    border-left-color: var(--color-accent-primary);
}

html.dark-theme .navbar-menu.mobile-open .nav-link.active {
    background: rgba(255, 107, 157, 0.1);
    border-left-color: var(--color-accent-secondary);
}

/* ========================================
   COMING SOON / BETA BANNER
   Top-of-page announcement bar
   ======================================== */

.beta-banner {
    position: relative;
    z-index: 1001;
    background: linear-gradient(90deg, rgba(94, 2, 25, 0.95), rgba(174, 15, 50, 0.85));
    color: #ffffff;
    padding: 1rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(174, 15, 50, 0.6);
    box-shadow: 0 4px 15px rgba(94, 2, 25, 0.3);
}

html.dark-theme .beta-banner {
    background: linear-gradient(90deg, rgba(154, 27, 71, 0.95), rgba(214, 46, 86, 0.85));
    border-bottom-color: rgba(255, 107, 157, 0.4);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 107, 157, 0.15);
}

.beta-banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.beta-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.beta-banner a {
    color: #ffffff;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.3s ease;
}

.beta-banner a:hover {
    opacity: 0.8;
}

.beta-close-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.beta-close-btn:hover {
    opacity: 1;
}

/* ========================================
   RESPONSIVE NAVBAR - Tablet & Mobile
   ======================================== */

@media (max-width: 1024px) {
    .navbar {
        height: 140px;
    }
    
    .navbar-container {
        padding: 0.8rem 1.5rem;
        gap: 1rem;
    }
    
    .logo-image {
        height: 100px;
    }
    
    html.dark-theme .logo-image {
        height: 105px;
    }
    
    .search-bar {
        flex: 0.3;
        margin: 0 1rem;
    }
    
    .navbar-menu {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 120px;
    }
    
    .navbar-container {
        padding: 0.75rem 1.25rem;
    }
    
    .logo-image {
        height: 80px;
    }
    
    html.dark-theme .logo-image {
        height: 85px;
    }
    
    .search-bar {
        flex: 0.2;
        margin: 0 0.5rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .search-input {
        font-size: 0.85rem;
    }
    
    .search-input::placeholder {
        font-size: 0.75rem;
    }
    
    .navbar-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .terminal-dropdown {
        width: 280px;
        right: -20px;
    }
    
    .terminal-item-description {
        display: none;
    }
    
    .terminal-item-icon {
        width: 32px;
        height: 32px;
    }
    
    .terminal-item-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .navbar {
        height: 100px;
    }
    
    .navbar-container {
        padding: 0.5rem 1rem;
        gap: 0.75rem;
        justify-content: space-between;
    }
    
    .logo-image {
        height: 60px;
    }
    
    html.dark-theme .logo-image {
        height: 63px;
    }
    
    .navbar-logo {
        padding-left: 0;
    }
    
    .search-bar {
        display: none;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .navbar-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: var(--color-bg-primary);
        border-top: 1px solid var(--color-border);
        max-height: calc(100vh - 100px);
        padding: 0;
        transform: translateX(-100%);
        visibility: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
    }
    
    html.dark-theme .navbar-menu {
        background: var(--color-bg-secondary);
        border-top-color: rgba(94, 2, 25, 0.2);
    }
    
    .navbar-menu.mobile-open {
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-border);
    }
    
    .navbar-menu li a,
    .navbar-menu li button {
        display: block;
        width: 100%;
        padding: 1rem 1.5rem !important;
        text-align: left;
        border-radius: 0;
        border: none;
        margin: 0;
    }
    
    .navbar-menu li a:hover,
    .navbar-menu li button:hover {
        background: var(--color-bg-secondary);
        border-left: 4px solid var(--color-accent-primary);
        padding-left: calc(1.5rem - 4px) !important;
    }
    
    html.dark-theme .navbar-menu li a:hover,
    html.dark-theme .navbar-menu li button:hover {
        background: var(--color-bg-tertiary);
        border-left-color: var(--color-accent-secondary);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .navbar-menu li a.active,
    .navbar-menu li button.active {
        background: rgba(94, 2, 25, 0.1);
        border-left: 4px solid var(--color-accent-primary);
        padding-left: calc(1.5rem - 4px) !important;
    }
    
    html.dark-theme .navbar-menu li a.active,
    html.dark-theme .navbar-menu li button.active {
        background: rgba(255, 107, 157, 0.1);
        border-left-color: var(--color-accent-secondary);
    }
    
    .terminal-dropdown {
        position: static;
        width: 100%;
        background: var(--color-bg-secondary);
        border: none;
        border-radius: 0;
        box-shadow: inset 0 2px 8px var(--color-shadow-light);
        padding: 0;
        margin-top: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    
    html.dark-theme .terminal-dropdown {
        background: var(--color-bg-tertiary);
        border-top: 1px solid rgba(94, 2, 25, 0.2);
    }
    
    .terminal-dropdown.mobile-open {
        display: block;
    }
    
    .terminal-dropdown-container:hover .terminal-dropdown {
        display: none;
    }
    
    .terminal-item {
        padding: 1rem 1.5rem;
        border-left: 4px solid transparent;
        gap: 0.75rem;
        border-bottom: 1px solid var(--color-border);
    }
    
    .terminal-item-icon {
        width: 28px;
        height: 28px;
    }
    
    .terminal-item-text {
        flex: 1;
    }
    
    .terminal-item-title {
        font-size: 0.9rem;
    }
    
    .terminal-item-description {
        display: none;
    }
    
    .mobile-menu-overlay {
        display: none;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .theme-toggle {
        position: absolute;
        right: 1rem;
        top: 0.5rem;
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        border-radius: 50%;
        background: rgba(94, 2, 25, 0.1);
        border: 1px solid var(--color-accent-primary);
    }
    
    html.dark-theme .theme-toggle {
        background: rgba(255, 107, 157, 0.1);
        border-color: var(--color-accent-secondary);
    }
}

@media (max-width: 360px) {
    .navbar {
        height: 90px;
    }
    
    .navbar-logo {
        width: 50px;
    }
    
    .logo-image {
        height: 50px;
    }
    
    html.dark-theme .logo-image {
        height: 52px;
    }
    
    .beta-banner {
        padding: 0.75rem;
        font-size: 0.85rem;
    }
    
    .beta-badge {
        display: none;
    }
    
    .beta-banner-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   SENTIMENT PAGE STYLES
   ======================================== */

/* Fear & Greed Dynamic Glow Effects */
body.fear-glow {
    position: relative;
}

body.fear-glow::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(174, 15, 50, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: fear-pulse 2s ease-in-out infinite;
    z-index: -1;
}

body.greed-glow::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 200, 100, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: greed-pulse 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes fear-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes greed-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Gauge Chart */
.fear-greed-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.gauge-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.dark-theme .gauge-card {
    background: rgba(13, 13, 13, 0.6);
    border-color: rgba(94, 2, 25, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.1);
}

.gauge-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-primary);
}

.gauge-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.gauge-chart {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
}

.gauge-chart line {
    transition: all 0.5s ease;
}

.gauge-value {
    font-size: 3.5rem;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 1rem 0;
}

.gauge-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Sentiment Grid Section */
.sentiment-grid-section {
    padding: 2rem 0;
}

.sentiment-grid-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.sentiment-grid-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.dark-theme .sentiment-grid-item {
    background: rgba(13, 13, 13, 0.6);
    border-color: rgba(94, 2, 25, 0.3);
}

.sentiment-grid-item:hover {
    border-color: var(--color-accent-primary);
    box-shadow: 0 8px 32px rgba(94, 2, 25, 0.15);
}

html.dark-theme .sentiment-grid-item:hover {
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
}

/* Metric Cards Premium */
.metric-card-premium {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.metric-header-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.metric-header-premium h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.api-status {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-grid-premium {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex: 1;
}

.metric-item-premium {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-placeholder {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    font-family: 'JetBrains Mono', monospace;
}

.metric-hint {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    margin: 0;
}

.setup-cta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.setup-cta p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Coinglass Widgets */
.coinglass-widget-placeholder {
    background: var(--color-bg-secondary);
    border: 2px dashed var(--color-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.coinglass-widget-placeholder h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.coinglass-widget-placeholder p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.widgets-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.widget-container {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow: hidden;
}

.widget-container h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0 0 1rem 0;
}

.widget-container iframe {
    border-radius: 8px !important;
}

/* CryptoPanic News Section */
.news-section {
    padding: 2rem 0;
}

.news-section .subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.cryptopanic-news-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.news-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

html.dark-theme .news-card {
    background: rgba(13, 13, 13, 0.6);
    border-color: rgba(94, 2, 25, 0.3);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent-primary);
    box-shadow: 0 8px 24px rgba(94, 2, 25, 0.15);
}

html.dark-theme .news-card:hover {
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.15);
}

.news-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.news-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    flex: 1;
    line-height: 1.4;
}

.sentiment-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.sentiment-badge.bullish {
    background: rgba(0, 200, 100, 0.2);
    color: #00c864;
    border: 1px solid rgba(0, 200, 100, 0.4);
}

.sentiment-badge.bearish {
    background: rgba(255, 107, 157, 0.2);
    color: #ff6b9d;
    border: 1px solid rgba(255, 107, 157, 0.4);
}

.sentiment-badge.neutral {
    background: rgba(94, 2, 25, 0.2);
    color: var(--color-accent-primary);
    border: 1px solid rgba(94, 2, 25, 0.4);
}

html.dark-theme .sentiment-badge.neutral {
    background: rgba(255, 107, 157, 0.15);
    color: #ff6b9d;
    border: 1px solid rgba(255, 107, 157, 0.3);
}

.news-source {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin: 0;
}

.news-time {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    margin: 0;
}

.news-link {
    display: inline-block;
    color: var(--color-accent-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.news-link:hover {
    color: var(--color-accent-secondary);
    transform: translateX(4px);
}

.news-loading {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
}

/* Error Placeholder */
.error-placeholder {
    background: var(--color-bg-secondary);
    border: 2px solid var(--color-accent-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.error-icon {
    font-size: 2.5rem;
}

.error-placeholder h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.error-placeholder p {
    color: var(--color-text-secondary);
    margin: 0;
    max-width: 400px;
}

.retry-btn {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(94, 2, 25, 0.3);
}

/* Responsive Sentiment Grid */
@media (max-width: 1024px) {
    .sentiment-grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    .metric-grid-premium {
        grid-template-columns: 1fr;
    }
    
    .cryptopanic-news-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .fear-greed-container {
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .gauge-card {
        padding: 1.5rem;
        max-width: 100%;
    }
    
    .gauge-value {
        font-size: 2.5rem;
    }
    
    .sentiment-grid-wrapper {
        gap: 1.5rem;
    }
    
    .sentiment-grid-item {
        padding: 1.5rem;
    }
    
    .cryptopanic-news-container {
        grid-template-columns: 1fr;
    }
    
    .news-header {
        flex-direction: column;
    }
    
    .sentiment-badge {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .gauge-value {
        font-size: 2rem;
    }
    
    .metric-header-premium {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .metric-grid-premium {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ========================================
   PROFESSIONAL SENTIMENT TERMINAL STYLES
   ======================================== */

/* Main Terminal Container */
.sentiment-terminal {
    background: var(--color-bg-primary);
    position: relative;
}

/* Terminal Header */
.terminal-header {
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-secondary);
}

.terminal-title-bar {
    max-width: 1400px;
    margin: 0 auto;
}

.terminal-title-bar h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.5px;
}

.terminal-subtitle {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.data-refresh-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.status-pulse {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Terminal Grid Layout */
.terminal-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.terminal-column-left,
.terminal-column-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Terminal Card Base */
.terminal-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

html.dark-theme .terminal-card {
    background: rgba(13, 13, 13, 0.6);
    border-color: rgba(94, 2, 25, 0.3);
    box-shadow: 0 8px 32px rgba(255, 107, 157, 0.08);
}

.terminal-card:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-2px);
}

html.dark-theme .terminal-card:hover {
    box-shadow: 0 12px 40px rgba(255, 107, 157, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
}

.timestamp {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    font-family: 'JetBrains Mono', monospace;
}

/* Fear/Greed Section */
.fear-greed-section {
    grid-column: 1;
    grid-row: 1 / 3;
}

.gauge-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.gauge-chart {
    width: 100%;
    max-width: 280px;
    height: auto;
}

.gauge-chart line {
    transition: all 0.4s ease;
}

.gauge-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gauge-label {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    text-align: center;
    font-weight: 500;
}

/* Global Metrics Grid */
.global-metrics-section {
    grid-column: 1;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-box {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}

html.dark-theme .metric-box {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(94, 2, 25, 0.2);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 0.5rem;
}

.metric-change {
    font-size: 0.85rem;
    font-weight: 600;
}

.metric-change.positive {
    color: var(--color-success);
}

.metric-change.negative {
    color: var(--color-accent-secondary);
}

/* Trending Coins Section */
.trending-section {
    grid-column: 1;
}

.coin-count {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

.trending-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 300px;
    overflow-y: auto;
}

.trending-item {
    display: grid;
    grid-template-columns: 40px 1fr 100px 100px;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--color-bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.trending-item:hover {
    border-color: var(--color-accent-primary);
    background: var(--color-bg-tertiary);
}

.trending-rank {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent-primary);
    text-align: center;
}

.trending-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.trending-symbol {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
}

.trending-name {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.trending-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.trending-change {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    text-align: right;
}

.trending-change.positive {
    color: var(--color-success);
}

.trending-change.negative {
    color: var(--color-accent-secondary);
}

/* News Section */
.news-section {
    grid-column: 2;
    grid-row: 1;
}

.news-count {
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    background: var(--color-bg-secondary);
    padding: 0.3rem 0.7rem;
    border-radius: 12px;
}

.news-feed {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 450px;
    overflow-y: auto;
}

.news-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

html.dark-theme .news-card {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(94, 2, 25, 0.2);
}

.news-card:hover {
    border-color: var(--color-accent-primary);
    background: var(--color-bg-tertiary);
    transform: translateX(4px);
}

.news-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.news-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.news-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.news-badge.bullish {
    background: rgba(0, 200, 100, 0.2);
    color: var(--color-success);
    border: 1px solid rgba(0, 200, 100, 0.4);
}

.news-badge.bearish {
    background: rgba(255, 107, 157, 0.2);
    color: var(--color-accent-secondary);
    border: 1px solid rgba(255, 107, 157, 0.4);
}

.news-badge.neutral {
    background: rgba(94, 2, 25, 0.2);
    color: var(--color-accent-primary);
    border: 1px solid rgba(94, 2, 25, 0.4);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.news-source {
    font-weight: 600;
}

.news-time {
    font-family: 'JetBrains Mono', monospace;
}

.news-link {
    display: inline-block;
    color: var(--color-accent-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.news-link:hover {
    color: var(--color-accent-secondary);
    transform: translateX(2px);
}

/* RSI Heatmap Section */
.rsi-heatmap-section {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
}

.heatmap-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-secondary);
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-item.overbought .legend-box {
    background: rgba(174, 15, 50, 0.7);
}

.legend-item.oversold .legend-box {
    background: rgba(0, 200, 100, 0.7);
}

.legend-item.neutral .legend-box {
    background: rgba(255, 193, 7, 0.6);
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 350px;
}

.chart-container canvas {
    max-height: 100%;
}

/* Dynamic Glow Effects */
body.fear-glow-terminal {
    position: relative;
}

body.fear-glow-terminal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(174, 15, 50, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: fear-pulse-terminal 2s ease-in-out infinite;
    z-index: -1;
}

body.greed-glow-terminal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 200, 100, 0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: greed-pulse-terminal 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes fear-pulse-terminal {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

@keyframes greed-pulse-terminal {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Error & Loading States */
.error-state,
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-secondary);
}

.error-state span {
    font-size: 2rem;
}

.retry-btn {
    background: linear-gradient(135deg, var(--color-accent-primary), var(--color-accent-secondary));
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(94, 2, 25, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .terminal-grid-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .fear-greed-section {
        grid-column: 1;
        grid-row: auto;
    }

    .global-metrics-section,
    .trending-section,
    .news-section,
    .rsi-heatmap-section {
        grid-column: 1;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .terminal-title-bar h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .terminal-grid-container {
        gap: 1rem;
        padding: 1rem;
    }

    .terminal-card {
        padding: 1rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .news-feed,
    .trending-list {
        max-height: 250px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .gauge-value {
        font-size: 2rem;
    }

    .terminal-title-bar h1 {
        font-size: 1.25rem;
    }

    .trending-item {
        grid-template-columns: 30px 1fr 80px;
    }

    .trending-change {
        grid-column: 3 / 4;
    }

    .news-header {
        flex-direction: column;
    }

    .news-badge {
        align-self: flex-start;
    }
}

@media (max-width: 600px) {
    .terminal-header {
        padding: 1.5rem 1rem;
    }

    .terminal-title-bar h1 {
        font-size: 1rem;
    }

    .terminal-subtitle {
        font-size: 0.85rem;
    }

    .gauge-value {
        font-size: 1.75rem;
    }

    .gauge-chart {
        max-width: 200px;
    }

    .terminal-card {
        padding: 0.75rem;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .metric-box {
        padding: 0.75rem;
    }

    .metric-value {
        font-size: 1.25rem;
    }

    .news-feed,
    .trending-list {
        max-height: 200px;
    }

    .trending-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .trending-rank,
    .trending-price,
    .trending-change {
        text-align: left;
    }

    #rsiChart {
        max-height: 250px;
    }
}

@media print {
    .navbar,
    .theme-toggle,
    .cta-section,
    .beta-banner,
    .hamburger-menu,
    .mobile-menu-overlay {
        display: none;
    }
}
