/* OBSIDIAN Trading System - Premium Website Styles */

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors matching winrate1.png */
    --bg-primary: #080808;
    --bg-secondary: #151515;
    --bg-card: linear-gradient(145deg, #151515, #0c0c0c);
    --border-color: #252525;
    --border-accent: #00d4ff;

    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #666666;

    --color-positive: #00ff88;
    --color-negative: #ff4444;
    --color-neutral: #00d4ff;
    --color-warning: #ffaa00;

    /* Typography */
    --font-main: 'Courier New', 'Courier', monospace;
    --font-size-base: 16px;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-positive: 0 0 20px rgba(0, 255, 136, 0.3);
    --glow-accent: 0 0 10px rgba(0, 212, 255, 0.1);

    /* Global desktop scale (equivalent to browser zoom 80%) */
    --desktop-page-scale: 0.8;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: var(--font-size-base);
    line-height: 1.6;
    overflow-x: hidden;
}

/* NOTE: Avoid nonstandard `zoom` on the root element.
 * It breaks canvas pointer coordinate mapping (Chart.js hover/tooltips).
 * If you want a smaller desktop UI, prefer adjusting base font/spacing tokens instead.
 */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Shared blue liquid shell style (applies only where explicitly enabled). */
.shell-blue-liquid {
    background-color: #050c1f;
    background-image: linear-gradient(160deg, #050c1f 0%, #09152b 52%, #081022 100%);
}

.trade-neural-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.42;
}

@media (prefers-reduced-motion: reduce) {
    .trade-neural-bg {
        opacity: 0.24;
    }
}

.shell-blue-liquid .navbar {
    top: 0 !important;
    background: linear-gradient(145deg, #050c1f 0%, #08112a 100%);
    border-bottom: 1px solid rgba(120, 178, 224, 0.22);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.shell-blue-liquid .page-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 30px 0 30px !important;
    padding-top: 170px !important;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .shell-blue-liquid .navbar {
        top: 0 !important;
    }

    .shell-blue-liquid .page-container {
        padding: 15px 15px 0 15px !important;
        padding-top: 150px !important;
    }

    .shell-blue-liquid .footer .footer-status {
        align-items: center;
    }
}

.shell-blue-liquid .footer {
    background: linear-gradient(145deg, #050c1f 0%, #08112a 100%);
}

/* Keep header/footer typography and controls identical across blue-shell pages. */
.shell-blue-liquid .logo-text {
    color: #eaf7ff !important;
    text-shadow: 0 6px 20px rgba(67, 168, 217, 0.2);
}

.shell-blue-liquid .logo-tagline {
    color: #a8f0d5 !important;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    letter-spacing: 2.2px !important;
    text-transform: uppercase;
    text-shadow: none !important;
}

.shell-blue-liquid .nav-links a {
    color: rgba(210, 231, 247, 0.84) !important;
}

.shell-blue-liquid .nav-links a:hover {
    color: #eef8ff !important;
}

.shell-blue-liquid .nav-cta {
    border: 1px solid rgba(120, 188, 232, 0.4) !important;
    border-radius: 9px !important;
    background: linear-gradient(145deg, rgba(61, 125, 203, 0.82), rgba(75, 167, 216, 0.78)) !important;
    color: #edf8ff !important;
    box-shadow:
        inset 0 1px 0 rgba(214, 234, 250, 0.16),
        inset 0 -10px 18px rgba(8, 20, 52, 0.28),
        0 8px 20px rgba(32, 92, 180, 0.24) !important;
}

.shell-blue-liquid .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(214, 234, 250, 0.2),
        inset 0 -10px 18px rgba(8, 20, 52, 0.32),
        0 10px 24px rgba(32, 92, 180, 0.32) !important;
}

.shell-blue-liquid .mobile-doc-btn {
    border-color: rgba(122, 186, 230, 0.38) !important;
    background: linear-gradient(145deg, rgba(61, 125, 203, 0.66), rgba(75, 167, 216, 0.58)) !important;
    color: #eaf7ff !important;
}

.shell-blue-liquid .mobile-doc-btn::before {
    background: linear-gradient(90deg, transparent, rgba(132, 196, 234, 0.2), transparent) !important;
}

.shell-blue-liquid .hero-title {
    text-shadow: 0 12px 34px rgba(37, 124, 255, 0.42) !important;
}

.shell-blue-liquid .footer-content {
    border-bottom-color: rgba(110, 178, 224, 0.18) !important;
}

.shell-blue-liquid .footer-brand p,
.shell-blue-liquid .footer-links a,
.shell-blue-liquid .footer-bottom p,
.shell-blue-liquid .last-update,
.shell-blue-liquid .footer-status {
    color: rgba(203, 229, 247, 0.8) !important;
}

.shell-blue-liquid .footer-brand p:last-of-type,
.shell-blue-liquid .footer-status .status-indicator,
.shell-blue-liquid .footer-status .last-update,
.shell-blue-liquid .footer-status .last-update #footer-update {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    letter-spacing: 1.6px !important;
    text-shadow: none !important;
}

.shell-blue-liquid .footer-brand h3,
.shell-blue-liquid .footer-links a:hover,
.shell-blue-liquid .status-indicator,
.shell-blue-liquid .disclaimer {
    color: #cde9fb !important;
}

.shell-blue-liquid .footer-tagline {
    color: #a8f0d5 !important;
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-family: var(--font-main) !important;
    font-weight: 700 !important;
    letter-spacing: 2.2px !important;
    text-transform: uppercase;
    text-shadow: none !important;
}

.shell-blue-liquid .disclaimer {
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* Enforce glass panels for pages explicitly in blue liquid mode. */
.shell-blue-liquid .hero-badge,
.shell-blue-liquid .metric-box,
.shell-blue-liquid .chart-container,
.shell-blue-liquid .phase-indicator,
.shell-blue-liquid .result-box,
.shell-blue-liquid .detail-section,
.shell-blue-liquid .sq-panel,
.shell-blue-liquid .readiness-panel,
.shell-blue-liquid .readiness-card,
.shell-blue-liquid .insight-card,
.shell-blue-liquid .insight-panel,
.shell-blue-liquid .chart-stat-card,
.shell-blue-liquid .chart-compare-box,
.shell-blue-liquid .drawdown-overlay-wrap,
.shell-blue-liquid .plot-container,
.shell-blue-liquid .action-group,
.shell-blue-liquid .criteria-item,
.shell-blue-liquid .run-notes,
.shell-blue-liquid .ss-card,
.shell-blue-liquid .run-card,
.shell-blue-liquid .run-content,
.shell-blue-liquid .readiness-accordion,
.shell-blue-liquid .monitor-header,
.shell-blue-liquid .terminal-container,
.shell-blue-liquid .terminal-header,
.shell-blue-liquid .terminal-footer,
.shell-blue-liquid .terminal-body,
.shell-blue-liquid .status-bar,
.shell-blue-liquid .login-shell,
.shell-blue-liquid .plot-modal,
.shell-blue-liquid .detail-content,
.shell-blue-liquid .run-details,
.shell-blue-liquid .param-row,
.shell-blue-liquid .kpi-sparkline,
.shell-blue-liquid .state-panel-card,
.shell-blue-liquid .detail-panel,
.shell-blue-liquid .lstm-card {
    position: relative !important;
    isolation: isolate !important;
    overflow: hidden !important;
    background: linear-gradient(162deg, rgba(16, 44, 102, 0.2), rgba(4, 12, 34, 0.5)) !important;
    border: 1px solid rgba(120, 178, 224, 0.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 255, 0.08),
        0 10px 22px rgba(4, 10, 28, 0.32) !important;
    backdrop-filter: blur(12px) saturate(135%) brightness(0.98) !important;
    -webkit-backdrop-filter: blur(12px) saturate(135%) brightness(0.98) !important;
}

.shell-blue-liquid .hero-badge::before,
.shell-blue-liquid .metric-box::before,
.shell-blue-liquid .chart-container::before,
.shell-blue-liquid .phase-indicator::before,
.shell-blue-liquid .result-box::before,
.shell-blue-liquid .detail-section::before,
.shell-blue-liquid .sq-panel::before,
.shell-blue-liquid .readiness-panel::before,
.shell-blue-liquid .readiness-card::before,
.shell-blue-liquid .insight-card::before,
.shell-blue-liquid .insight-panel::before,
.shell-blue-liquid .chart-stat-card::before,
.shell-blue-liquid .chart-compare-box::before,
.shell-blue-liquid .drawdown-overlay-wrap::before,
.shell-blue-liquid .plot-container::before,
.shell-blue-liquid .action-group::before,
.shell-blue-liquid .criteria-item::before,
.shell-blue-liquid .run-notes::before,
.shell-blue-liquid .ss-card::before,
.shell-blue-liquid .run-card::before,
.shell-blue-liquid .run-content::before,
.shell-blue-liquid .readiness-accordion::before,
.shell-blue-liquid .monitor-header::before,
.shell-blue-liquid .terminal-container::before,
.shell-blue-liquid .terminal-header::before,
.shell-blue-liquid .terminal-footer::before,
.shell-blue-liquid .terminal-body::before,
.shell-blue-liquid .status-bar::before,
.shell-blue-liquid .kpi-sparkline::before,
.shell-blue-liquid .state-panel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(194, 232, 255, 0.12), rgba(255, 255, 255, 0) 42%),
        radial-gradient(120% 80% at 0% 0%, rgba(118, 184, 228, 0.08), rgba(118, 184, 228, 0) 58%);
    opacity: 0.18 !important;
    z-index: 0 !important;
}

.shell-blue-liquid .hero-badge::after,
.shell-blue-liquid .metric-box::after,
.shell-blue-liquid .chart-container::after,
.shell-blue-liquid .phase-indicator::after,
.shell-blue-liquid .result-box::after,
.shell-blue-liquid .detail-section::after,
.shell-blue-liquid .sq-panel::after,
.shell-blue-liquid .readiness-panel::after,
.shell-blue-liquid .readiness-card::after,
.shell-blue-liquid .insight-card::after,
.shell-blue-liquid .insight-panel::after,
.shell-blue-liquid .chart-stat-card::after,
.shell-blue-liquid .chart-compare-box::after,
.shell-blue-liquid .drawdown-overlay-wrap::after,
.shell-blue-liquid .plot-container::after,
.shell-blue-liquid .action-group::after,
.shell-blue-liquid .criteria-item::after,
.shell-blue-liquid .run-notes::after,
.shell-blue-liquid .ss-card::after,
.shell-blue-liquid .run-card::after,
.shell-blue-liquid .run-content::after,
.shell-blue-liquid .readiness-accordion::after,
.shell-blue-liquid .monitor-header::after,
.shell-blue-liquid .terminal-container::after,
.shell-blue-liquid .terminal-header::after,
.shell-blue-liquid .terminal-footer::after,
.shell-blue-liquid .terminal-body::after,
.shell-blue-liquid .status-bar::after,
.shell-blue-liquid .state-panel-card::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(176, 214, 242, 0.12);
    box-shadow: inset 0 -8px 18px rgba(4, 10, 26, 0.16);
    opacity: 0.16 !important;
    z-index: 0 !important;
}

.shell-blue-liquid .hero-badge > *,
.shell-blue-liquid .metric-box > *,
.shell-blue-liquid .chart-container > *,
.shell-blue-liquid .phase-indicator > *,
.shell-blue-liquid .result-box > *,
.shell-blue-liquid .detail-section > *,
.shell-blue-liquid .sq-panel > *,
.shell-blue-liquid .readiness-panel > *,
.shell-blue-liquid .readiness-card > *,
.shell-blue-liquid .insight-card > *,
.shell-blue-liquid .insight-panel > *,
.shell-blue-liquid .chart-stat-card > *,
.shell-blue-liquid .chart-compare-box > *,
.shell-blue-liquid .drawdown-overlay-wrap > *,
.shell-blue-liquid .plot-container > *,
.shell-blue-liquid .action-group > *,
.shell-blue-liquid .criteria-item > *,
.shell-blue-liquid .run-notes > *,
.shell-blue-liquid .ss-card > *,
.shell-blue-liquid .run-card > *,
.shell-blue-liquid .run-content > *,
.shell-blue-liquid .readiness-accordion > *,
.shell-blue-liquid .monitor-header > *,
.shell-blue-liquid .terminal-container > *,
.shell-blue-liquid .terminal-header > *,
.shell-blue-liquid .terminal-footer > *,
.shell-blue-liquid .terminal-body > *,
.shell-blue-liquid .status-bar > *,
.shell-blue-liquid .plot-modal > *,
.shell-blue-liquid .plot-modal-header > *,
.shell-blue-liquid .plot-modal-body-wrapper > *,
.shell-blue-liquid .kpi-sparkline {
    position: relative;
    z-index: 1;
}

.hero-badge,
.metric-box,
.chart-container,
.phase-indicator,
.result-box,
.detail-section,
.sq-panel,
.readiness-panel,
.readiness-card,
.insight-card,
.insight-panel,
.chart-stat-card,
.chart-compare-box,
.drawdown-overlay-wrap,
.plot-container,
.action-group,
.criteria-item,
.run-notes,
.ss-card,
.run-card,
.run-content,
.readiness-accordion {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(162deg, rgba(16, 44, 102, 0.2), rgba(4, 12, 34, 0.5)) !important;
    border: 1px solid rgba(120, 178, 224, 0.22) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 255, 0.08),
        0 10px 22px rgba(4, 10, 28, 0.32) !important;
    backdrop-filter: blur(12px) saturate(135%) brightness(0.98) !important;
    -webkit-backdrop-filter: blur(12px) saturate(135%) brightness(0.98) !important;
}

.hero-badge::before,
.metric-box::before,
.chart-container::before,
.phase-indicator::before,
.result-box::before,
.detail-section::before,
.sq-panel::before,
.readiness-panel::before,
.readiness-card::before,
.insight-card::before,
.insight-panel::before,
.chart-stat-card::before,
.chart-compare-box::before,
.drawdown-overlay-wrap::before,
.plot-container::before,
.action-group::before,
.criteria-item::before,
.run-notes::before,
.ss-card::before,
.run-card::before,
.run-content::before,
.readiness-accordion::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(194, 232, 255, 0.12), rgba(255, 255, 255, 0) 42%),
        radial-gradient(120% 80% at 0% 0%, rgba(118, 184, 228, 0.08), rgba(118, 184, 228, 0) 58%);
    opacity: 0.18 !important;
    z-index: 0 !important;
}

.hero-badge::after,
.metric-box::after,
.chart-container::after,
.phase-indicator::after,
.result-box::after,
.detail-section::after,
.sq-panel::after,
.readiness-panel::after,
.readiness-card::after,
.insight-card::after,
.insight-panel::after,
.chart-stat-card::after,
.chart-compare-box::after,
.drawdown-overlay-wrap::after,
.plot-container::after,
.action-group::after,
.criteria-item::after,
.run-notes::after,
.ss-card::after,
.run-card::after,
.run-content::after,
.readiness-accordion::after {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(176, 214, 242, 0.12);
    box-shadow: inset 0 -8px 18px rgba(4, 10, 26, 0.16);
    opacity: 0.16 !important;
    z-index: 0 !important;
}

.hero-badge > *,
.metric-box > *,
.chart-container > *,
.phase-indicator > *,
.result-box > *,
.detail-section > *,
.sq-panel > *,
.readiness-panel > *,
.readiness-card > *,
.insight-card > *,
.insight-panel > *,
.chart-stat-card > *,
.chart-compare-box > *,
.drawdown-overlay-wrap > *,
.plot-container > *,
.action-group > *,
.criteria-item > *,
.run-notes > *,
.ss-card > *,
.run-card > *,
.run-content > *,
.readiness-accordion > * {
    position: relative;
    z-index: 1;
}

.hero-badge:hover,
.metric-box:hover,
.chart-container:hover,
.phase-indicator:hover,
.result-box:hover,
.detail-section:hover,
.sq-panel:hover,
.readiness-panel:hover,
.readiness-card:hover,
.insight-card:hover,
.insight-panel:hover,
.chart-stat-card:hover,
.chart-compare-box:hover,
.drawdown-overlay-wrap:hover,
.plot-container:hover,
.action-group:hover,
.criteria-item:hover,
.run-notes:hover,
.ss-card:hover,
.run-card:hover,
.run-content:hover,
.readiness-accordion:hover {
    transform: none !important;
    border-color: rgba(132, 190, 232, 0.32) !important;
    box-shadow:
        inset 0 1px 0 rgba(224, 242, 255, 0.1),
        0 12px 24px rgba(6, 16, 42, 0.32) !important;
}

/* Keep card text crisp in glass cards */
.metric-value,
.result-value,
.sq-score-value,
.insight-value,
.run-state-chip,
.readiness-status {
    text-shadow: 0 1px 10px rgba(4, 10, 28, 0.28);
}

/* ===== CRYPTO TICKER ===== */
.crypto-ticker {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 34px;
    background: #000000;
    border-bottom: none;
    z-index: 1001;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.ticker-wrapper {
    height: 100%;
    overflow: hidden;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    animation: ticker-scroll 6s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.ticker-symbol {
    color: var(--color-neutral);
    margin-right: 10px;
}

.ticker-price {
    color: var(--text-primary);
    margin-right: 10px;
}

.ticker-change {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.ticker-change.positive {
    color: var(--color-positive);
    background: rgba(0, 255, 136, 0.1);
}

.ticker-change.negative {
    color: var(--color-negative);
    background: rgba(255, 68, 68, 0.1);
}

.ticker-separator {
    color: var(--border-color);
    margin: 0 10px;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 34px;
    left: 0;
    right: 0;
    background: #000000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    border-top: none;
    z-index: 1000;
    padding: 0;
    margin: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.nav-logo-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.nav-logo:hover .nav-logo-icon {
    transform: scale(1.1) rotate(5deg);
}

.nav-logo-text-container {
    display: flex;
    flex-direction: column;
}

.nav-logo:hover .logo-text {
    color: var(--color-positive);
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    color: var(--text-primary);
}

.logo-tagline {
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--color-positive);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
    padding: 8px 16px;
}

.nav-links a:hover {
    color: var(--color-positive);
}

.nav-cta {
    background: var(--color-positive) !important;
    color: var(--bg-primary) !important;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-cta:hover {
    box-shadow: var(--glow-positive);
    transform: translateY(-2px);
}

/* SVG Icons in Navigation */
.nav-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

/* Mobile Buttons Group */
.mobile-buttons-group {
    display: none; /* Hidden on desktop */
    gap: 6px;
    align-items: center;
}

/* Mobile Documentation Button */
.mobile-doc-btn {
    display: flex;
    background: linear-gradient(145deg, rgba(0, 255, 136, 0.25), rgba(0, 212, 255, 0.2));
    color: var(--color-positive);
    border: 1px solid rgba(0, 255, 136, 0.4);
    width: 36px;
    height: 36px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Blur effect only on iOS/Safari for better performance */
@supports (-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px)) {
    @media (hover: hover) and (pointer: fine) {
        .mobile-doc-btn {
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }
    }
}

.mobile-doc-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.2), transparent);
    transition: 0.5s;
}

.mobile-doc-btn:hover::before {
    left: 100%;
}

.mobile-doc-btn:active {
    transform: scale(0.95);
}

/* Show mobile buttons group only on mobile */
@media (max-width: 768px) {
    .mobile-buttons-group {
        display: flex;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 135px var(--spacing-md) var(--spacing-xl);
    overflow: hidden;
}

/* Global Particles Background */
.global-particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#particles-canvas {
    width: 100%;
    height: 100%;
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1200px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-positive);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 2px;
    color: var(--color-positive);
    margin-bottom: var(--spacing-md);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--color-positive);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.hero-title {
    font-size: 72px;
    font-weight: bold;
    letter-spacing: 12px;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    display: block;
    font-size: 24px;
    letter-spacing: 4px;
    color: var(--color-neutral);
    margin-top: var(--spacing-sm);
}

.hero-tagline {
    display: block;
    font-size: 16px;
    letter-spacing: 3px;
    color: #ffdd00;
    margin-top: 12px;
    font-style: normal;
    font-weight: bold;
    opacity: 1;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffdd00;
    text-shadow: 0 0 20px rgba(255, 221, 0, 0.8), 0 0 30px rgba(255, 221, 0, 0.5);
    text-transform: uppercase;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    line-height: 1.8;
}

/* Hero Summary */
.hero-summary {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
    padding: var(--spacing-lg);
    background: rgba(15, 15, 15, 0.6);
    border-left: 4px solid var(--color-warning);
    border-right: 4px solid var(--color-warning);
    border-top: 1px solid rgba(255, 170, 0, 0.2);
    border-bottom: 1px solid rgba(255, 170, 0, 0.2);
    border-radius: 0;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.hero-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(255, 170, 0, 0.1) 50%, transparent 52%);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

.summary-text {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.9;
    text-align: center;
    margin: 0;
    position: relative;
    z-index: 1;
}

.summary-text .highlight {
    color: var(--color-warning);
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 170, 0, 0.4);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.02), rgba(0, 212, 255, 0.02));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.15));
    border-image-slice: 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.05), 0 0 20px rgba(0, 212, 255, 0.02);
}

.hero-stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: shimmer 4s infinite;
}

.hero-stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.hero-stat:hover {
    transform: translateY(-5px);
    border-color: var(--color-positive);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.hero-stat .stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--color-positive);
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-stat .stat-label {
    font-size: 12px;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-lg);
}

.btn {
    padding: 16px 40px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--color-positive);
    color: var(--bg-primary);
}

.btn-primary:hover {
    box-shadow: var(--glow-positive);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-accent);
}

.btn-secondary:hover {
    background: var(--color-neutral);
    color: var(--bg-primary);
    box-shadow: var(--glow-accent);
}

.btn-large {
    padding: 20px 60px;
    font-size: 16px;
}

/* ===== TOGGLE FEED BUTTON ===== */
.toggle-feed-btn {
    position: fixed;
    right: var(--spacing-md);
    top: 150px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--color-positive);
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-feed-btn:hover {
    background: var(--color-positive);
    box-shadow: var(--glow-positive);
    transform: scale(1.1);
}

.toggle-feed-btn.hidden {
    display: none;
}

/* ===== LIVE FEED ===== */
.live-feed {
    position: fixed;
    right: var(--spacing-md);
    top: 120px;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    cursor: move;
    transition: opacity 0.3s ease;
}

.live-feed.hidden {
    display: none;
}

.feed-header {
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-accent);
    font-size: 12px;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: move;
    user-select: none;
}

.feed-close-btn {
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feed-close-btn:hover {
    color: var(--color-negative);
    transform: scale(1.2);
}

.feed-pulse {
    width: 6px;
    height: 6px;
    background: var(--color-positive);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.feed-content {
    max-height: 400px;
    overflow-y: auto;
}

.feed-item {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.feed-time {
    color: var(--text-muted);
    font-size: 10px;
}

.feed-action {
    color: var(--text-primary);
    margin: 4px 0;
}

.feed-profit {
    font-weight: bold;
}

.feed-profit.positive {
    color: var(--color-positive);
}

.feed-profit.negative {
    color: var(--color-negative);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 1;
}

.section-dark {
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(2px);
}

.section-light {
    background: rgba(18, 18, 18, 0.1);
    backdrop-filter: blur(2px);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 48px;
    letter-spacing: 8px;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 18px;
    color: var(--color-positive);
    font-style: italic;
    letter-spacing: 2px;
}

.subsection-title {
    font-size: 28px;
    letter-spacing: 4px;
    margin: var(--spacing-lg) 0 var(--spacing-md);
    text-align: center;
    color: var(--color-neutral);
}

/* ===== METRICS GRID ===== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.metric-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(37, 37, 37, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.metric-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
    transform: translateY(-2px);
}

.metric-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.metric-value {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-primary);
}

.metric-value.positive {
    color: var(--color-positive);
}

.metric-value.negative {
    color: var(--color-negative);
}

.metric-value.neutral {
    color: var(--color-neutral);
}

.metric-change,
.metric-sub {
    font-size: 14px;
    color: var(--color-positive);
    margin-top: 4px;
}

/* ===== CHARTS ===== */
.charts-container {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.chart-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(37, 37, 37, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.chart-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
}

.chart-card.large {
    grid-column: 1 / -1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
}

.chart-title {
    font-size: 18px;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.chart-period {
    font-size: 14px;
    color: var(--text-secondary);
}

.chart-wrapper {
    height: 400px;
    position: relative;
}

/* ===== 3D EQUITY CURVE ===== */
.chart-wrapper-3d {
    height: 500px;
    position: relative;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05), transparent);
    border-radius: 8px;
    overflow: hidden;
}

.chart-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.chart-control-btn {
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-positive);
    border-radius: 4px;
    color: var(--color-positive);
    font-family: var(--font-main);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.chart-control-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--color-positive);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    transform: translateY(-1px);
}

/* Info Banner for 3D Chart */
.chart-info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 120px;
}

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

.info-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.info-value.positive {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.info-value.negative {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

/* Equity Info Panel (Outside 3D Scene) */
.chart-info-panel {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.03));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.info-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.info-label {
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.info-value.positive {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.info-value.negative {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.4);
}

.chart-legend-3d {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-color {
    width: 24px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legend-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.legend-hint {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
    margin-left: auto;
}

/* ===== TABLES ===== */
.table-card {
    background: #000000;
    border: 1px solid rgba(37, 37, 37, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    overflow: hidden;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.table-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-accent);
}

.table-title {
    font-size: 18px;
    color: var(--color-neutral);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.table-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.table-wrapper {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-primary);
}

.data-table th {
    padding: 12px;
    text-align: left;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-accent);
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.05);
}

.trade-win {
    color: var(--color-positive);
}

.trade-loss {
    color: var(--color-negative);
}

.trade-id {
    color: var(--color-neutral);
    font-weight: bold;
}

/* ===== ALGORITHM SECTION ===== */

/* Algorithm Flow */
.algo-flow {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    overflow-x: auto;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.flow-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: var(--spacing-md);
    padding-top: 30px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flow-step:hover {
    border-color: var(--color-neutral);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.flow-number {
    position: absolute;
    top: -15px;
    left: 10px;
    background: var(--color-positive);
    color: var(--bg-primary);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.flow-icon {
    font-size: 40px;
    margin: var(--spacing-sm) 0;
}

.flow-step h4 {
    font-size: 16px;
    color: var(--color-neutral);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.flow-step p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.flow-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.detail-badge {
    font-size: 10px;
    padding: 4px 10px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--color-positive);
    border-radius: 12px;
    color: var(--color-positive);
}

.flow-arrow {
    font-size: 24px;
    color: var(--color-neutral);
    animation: slideRight 0.8s infinite;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@keyframes slideRight {
    0%, 100% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(5px); opacity: 0.5; }
}

/* Interactive Flip Cards */
.algo-cards-interactive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.algo-card-flip {
    perspective: 1000px;
    height: 400px;
    width: 100%;
}

@media (max-width: 1200px) {
    .algo-cards-interactive {
        grid-template-columns: 1fr;
    }
}

.algo-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.algo-card-flip:hover .algo-card-inner {
    transform: rotateY(180deg);
}

.algo-card-front,
.algo-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: var(--spacing-lg);
}

.algo-card-front {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.algo-card-back {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--color-positive);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.card-icon {
    font-size: 48px;
}

.card-header h3 {
    font-size: 22px;
    color: var(--color-neutral);
    letter-spacing: 2px;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
}

.card-stat {
    text-align: center;
    padding: var(--spacing-sm);
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.stat-num {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--color-positive);
    margin-bottom: 8px;
    word-wrap: break-word;
    max-width: 100%;
}

.stat-txt {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-hover-hint {
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    font-style: italic;
    margin-top: auto;
}

.algo-card-back h4 {
    font-size: 20px;
    color: var(--color-positive);
    margin-bottom: var(--spacing-md);
    text-align: center;
    letter-spacing: 2px;
}

.card-details-list {
    list-style: none;
    padding: 0;
}

.card-details-list li {
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

/* Risk Dashboard */
.risk-dashboard {
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.02), rgba(0, 212, 255, 0.02));
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 212, 255, 0.15));
    border-image-slice: 1;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 255, 136, 0.05), 0 0 20px rgba(0, 212, 255, 0.02);
}

.risk-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    animation: shimmer 4s infinite;
    z-index: 0;
}

.risk-visual {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.risk-meter {
    text-align: center;
}

.meter-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.meter-bar {
    width: 100%;
    height: 40px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    position: relative;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff88 0%, #00d4ff 100%);
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: pulse-meter 2s infinite;
}

@keyframes pulse-meter {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.meter-value {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-positive);
    letter-spacing: 3px;
}

.risk-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.risk-param {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.risk-param:hover {
    border-color: var(--color-positive);
    box-shadow: var(--glow-positive);
    transform: scale(1.02);
}

.param-icon {
    font-size: 32px;
}

.param-info {
    display: flex;
    flex-direction: column;
}

.param-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.param-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-positive);
}

/* ===== BACKTEST SECTION - QUANTUM TRADING HOLODECK ===== */

.backtest-grid {
    margin-bottom: var(--spacing-lg);
    position: relative;
    min-height: 600px;
}

/* Holodeck Container */
.quantum-holodeck {
    position: relative;
    width: 100%;
    height: 600px;
    background: radial-gradient(ellipse at center,
        rgba(10, 0, 40, 0.95) 0%,
        rgba(0, 0, 0, 0.98) 100%
    );
    border: 2px solid #00d4ff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(0, 212, 255, 0.4),
        inset 0 0 100px rgba(138, 43, 226, 0.1);
}

/* Quantum Particle Background Canvas */
.quantum-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Holographic Cubes Container */
.holographic-cubes-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Neural Network Connections Canvas */
.neural-connections-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

/* Lightning Strike Canvas */
.lightning-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

/* Holodeck Info Panel */
.holodeck-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    padding: 15px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: #00d4ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    z-index: 5;
    backdrop-filter: blur(10px);
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.holodeck-info strong {
    color: #00ffff;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.8);
}

/* Cube Detail Popup */
.cube-detail-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: linear-gradient(135deg,
        rgba(0, 20, 40, 0.98),
        rgba(20, 0, 40, 0.98)
    );
    border: 2px solid #00d4ff;
    border-radius: 12px;
    padding: 30px;
    min-width: 400px;
    z-index: 10;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow:
        0 0 50px rgba(0, 212, 255, 0.6),
        inset 0 0 50px rgba(138, 43, 226, 0.2);
}

.cube-detail-popup.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.cube-detail-title {
    font-size: 24px;
    color: #00d4ff;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    font-family: 'JetBrains Mono', monospace;
}

.cube-detail-metrics {
    display: grid;
    gap: 12px;
}

.cube-detail-metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 3px solid rgba(0, 212, 255, 0.5);
    border-radius: 4px;
}

.cube-detail-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cube-detail-value {
    color: #00ffff;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.6);
}

.cube-detail-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 50%;
    color: #ff4444;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cube-detail-close:hover {
    background: rgba(255, 68, 68, 0.4);
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

@media (max-width: 768px) {
    .quantum-holodeck {
        height: 500px;
    }

    .holodeck-info {
        font-size: 10px;
        padding: 10px 15px;
        bottom: 10px;
        left: 10px;
        right: 10px;
        text-align: center;
    }

    .cube-detail-popup {
        width: 95%;
        max-width: none;
        min-width: 0;
        padding: 25px 20px;
        max-height: 80vh;
        overflow-y: auto;
    }

    .cube-detail-title {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .cube-detail-metric {
        padding: 12px;
    }

    .cube-detail-label {
        font-size: 11px;
    }

    .cube-detail-value {
        font-size: 14px;
    }

    .cube-detail-close {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

/* ===== QUANTUM STATE TRANSITION SEPARATOR ===== */
.quantum-separator {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 80px;
    margin-bottom: 80px;
    background: linear-gradient(180deg,
        rgba(0, 20, 40, 0.3) 0%,
        rgba(0, 10, 30, 0.5) 50%,
        rgba(0, 20, 40, 0.3) 100%
    );
    border-top: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(0, 212, 255, 0.2),
        inset 0 -1px 0 rgba(0, 212, 255, 0.2);
}

.quantum-separator-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Border */
.quantum-border-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0, 212, 255, 0.3);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.quantum-label {
    color: #00d4ff;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.quantum-status {
    color: #00ff88;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    animation: pulse-status 2s ease-in-out infinite;
}

@keyframes pulse-status {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Particle Collision Canvas */
.quantum-collision-canvas {
    width: 100%;
    height: 60px;
    display: block;
    margin: 15px 0;
}

/* Scientific Data Stream */
.quantum-data-stream {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin: 15px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
}

.data-line {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: rgba(0, 212, 255, 0.05);
    border-left: 2px solid rgba(0, 212, 255, 0.5);
    border-radius: 2px;
}

.data-key {
    color: #00d4ff;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
}

.data-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
}

.data-value {
    color: #00ff88;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.3);
    flex: 1;
    text-align: right;
}

/* Bottom Border */
.quantum-border-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px dashed rgba(0, 212, 255, 0.3);
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 15px;
}

.quantum-timestamp {
    color: rgba(0, 212, 255, 0.7);
}

.quantum-checksum {
    color: rgba(138, 43, 226, 0.7);
    font-weight: 700;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .quantum-separator {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .quantum-separator-inner {
        padding: 15px 10px;
    }

    .quantum-border-top,
    .quantum-border-bottom {
        flex-direction: column;
        gap: 5px;
        align-items: flex-start;
    }

    .quantum-data-stream {
        grid-template-columns: 1fr;
        font-size: 11px;
    }

    .data-line {
        padding: 6px 10px;
    }
}


/* ===== TECHNOLOGY SECTION ===== */
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.tech-badge-item {
    animation: fadeIn 0.6s ease;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #000000;
    border: 2px solid var(--color-positive);
    border-radius: 30px;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
}

/* Tech badge tooltips disabled - using JavaScript overlay instead */
.tech-badge::after {
    content: none;
}

.tech-badge:hover::after {
    content: none;
}

/* Tech badge tooltip overlay (same as arch-tooltip-overlay) */
.tech-tooltip-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    color: var(--text-primary);
    padding: 20px 24px;
    border-radius: 8px;
    border: 2px solid var(--color-positive);
    font-size: 14px;
    width: 320px;
    max-width: 90vw;
    white-space: normal;
    z-index: 999999999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-main);
}

.tech-tooltip-overlay.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.tech-badge:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.5), 0 0 30px rgba(0, 255, 136, 0.3);
    border-color: var(--color-positive);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 0, 0, 1));
}

.tech-badge-icon {
    font-size: 24px;
}

.tech-badge-text {
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Architecture Diagram */
.tech-architecture {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--color-neutral);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.1);
}

.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--spacing-md);
}

.arch-layer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(10, 10, 10, 0.95));
    border: 2px solid var(--color-neutral);
    border-radius: 8px;
    padding: var(--spacing-md);
    overflow: visible;
    z-index: auto;
}

.arch-label {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-positive);
    margin-bottom: var(--spacing-sm);
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.arch-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-sm);
}

.arch-component {
    background: #000000;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid var(--color-neutral);
    text-align: center;
    font-size: 13px;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.08);
}

/* Neues Tooltip-Overlay System */
.arch-tooltip-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #000000;
    color: var(--text-primary);
    padding: 20px 24px;
    border-radius: 8px;
    border: 2px solid var(--color-positive);
    font-size: 14px;
    width: 320px;
    max-width: 90vw;
    white-space: normal;
    z-index: 99999999;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.6), 0 0 30px rgba(0, 212, 255, 0.4);
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
    font-family: var(--font-main);
}

.arch-tooltip-overlay.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.arch-component:hover {
    border-color: var(--color-positive);
    color: var(--color-positive);
    transform: scale(1.02) translateY(-1px);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2), 0 0 10px rgba(0, 212, 255, 0.15);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 0, 0, 1));
}

.arch-arrow {
    text-align: center;
    font-size: 32px;
    color: var(--color-neutral);
    margin: 10px 0;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Performance Grid */
.tech-performance {
    margin: var(--spacing-xl) 0;
}

/* ===== NEW PERFORMANCE STATS - HORIZONTAL NEON BARS ===== */
.perf-stats-modern {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.perf-stat-bar {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
}

.perf-stat-bar:hover {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(8px);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.2);
}

.stat-bar-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

.stat-bar-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.stat-bar-label {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-bar-value {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #00d4ff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-bar-track {
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 4px;
    position: relative;
    transition: width 1s ease;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
    animation: barPulse 2s infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===== NEW TECH DETAILS - ACCORDION ===== */
.tech-details-modern {
    margin-top: var(--spacing-2xl);
}

.tech-accordion {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.tech-accordion-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tech-accordion-item:hover {
    border-color: rgba(0, 255, 136, 0.5);
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.accordion-header:hover {
    background: rgba(0, 212, 255, 0.05);
}

.accordion-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.6));
}

.accordion-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
}

.accordion-toggle {
    font-size: 24px;
    color: var(--color-positive);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.tech-accordion-item.active .accordion-toggle {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 var(--spacing-lg);
    background: rgba(0, 0, 0, 0.3);
}

.tech-accordion-item.active .accordion-content {
    max-height: 400px;
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.accordion-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion-detail:last-child {
    border-bottom: none;
}

.detail-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.detail-value {
    font-size: 14px;
    color: var(--color-positive);
    font-weight: 600;
}

/* ===== ACCESS SECTION ===== */
.access-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #000000;
    border: 2px solid var(--border-accent);
    border-radius: 12px;
    padding: var(--spacing-xl);
}

.access-card h2 {
    font-size: 36px;
    letter-spacing: 6px;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.access-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.access-form {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.access-input {
    flex: 1;
    padding: 16px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    transition: var(--transition);
}

.access-input:focus {
    outline: none;
    border-color: var(--border-accent);
    box-shadow: var(--glow-accent);
}

.access-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
    background: #000000;
    backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) 0;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    text-align: center;
}

.footer-brand h3 {
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 12px;
    color: var(--color-positive);
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 11px;
    letter-spacing: 2px;
    color: #ffdd00 !important;
    margin: 6px 0;
    font-weight: bold;
    opacity: 0.9;
    text-shadow: 0 0 10px rgba(255, 221, 0, 0.5);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--color-positive);
    padding-left: 8px;
}

.footer-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.status-dot.active {
    background: var(--color-positive);
}

.last-update {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.disclaimer {
    font-style: normal;
    color: var(--color-positive) !important;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .live-feed {
        display: none;
    }

    .hero-title {
        font-size: 56px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .access-form {
        flex-direction: column;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.metric-card,
.algo-card,
.backtest-card,
.tech-card {
    animation: fadeIn 0.6s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-positive);
}

/* ===== TRADING ACTIVITY HEATMAP ===== */
.heatmap-card {
    background: #000000;
    border: 1px solid rgba(37, 37, 37, 0.5);
    border-radius: 8px;
    padding: var(--spacing-md);
    margin-top: var(--spacing-lg);
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.heatmap-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.03);
}

.heatmap-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.heatmap-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.heatmap-subtitle {
    font-size: 11px;
    color: var(--text-secondary);
}

.heatmap-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
    margin-bottom: var(--spacing-sm);
}

.heatmap-week {
    display: grid;
    grid-template-rows: repeat(7, 1fr);
    gap: 3px;
}

.heatmap-day {
    width: 100%;
    max-width: 20px;
    aspect-ratio: 1;
    border-radius: 2px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.heatmap-day:hover {
    transform: scale(1.15);
    z-index: 10;
    border-color: var(--color-positive);
}

.heatmap-day[data-level="0"] {
    background: rgba(255, 68, 68, 0.3);
    border: none;
}

.heatmap-day[data-level="1"] {
    background: rgba(0, 255, 136, 0.2);
}

.heatmap-day[data-level="2"] {
    background: rgba(0, 255, 136, 0.4);
}

.heatmap-day[data-level="3"] {
    background: rgba(0, 255, 136, 0.6);
}

.heatmap-day[data-level="4"] {
    background: rgba(0, 255, 136, 0.8);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: var(--spacing-md);
}

.legend-label {
    font-size: 11px;
    color: var(--text-secondary);
}

.legend-scale {
    display: flex;
    gap: 4px;
}

.legend-box {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    border: 1px solid var(--border-color);
}

.legend-box[data-level="0"] {
    background: rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
}

.legend-box[data-level="1"] {
    background: rgba(0, 255, 136, 0.2);
}

.legend-box[data-level="2"] {
    background: rgba(0, 255, 136, 0.4);
}

.legend-box[data-level="3"] {
    background: rgba(0, 255, 136, 0.6);
}

.legend-box[data-level="4"] {
    background: rgba(0, 255, 136, 0.8);
}

.heatmap-tooltip {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--color-positive);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-primary);
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* ===== AI INSIGHTS PANEL ===== */
.ai-insights-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin: var(--spacing-xl) 0;
}

.ai-insight-card {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 8px;
    padding: var(--spacing-md);
    transition: var(--transition);
}

.ai-insight-card:hover {
    border-color: var(--color-positive);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    transform: translateY(-2px);
}

.ai-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-md);
}

.ai-icon {
    font-size: 24px;
}

.ai-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.ai-explanation {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.explanation-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.explain-label {
    font-weight: 600;
    color: var(--color-positive);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.explain-text {
    color: var(--text-primary);
    font-size: 13px;
}

/* Pattern Recognition */
.ai-patterns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pattern-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    transition: var(--transition);
}

.pattern-badge:hover {
    transform: translateX(5px);
}

.pattern-bullish {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.pattern-bearish {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.pattern-neutral {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.pattern-name {
    font-weight: 600;
    color: var(--text-primary);
}

.pattern-confidence {
    font-weight: bold;
    color: var(--color-positive);
    font-size: 13px;
}

/* Prediction Confidence */
.ai-prediction {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.prediction-bar-container {
    width: 100%;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.prediction-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--color-positive), var(--color-neutral));
    border-radius: 12px;
    transition: width 0.5s ease;
    position: relative;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.prediction-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.prediction-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.prediction-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.prediction-value {
    color: var(--color-positive);
    font-weight: bold;
    font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* iPad & Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero {
        padding: 100px var(--spacing-md) var(--spacing-lg);
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .algo-flow {
        flex-direction: column;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: var(--spacing-md) 0;
    }

    .algo-cards-interactive {
        grid-template-columns: 1fr;
    }

    .tech-badges {
        grid-template-columns: repeat(2, 1fr);
    }

    .architecture-diagram {
        gap: var(--spacing-md);
    }

    .ai-insights-panel {
        grid-template-columns: 1fr;
    }

    .strategy-builder {
        grid-template-columns: 1fr;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }
}

/* iPhone & Mobile (< 768px) */
@media (max-width: 768px) {
    /* Typography */
    .hero-title {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 13px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 13px;
    }

    /* Navigation */
    .navbar {
        padding: var(--spacing-xs) 0;
        top: 28px;
    }

    .nav-container {
        padding: 0 var(--spacing-sm);
    }

    .nav-logo {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .nav-logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 18px;
    }

    .logo-tagline {
        font-size: 9px;
    }

    .nav-links {
        display: none;
    }

    /* Crypto Ticker */
    .crypto-ticker {
        height: 28px;
    }

    .ticker-item {
        padding: 0 15px;
        font-size: 9px;
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 140px var(--spacing-sm) var(--spacing-lg);
    }

    .hero-badge {
        font-size: 10px;
        padding: 6px 12px;
    }

    .hero-description {
        font-size: 13px;
        max-width: 100%;
        line-height: 1.5;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
        margin: var(--spacing-lg) 0;
    }

    .hero-stat {
        padding: var(--spacing-sm);
    }

    .stat-value {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-sm);
    }

    .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 14px;
    }

    /* Live Feed */
    .live-feed {
        width: 90%;
        right: 5%;
    }

    .toggle-feed-btn {
        top: 120px;
        right: var(--spacing-sm);
    }

    /* Metrics */
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Charts */
    .charts-container {
        grid-template-columns: 1fr;
    }

    .chart-card {
        padding: var(--spacing-sm);
    }

    .chart-title {
        font-size: 14px;
    }

    .chart-period {
        font-size: 11px;
    }

    /* Heatmap */
    .heatmap-card {
        padding: var(--spacing-sm);
        overflow-x: auto;
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .heatmap-title {
        font-size: 13px;
    }

    .heatmap-subtitle {
        font-size: 10px;
    }

    .heatmap-container {
        min-width: 320px;
        gap: 2px;
    }

    .heatmap-week {
        gap: 2px;
    }

    /* AI Insights */
    .ai-insights-panel {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .ai-card-header h3 {
        font-size: 13px;
    }

    .ai-icon {
        font-size: 20px;
    }

    /* Data Table */
    .table-card {
        padding: var(--spacing-sm);
    }

    .table-title {
        font-size: 14px;
    }

    .table-wrapper {
        overflow-x: auto;
    }

    .data-table {
        font-size: 10px;
    }

    .data-table th,
    .data-table td {
        padding: 6px 4px;
        white-space: nowrap;
    }

    /* Algorithm Section */
    .algo-flow {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-sm);
    }

    .flow-step {
        max-width: 100%;
        padding: var(--spacing-sm);
    }

    .flow-number {
        font-size: 14px;
    }

    .flow-icon {
        font-size: 28px;
    }

    .flow-step h4 {
        font-size: 14px;
    }

    .flow-step p {
        font-size: 11px;
    }

    .flow-arrow {
        display: none;
    }

    .algo-cards-interactive {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        overflow: visible;
    }

    .algo-card-flip {
        min-height: 420px;
        height: 420px;
        perspective: 1000px;
        margin: 0 auto var(--spacing-lg) auto;
        max-width: 100%;
        overflow: visible;
    }

    /* Enable flip on mobile with click */
    .algo-card-flip.flipped .algo-card-inner {
        transform: rotateY(180deg);
    }

    .algo-card-inner {
        transform-style: preserve-3d;
        position: relative;
        width: 100%;
        height: 100%;
    }

    .algo-card-front,
    .algo-card-back {
        backface-visibility: hidden;
        position: absolute;
        width: 100%;
        height: 100%;
    }

    .card-header h3 {
        font-size: 16px;
    }

    .card-stats {
        gap: var(--spacing-xs);
    }

    .stat-num {
        font-size: 18px;
    }

    .stat-txt {
        font-size: 10px;
    }

    /* Risk Dashboard */
    .risk-dashboard {
        padding: var(--spacing-md);
    }

    .subsection-title {
        font-size: 16px;
    }

    .risk-params {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .risk-param {
        padding: var(--spacing-sm);
    }

    .param-icon {
        font-size: 20px;
    }

    .param-label {
        font-size: 10px;
    }

    .param-value {
        font-size: 14px;
    }

    /* Technology Stack */
    .tech-badges {
        grid-template-columns: 1fr;
    }

    .architecture-diagram {
        gap: var(--spacing-sm);
    }

    .arch-components {
        grid-template-columns: 1fr;
    }

    /* Enable tooltips on mobile with tap */
    .arch-component {
        cursor: pointer;
    }

    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-details {
        grid-template-columns: 1fr;
    }

    /* Strategy Builder */
    .strategy-builder {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .param-group {
        margin-bottom: var(--spacing-md);
    }

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

    .builder-actions {
        flex-direction: column;
    }

    .builder-actions .btn {
        width: 100%;
    }

    .result-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .preset-buttons {
        margin-bottom: var(--spacing-md);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
        margin-top: var(--spacing-lg);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--spacing-xs);
    }

    .footer-status {
        align-items: center;
        text-align: center;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 26px;
    }

    .section-title {
        font-size: 20px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 22px;
    }

    .metric-value {
        font-size: 20px;
    }

    .chart-title {
        font-size: 13px;
    }

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

    .heatmap-container {
        min-width: 280px;
        gap: 1.5px;
    }

    .heatmap-week {
        gap: 1.5px;
    }

    .risk-params {
        grid-template-columns: 1fr;
    }

    .flow-step {
        padding: var(--spacing-xs);
    }

    .card-header h3 {
        font-size: 14px;
    }
}

/* ===== STRATEGY BUILDER ===== */
.strategy-builder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.builder-panel {
    background: #000000;
    border: 2px solid var(--color-positive);
    border-radius: 12px;
    padding: var(--spacing-lg);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
}

.builder-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.03), transparent);
    pointer-events: none;
}

/* Investment Amount Buttons */
.investment-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.investment-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-lg);
    background: #000000;
    border: 2px solid var(--color-neutral);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: var(--font-main);
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.15);
}

.investment-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-positive), var(--color-neutral));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.investment-btn:hover {
    border-color: var(--color-positive);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
}

.investment-btn:hover::before {
    opacity: 0.1;
}

.investment-btn.active {
    border-color: var(--color-positive);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.15), rgba(0, 0, 0, 1));
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.4), 0 0 20px rgba(0, 212, 255, 0.2);
}

.investment-btn.active::before {
    opacity: 0.15;
}

.investment-amount {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-positive);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.investment-label {
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.param-group {
    margin-bottom: var(--spacing-xl);
}

.param-group-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--color-neutral);
    margin-bottom: var(--spacing-md);
    letter-spacing: 1px;
}

.param-control {
    margin-bottom: var(--spacing-lg);
}

.param-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.param-header label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.param-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-positive);
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-primary);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-positive);
    cursor: pointer;
    box-shadow: var(--glow-positive);
    transition: var(--transition);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--color-positive);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--color-positive);
    cursor: pointer;
    border: none;
    box-shadow: var(--glow-positive);
    transition: var(--transition);
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px var(--color-positive);
}

.param-range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
}

.feature-checkbox {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm);
    background: #000000;
    border: 2px solid var(--color-neutral);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 212, 255, 0.1);
}

.feature-checkbox:hover {
    border-color: var(--color-positive);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 0, 0, 1));
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    transform: translateX(3px);
}

.feature-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-checkbox input[type="checkbox"]:checked ~ .checkmark {
    background: var(--color-positive);
    border-color: var(--color-positive);
}

.feature-checkbox input[type="checkbox"]:checked ~ .checkmark::after {
    content: '✓';
    color: var(--bg-primary);
    font-weight: bold;
    font-size: 12px;
}

.feature-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Builder Actions */
.builder-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.btn-icon {
    margin-right: 8px;
}

/* Builder Results */
.builder-results {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid var(--color-neutral);
    border-radius: 12px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    height: fit-content;
    min-height: 100%;
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.builder-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03), transparent);
    pointer-events: none;
}

.results-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-neutral);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* PREMIUM PERFORMANCE METRICS */
.performance-metrics-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Primary Metric (Equity) - Featured Display */
.metric-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(0, 0, 0, 0.9));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: var(--spacing-xl);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-primary:hover {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2);
    transform: translateY(-4px);
}

.metric-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.metric-primary-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.metric-primary-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.metric-primary-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.metric-primary-value {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-positive);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    animation: glow 2s ease-in-out infinite;
}

.metric-primary-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.metric-primary-sparkline {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    position: relative;
    z-index: 1;
}

.sparkline-bar {
    flex: 1;
    background: linear-gradient(to top, rgba(0, 255, 136, 0.8), rgba(0, 212, 255, 0.6));
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    animation: sparklineGrow 1.5s ease-out forwards;
    opacity: 0;
}

.sparkline-bar:nth-child(1) { animation-delay: 0.1s; }
.sparkline-bar:nth-child(2) { animation-delay: 0.2s; }
.sparkline-bar:nth-child(3) { animation-delay: 0.3s; }
.sparkline-bar:nth-child(4) { animation-delay: 0.4s; }
.sparkline-bar:nth-child(5) { animation-delay: 0.5s; }
.sparkline-bar:nth-child(6) { animation-delay: 0.6s; }

.sparkline-bar:hover {
    background: linear-gradient(to top, var(--color-positive), var(--color-neutral));
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
}

@keyframes sparklineGrow {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.7), 0 0 40px rgba(0, 212, 255, 0.4);
    }
}

/* Secondary Metrics Grid */
.metrics-secondary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.metric-secondary {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.metric-secondary:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(0, 212, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.15);
}

.metric-sec-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.metric-sec-icon {
    font-size: 20px;
}

.metric-sec-label {
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

.metric-sec-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.metric-sec-badge {
    display: inline-block;
    font-size: 10px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.metric-sec-badge.positive {
    color: var(--color-positive);
    background: rgba(0, 255, 136, 0.15);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.metric-sec-badge.negative {
    color: var(--color-negative);
    background: rgba(255, 68, 68, 0.15);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.metric-sec-badge.neutral {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* PREMIUM RISK INDICATOR */
.risk-indicator-premium {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.risk-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.risk-icon {
    font-size: 24px;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.6));
}

.risk-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.risk-gauge {
    margin-bottom: var(--spacing-lg);
}

.gauge-track {
    position: relative;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg,
        rgba(0, 255, 136, 0.2) 0%,
        rgba(255, 204, 0, 0.2) 50%,
        rgba(255, 68, 68, 0.2) 100%
    );
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
}

.gauge-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--color-positive), var(--color-neutral));
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.gauge-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--color-positive);
    border: 3px solid rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 136, 1), 0 0 40px rgba(0, 212, 255, 0.6);
    }
}

.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.risk-level-display {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(0, 255, 136, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.risk-level-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: var(--color-positive);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.risk-level-desc {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
}

/* PERFORMANCE TIMELINE */
.performance-timeline {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.timeline-icon {
    font-size: 24px;
}

.timeline-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.timeline-item {
    position: relative;
    padding: var(--spacing-md);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.timeline-item:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.timeline-item.active {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.timeline-period {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.timeline-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-positive);
    margin-bottom: 4px;
}

.timeline-roi {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.timeline-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--color-positive), var(--color-neutral));
    border-radius: 3px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Preset Buttons */
.preset-buttons {
    margin-bottom: var(--spacing-xl);
}

.preset-buttons h4 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.preset-btn {
    width: 100%;
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.preset-btn:hover {
    border-color: var(--color-positive);
    background: rgba(0, 255, 136, 0.1);
    transform: translateX(5px);
}

.preset-icon {
    font-size: 18px;
}

/* Contact CTA */
.contact-cta {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 212, 255, 0.1));
    border: 1px solid var(--color-positive);
    border-radius: 12px;
    padding: var(--spacing-lg);
    text-align: center;
}

.contact-cta h3 {
    font-size: 20px;
    color: var(--color-neutral);
    margin-bottom: var(--spacing-sm);
}

.contact-cta p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.contact-input {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
}

.contact-input:focus {
    outline: none;
    border-color: var(--color-positive);
    box-shadow: var(--glow-positive);
}

.contact-cta .btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 968px) {
    .strategy-builder {
        grid-template-columns: 1fr;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE FEATURES ===== */

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--color-neutral);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 1000;
    display: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .back-to-top {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== HOLOGRAPHIC TRADE TABLE ===== */
.holographic-table {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(0, 255, 136, 0.05));
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 30px rgba(0, 212, 255, 0.05);
    overflow: hidden;
}

.holographic-table::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 60%
    );
    animation: holo-shine 3s linear infinite;
}

@keyframes holo-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.holo-table {
    position: relative;
    z-index: 2;
}

.holo-table thead th {
    background: rgba(0, 212, 255, 0.15);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    border-bottom: 2px solid rgba(0, 212, 255, 0.5);
}

.holo-table tbody tr {
    background: rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.holo-table tbody tr:hover {
    background: rgba(0, 212, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.holo-table tbody tr:nth-child(even) {
    background: rgba(0, 255, 136, 0.03);
}

.holo-table tbody td {
    text-shadow: 0 0 5px rgba(0, 212, 255, 0.5);
}

.holo-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.8), transparent);
    animation: scanline 2s linear infinite;
    z-index: 10;
    pointer-events: none;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(500px); }
}

.table-title {
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.8);
    animation: holo-flicker 2s ease-in-out infinite;
}

@keyframes holo-flicker {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(0, 212, 255, 0.8); }
    50% { opacity: 0.95; text-shadow: 0 0 15px rgba(0, 212, 255, 1); }
}

/* ===== PREDICTION CONE SECTION ===== */
.prediction-cone-section {
    margin-top: 60px;
    padding: 40px 0;
}

.cone-legend {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

.legend-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.legend-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.best::before {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.legend-dot.base::before {
    background: #00d4ff;
    box-shadow: 0 0 10px #00d4ff;
}

.legend-dot.median::before {
    background: #ffaa00;
    box-shadow: 0 0 10px #ffaa00;
}

.legend-dot.worst::before {
    background: #ff4444;
    box-shadow: 0 0 10px #ff4444;
}

.prediction-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
}

.prediction-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.prediction-stat .stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prediction-stat .stat-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--color-neutral);
}

.prediction-stat .stat-value.positive {
    color: var(--color-positive);
}

.prediction-stat .stat-value.negative {
    color: var(--color-negative);
}

/* ===== DNA HELIX SECTION ===== */
.dna-section {
    margin-top: 60px;
    padding: 40px 0;
}

.dna-container {
    position: relative;
    margin-bottom: 40px;
}

.dna-visualization {
    height: 600px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05), transparent);
    border-radius: 12px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.dna-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.dna-btn {
    padding: 10px 24px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--color-neutral);
    border-radius: 6px;
    color: var(--color-neutral);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dna-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--color-neutral);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    transform: translateY(-2px);
}

.dna-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.dna-indicator-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dna-indicator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--indicator-color);
    box-shadow: 0 0 10px var(--indicator-color);
}

.dna-indicator-card:hover {
    border-color: var(--indicator-color);
    box-shadow: 0 0 20px var(--indicator-color-shadow);
    transform: translateY(-3px);
}

.dna-indicator-card.signal-buy {
    --indicator-color: #00ff88;
    --indicator-color-shadow: rgba(0, 255, 136, 0.3);
}

.dna-indicator-card.signal-sell {
    --indicator-color: #ff4444;
    --indicator-color-shadow: rgba(255, 68, 68, 0.3);
}

.dna-indicator-card.signal-neutral {
    --indicator-color: #ffaa00;
    --indicator-color-shadow: rgba(255, 170, 0, 0.3);
}

.dna-indicator-card.inactive {
    opacity: 0.5;
    --indicator-color: #555;
    --indicator-color-shadow: rgba(85, 85, 85, 0.2);
}

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

.indicator-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.indicator-signal {
    padding: 4px 12px;
    background: var(--indicator-color);
    color: #000;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.indicator-value {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--indicator-color);
    margin-bottom: 10px;
    text-shadow: 0 0 10px var(--indicator-color-shadow);
}

.indicator-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.strength-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
}

.strength-bar {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    background: var(--indicator-color);
    border-radius: 3px;
    transition: width 0.5s ease;
    box-shadow: 0 0 10px var(--indicator-color);
}

.dna-consensus {
    margin-top: 40px;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dna-consensus::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent);
    animation: consensus-pulse 3s ease-in-out infinite;
}

@keyframes consensus-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.consensus-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.consensus-value {
    font-size: 48px;
    font-weight: 900;
    font-family: var(--font-main);
    color: var(--color-neutral);
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.consensus-value.buy-signal {
    color: var(--color-positive);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.consensus-value.sell-signal {
    color: var(--color-negative);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
}

.consensus-confidence {
    font-size: 16px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    position: relative;
    z-index: 2;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dna-visualization {
        height: 400px;
    }

    .dna-indicators-grid {
        grid-template-columns: 1fr;
    }

    .consensus-value {
        font-size: 36px;
    }

    .prediction-stats {
        grid-template-columns: 1fr 1fr;
    }

    .cone-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Glitch effect for DNA consensus */
@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.consensus-value:hover {
    animation: glitch 0.3s ease-in-out infinite;
}

/* ===========================
   TECHNOLOGY STACK GRID
   =========================== */

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-stack-card {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.95), rgba(30, 30, 45, 0.85));
    border-radius: 20px;
    padding: 30px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.tech-stack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.05) 0%,
        transparent 50%,
        rgba(0, 255, 136, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.tech-stack-card:hover::before {
    opacity: 1;
}

.tech-stack-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 60px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.2),
        inset 0 0 30px rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.6);
}

/* Card glow effect */
.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(0, 212, 255, 0.15) 0%,
        transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

.tech-stack-card:hover .card-glow {
    opacity: 1;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Card content */
.card-content {
    position: relative;
    z-index: 2;
}

.tech-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: inline-block;
    transition: transform 0.4s ease;
}

.tech-stack-card:hover .tech-icon {
    transform: scale(1.2) rotate(10deg);
}

.tech-stack-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
}

.tech-stack-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 400;
}

/* Tech stats badges */
.tech-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.stat-badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.tech-stack-card:hover .stat-badge {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* Category-specific colors */
.tech-stack-card.tech-core {
    border-color: rgba(255, 107, 107, 0.3);
}

.tech-stack-card.tech-core:hover {
    border-color: rgba(255, 107, 107, 0.8);
    box-shadow:
        0 20px 60px rgba(255, 107, 107, 0.3),
        0 0 40px rgba(255, 107, 107, 0.2);
}

.tech-stack-card.tech-core .stat-badge {
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.3);
    color: #ff6b6b;
}

.tech-stack-card.tech-core:hover .stat-badge {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.6);
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.3);
}

.tech-stack-card.tech-data {
    border-color: rgba(168, 85, 247, 0.3);
}

.tech-stack-card.tech-data:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow:
        0 20px 60px rgba(168, 85, 247, 0.3),
        0 0 40px rgba(168, 85, 247, 0.2);
}

.tech-stack-card.tech-data .stat-badge {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.tech-stack-card.tech-data:hover .stat-badge {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.tech-stack-card.tech-cloud {
    border-color: rgba(251, 191, 36, 0.3);
}

.tech-stack-card.tech-cloud:hover {
    border-color: rgba(251, 191, 36, 0.8);
    box-shadow:
        0 20px 60px rgba(251, 191, 36, 0.3),
        0 0 40px rgba(251, 191, 36, 0.2);
}

.tech-stack-card.tech-cloud .stat-badge {
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    color: #fbbf24;
}

.tech-stack-card.tech-cloud:hover .stat-badge {
    background: rgba(251, 191, 36, 0.2);
    border-color: rgba(251, 191, 36, 0.6);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
}

.tech-stack-card.tech-tools {
    border-color: rgba(34, 211, 238, 0.3);
}

.tech-stack-card.tech-tools:hover {
    border-color: rgba(34, 211, 238, 0.8);
    box-shadow:
        0 20px 60px rgba(34, 211, 238, 0.3),
        0 0 40px rgba(34, 211, 238, 0.2);
}

.tech-stack-card.tech-tools .stat-badge {
    background: rgba(34, 211, 238, 0.1);
    border-color: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.tech-stack-card.tech-tools:hover .stat-badge {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

/* Responsive design */
@media (max-width: 1024px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .tech-stack-card {
        padding: 25px;
    }

    .tech-icon {
        font-size: 40px;
    }

    .tech-stack-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-stack-card {
        padding: 20px;
    }

    .tech-icon {
        font-size: 36px;
    }

    .tech-stack-card h3 {
        font-size: 18px;
    }
}

/* ===========================
   SYSTEM ARCHITECTURE - MODERN DESIGN
   =========================== */

.tech-architecture {
    margin-top: 60px;
}

.architecture-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 40px;
}

.arch-layer-modern {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.98), rgba(30, 30, 45, 0.95));
    border-radius: 24px;
    padding: 35px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s ease;
}

.arch-layer-modern:hover {
    transform: translateX(10px);
    box-shadow:
        -10px 0 30px rgba(0, 212, 255, 0.2),
        0 10px 50px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.5);
}

/* Layer-specific colors */
.arch-layer-modern.arch-data {
    border-left: 4px solid #00d4ff;
}

.arch-layer-modern.arch-data:hover {
    box-shadow:
        -10px 0 30px rgba(0, 212, 255, 0.3),
        0 10px 50px rgba(0, 212, 255, 0.2);
}

.arch-layer-modern.arch-dl {
    border-left: 4px solid #a855f7;
}

.arch-layer-modern.arch-dl:hover {
    box-shadow:
        -10px 0 30px rgba(168, 85, 247, 0.3),
        0 10px 50px rgba(168, 85, 247, 0.2);
}

.arch-layer-modern.arch-rl {
    border-left: 4px solid #00ff88;
}

.arch-layer-modern.arch-rl:hover {
    box-shadow:
        -10px 0 30px rgba(0, 255, 136, 0.3),
        0 10px 50px rgba(0, 255, 136, 0.2);
}

.arch-layer-modern.arch-exec {
    border-left: 4px solid #fbbf24;
}

.arch-layer-modern.arch-exec:hover {
    box-shadow:
        -10px 0 30px rgba(251, 191, 36, 0.3),
        0 10px 50px rgba(251, 191, 36, 0.2);
}

/* Layer Header */
.layer-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.layer-icon {
    font-size: 36px;
    transition: transform 0.3s ease;
}

.arch-layer-modern:hover .layer-icon {
    transform: scale(1.2) rotate(5deg);
}

.layer-header h4 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    margin: 0;
    letter-spacing: 1px;
}

/* Layer Components */
.layer-components {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.component-modern {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.component-modern:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.component-icon {
    font-size: 32px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.component-modern:hover .component-icon {
    transform: scale(1.15);
}

.component-content {
    flex: 1;
}

.component-content h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 5px 0;
    font-family: var(--font-mono);
}

.component-content p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* Flow Connector */
.flow-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.connector-line {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom,
        rgba(0, 212, 255, 0.5),
        rgba(0, 212, 255, 0.8),
        rgba(0, 212, 255, 0.5)
    );
    position: relative;
    animation: pulse-line 2s ease-in-out infinite;
}

@keyframes pulse-line {
    0%, 100% {
        opacity: 0.5;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.1);
    }
}

.connector-arrow {
    font-size: 32px;
    color: #00d4ff;
    margin-top: -5px;
    animation: bounce-arrow 2s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.8);
}

@keyframes bounce-arrow {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .layer-components {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .component-modern {
        padding: 15px;
    }

    .layer-header h4 {
        font-size: 20px;
    }

    .layer-icon {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .arch-layer-modern {
        padding: 25px 20px;
    }

    .layer-components {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .component-modern {
        padding: 15px;
    }

    .component-icon {
        font-size: 28px;
    }

    .component-content h5 {
        font-size: 14px;
    }

    .component-content p {
        font-size: 12px;
    }

    .arch-layer-modern:hover {
        transform: none;
    }

    .connector-line {
        height: 20px;
    }

    .connector-arrow {
        font-size: 24px;
    }
}

/* ===== REAL-TIME TRADING SIMULATOR ===== */
.simulator-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Left Panel */
.simulator-panel {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 40, 0.95));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(0, 212, 255, 0.2);
    height: fit-content;
}

.simulator-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-badge-sim {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 212, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #00d4ff;
}

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

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.sim-time {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    font-family: 'Courier New', monospace;
}

/* Balance Card */
.sim-balance-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 255, 136, 0.1));
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.balance-icon {
    font-size: 18px;
}

.balance-amount {
    font-size: 32px;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 8px;
}

.balance-pnl {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.pnl-label {
    color: rgba(255, 255, 255, 0.6);
}

.pnl-value {
    font-weight: 600;
    color: #00ff88;
}

.pnl-value.negative {
    color: #ff4444;
}

.pnl-pct {
    color: rgba(255, 255, 255, 0.5);
}

/* Price Card */
.sim-price-card {
    background: rgba(30, 30, 45, 0.6);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-symbol {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.price-change {
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.price-change span:first-child {
    color: #00ff88;
    font-weight: 600;
}

.price-change span:first-child.negative {
    color: #ff4444;
}

.price-24h {
    color: rgba(255, 255, 255, 0.4);
}

/* Trading Controls */
.sim-controls h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 20px;
}

.trade-input-group {
    margin-bottom: 18px;
}

.trade-input-group label {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

.trade-input,
.trade-select {
    width: 100%;
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.trade-input:focus,
.trade-select:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.trade-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}

.trade-btn {
    padding: 15px 20px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.buy-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.4);
}

.sell-btn {
    background: linear-gradient(135deg, #ff4444, #ff6b6b);
    color: #fff;
}

.sell-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
}

.btn-arrow {
    font-size: 18px;
}

/* AI Signal Box */
.ai-signal-box {
    background: rgba(138, 43, 226, 0.1);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.signal-icon {
    font-size: 24px;
}

.signal-content {
    flex: 1;
}

.signal-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.signal-value {
    font-size: 18px;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 4px;
}

.signal-confidence {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Simulator Action Controls */
.sim-action-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 25px 0;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sim-control-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.start-btn {
    background: linear-gradient(135deg, #00ff88, #00d4ff);
    color: #000;
}

.start-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.3);
}

.pause-btn {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.reset-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Quick Stats */
.sim-quick-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.quick-stat .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.quick-stat .stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #00d4ff;
}

/* Right Panel */
.simulator-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Chart Card */
.sim-chart-card {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 40, 0.95));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.chart-header-sim {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.chart-timeframe {
    display: flex;
    gap: 8px;
}

.tf-btn {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tf-btn.active {
    background: #00d4ff;
    color: #000;
    border-color: #00d4ff;
}

.tf-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
}

.chart-wrapper-sim {
    height: 300px;
    position: relative;
}

/* Positions Card */
.sim-positions-card {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 40, 0.95));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.positions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.close-all-btn {
    padding: 8px 16px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid #ff4444;
    border-radius: 8px;
    color: #ff4444;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-all-btn:hover {
    background: rgba(255, 68, 68, 0.3);
}

.positions-list {
    min-height: 150px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.empty-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* History Card */
.sim-history-card {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 40, 0.95));
    border-radius: 20px;
    padding: 25px;
    border: 2px solid rgba(0, 212, 255, 0.2);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.history-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
}

/* Responsive */
@media (max-width: 1200px) {
    .simulator-container {
        grid-template-columns: 1fr;
    }
}

/* ===== NEURAL NETWORK VISUALIZATION ===== */
.neural-viz-container {
    margin-top: 40px;
}

/* 3D Canvas Wrapper */
.neural-canvas-wrapper {
    position: relative;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    height: 600px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow:
        0 0 40px rgba(138, 43, 226, 0.2),
        inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Overlay Title */
.neural-overlay-title {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.neural-title-text {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-shadow:
        0 0 20px rgba(138, 43, 226, 0.8),
        0 0 40px rgba(138, 43, 226, 0.5);
    letter-spacing: 4px;
}

.neural-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* 3D Canvas */
.neural-3d-canvas {
    width: 100%;
    height: 100%;
    position: relative;
}

/* FILM EFFECTS - KRASS WIE IM FILM! */
.neural-film-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Film Grain */
.film-grain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
    opacity: 0.15;
    animation: grain 8s steps(10) infinite;
}

@keyframes grain {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Scanlines */
.film-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.3) 50%
    );
    background-size: 100% 4px;
    animation: scanlines 8s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 100%; }
}

/* Vignette */
.film-vignette {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        ellipse at center,
        transparent 0%,
        transparent 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

/* Neural Stats Panel */
.neural-stats-panel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.neural-stat-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    transition: all 0.3s ease;
}

.neural-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.6);
}

.stat-icon-neural {
    font-size: 32px;
}

.stat-content-neural {
    flex: 1;
}

.stat-label-neural {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 6px;
}

.stat-value-neural {
    font-size: 24px;
    font-weight: 700;
    color: #a855f7;
}

/* Neural Layers Info */
.neural-layers-info {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.layer-info-card {
    background: rgba(30, 30, 45, 0.8);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    padding: 18px;
    transition: all 0.3s ease;
}

.layer-info-card:hover {
    transform: translateY(-3px);
    border-color: rgba(138, 43, 226, 0.5);
    box-shadow: 0 8px 20px rgba(138, 43, 226, 0.2);
}

.layer-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.layer-icon {
    font-size: 20px;
}

.layer-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.layer-neurons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.neuron-count {
    font-size: 28px;
    font-weight: 700;
    color: #a855f7;
}

.neuron-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Layer Activity Bar */
.layer-activity {
    margin-top: 12px;
}

.activity-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.activity-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #00ff88);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.activity-fill.lstm-active {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.activity-fill.attention-active {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.activity-fill.output-active {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
}

/* Neural Controls */
.neural-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.neural-btn {
    padding: 12px 24px;
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(138, 43, 226, 0.5);
    border-radius: 10px;
    color: #a855f7;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.neural-btn:hover {
    background: rgba(138, 43, 226, 0.3);
    border-color: rgba(138, 43, 226, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.3);
}

.neural-btn .btn-icon {
    font-size: 16px;
}

/* Prediction Output */
.neural-prediction-output {
    background: linear-gradient(135deg, rgba(15, 15, 25, 0.98), rgba(25, 25, 40, 0.95));
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
}

.prediction-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.prediction-icon {
    font-size: 28px;
}

.prediction-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

/* Prediction Actions */
.prediction-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.prediction-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

.action-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    min-width: 100px;
}

.action-bar-container {
    flex: 1;
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-bar {
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 15px;
}

.buy-bar {
    background: linear-gradient(90deg, #00ff88, #00d4ff);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hold-bar {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.sell-bar {
    background: linear-gradient(90deg, #ff4444, #ff6b6b);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.action-value {
    font-size: 18px;
    font-weight: 700;
    min-width: 60px;
    text-align: right;
}

.buy-action .action-value {
    color: #00ff88;
}

.hold-action .action-value {
    color: #fbbf24;
}

.sell-action .action-value {
    color: #ff4444;
}

/* Prediction Confidence */
.prediction-confidence {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.confidence-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.confidence-value {
    font-size: 18px;
    font-weight: 700;
    color: #a855f7;
}

/* Responsive */
@media (max-width: 1200px) {
    .neural-stats-panel {
        grid-template-columns: repeat(2, 1fr);
    }

    .neural-layers-info {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .neural-stats-panel {
        grid-template-columns: 1fr;
    }

    .neural-layers-info {
        grid-template-columns: 1fr;
    }

    .neural-canvas-wrapper {
        height: 400px;
    }

    .neural-title-text {
        font-size: 24px;
    }
}

/* Mobile: Stack Neural Network buttons vertically */
@media (max-width: 768px) {
    .neural-controls {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 20px !important;
    }

    .neural-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Mobile: Center Neural Network canvas and title */
@media (max-width: 768px) {
    .neural-canvas-wrapper {
        height: 500px !important;
        margin: 0 auto;
    }

    .neural-overlay-title {
        left: 50% !important;
        transform: translateX(-50%);
        text-align: center;
        top: 20px !important;
    }

    .neural-title-text {
        font-size: 20px !important;
        letter-spacing: 2px !important;
    }

    .neural-subtitle {
        font-size: 11px !important;
    }

    .neural-3d-canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .neural-3d-canvas canvas {
        max-width: 100% !important;
        height: auto !important;
    }

    /* Premium Performance Metrics Mobile */
    .metrics-secondary-grid {
        grid-template-columns: 1fr;
    }

    .metric-primary-value {
        font-size: 32px;
        text-align: center;
        word-break: break-word;
    }

    .metric-primary {
        text-align: center;
    }

    .metric-primary-sparkline {
        height: 40px;
    }

    .metric-sec-value {
        font-size: 24px;
    }

    .gauge-marker {
        width: 16px;
        height: 16px;
    }

    .risk-indicator-premium {
        padding: var(--spacing-lg);
    }

    /* New sections mobile */
    .extended-metrics-grid {
        grid-template-columns: 1fr;
    }

    .timeline-value {
        font-size: 14px;
        word-break: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }

    .timeline-roi {
        font-size: 9px;
    }

    .timeline-item {
        padding: var(--spacing-sm);
    }

    .breakdown-value.total {
        font-size: 20px;
    }

    .score-ring {
        width: 120px;
        height: 120px;
    }

    .score-value {
        font-size: 30px;
    }

    /* 3D Chart Info Banner Mobile */
    .chart-info-banner {
        padding: 12px;
        gap: 8px;
    }

    .info-item {
        min-width: calc(50% - 8px);
        flex: 0 0 calc(50% - 8px);
    }

    .info-label {
        font-size: 9px;
    }

    .info-value {
        font-size: 14px;
    }
}

/* ===== DOCUMENTATION PAGE STYLES ===== */

.doc-toc {
    background: rgba(0, 255, 136, 0.03);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 40px;
}

.doc-toc h3 {
    color: #00ff88;
    margin-bottom: 16px;
    font-size: 18px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.doc-toc ul {
    list-style: none;
}

.doc-toc li {
    margin: 8px 0;
}

.doc-toc a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    padding: 4px 0;
}

.doc-toc a:hover {
    color: #00ff88;
}

.doc-section {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.doc-title {
    color: #00ff88;
    font-size: 28px;
    margin-bottom: 24px;
    border-bottom: 2px solid rgba(0, 255, 136, 0.5);
    padding-bottom: 12px;
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.doc-content h3 {
    color: #00ff88;
    font-size: 20px;
    margin: 24px 0 12px 0;
}

.doc-content p {
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 16px;
}

.doc-list {
    list-style: none;
    margin: 16px 0;
}

.doc-list li {
    padding: 8px 0 8px 24px;
    position: relative;
    color: #cccccc;
    line-height: 1.6;
}

.doc-list li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #00ff88;
}

.doc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.doc-stat {
    background: rgba(0, 255, 136, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.doc-stat-value {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.doc-stat-label {
    display: block;
    font-size: 12px;
    color: #888888;
    text-transform: uppercase;
    margin-top: 8px;
}

.doc-architecture-diagram {
    margin: 24px 0;
}

.arch-component {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 12px;
    padding: 24px;
    margin: 16px 0;
}

.arch-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.arch-icon {
    font-size: 32px;
}

.arch-header h4 {
    color: #00ff88;
    font-size: 20px;
}

.arch-arrow {
    text-align: center;
    font-size: 32px;
    color: #00ff88;
    margin: 16px 0;
}

.doc-highlight {
    background: rgba(0, 255, 136, 0.08);
    border-left: 4px solid #00ff88;
    padding: 16px 20px;
    margin: 16px 0;
    border-radius: 8px;
}

.doc-highlight p {
    margin-bottom: 8px;
}

.doc-highlight ul {
    list-style: none;
    margin: 8px 0;
}

.doc-highlight li {
    padding: 4px 0;
    color: #cccccc;
}

.code-block {
    background: linear-gradient(145deg, #1a1a2e, #16213e);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
    overflow-x: auto;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.1);
}

.code-block pre {
    margin: 0;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    line-height: 1.6;
}

.doc-table {
    margin: 16px 0;
    overflow-x: auto;
}

.doc-table table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.3);
}

.doc-table th {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid rgba(0, 255, 136, 0.4);
    font-size: 14px;
}

.doc-table td {
    padding: 12px 16px;
    color: #cccccc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-table tr:hover {
    background: rgba(0, 255, 136, 0.05);
}

.doc-table strong {
    color: #00ff88;
}

.doc-phase-section {
    margin: 24px 0;
}

.doc-phase-section h4 {
    color: #00ff88;
    font-size: 20px;
    margin-bottom: 16px;
}

.doc-phase-details {
    margin-left: 16px;
}

.phase-sub {
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #00ff88;
    padding: 16px;
    margin: 12px 0;
    border-radius: 4px;
}

.phase-sub strong {
    color: #00ff88;
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
}

.phase-sub ul {
    list-style: none;
    margin-top: 8px;
}

.phase-sub li {
    padding: 4px 0 4px 20px;
    position: relative;
    color: #cccccc;
    font-size: 14px;
}

.phase-sub li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00d4ff;
}

.doc-indicators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.indicator-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    padding: 20px;
}

.indicator-card h4 {
    color: #00ff88;
    font-size: 16px;
    margin-bottom: 12px;
}

.indicator-card ul {
    list-style: none;
}

.indicator-card li {
    padding: 6px 0;
    color: #cccccc;
    font-size: 14px;
}

.doc-footer-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.doc-footer-nav .btn {
    flex: 1;
    text-align: center;
}

/* Documentation Mobile Responsive */
@media (max-width: 768px) {
    /* ===== Container & Sections ===== */
    .doc-section {
        padding: 16px;
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .doc-title {
        font-size: 18px;
        margin-bottom: 16px;
        padding-bottom: 8px;
        word-break: break-word;
    }

    .doc-content h3 {
        font-size: 16px;
        margin: 16px 0 10px 0;
    }

    .doc-content p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 12px;
    }

    /* ===== TOC (Inhaltsverzeichnis) ===== */
    .doc-toc {
        padding: 16px;
        margin-bottom: 24px;
    }

    .doc-toc h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .doc-toc li {
        margin: 6px 0;
    }

    .doc-toc a {
        font-size: 13px;
        padding: 6px 0;
    }

    /* ===== Stats Grid ===== */
    .doc-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 16px 0;
    }

    .doc-stat {
        padding: 12px 8px;
    }

    .doc-stat-value {
        font-size: 20px;
    }

    .doc-stat-label {
        font-size: 10px;
        margin-top: 4px;
    }

    /* ===== Architecture Diagram ===== */
    .arch-component {
        padding: 16px;
        margin: 12px 0;
    }

    .arch-header {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .arch-icon {
        font-size: 28px;
    }

    .arch-header h4 {
        font-size: 16px;
    }

    .arch-arrow {
        font-size: 24px;
        margin: 10px 0;
    }

    /* ===== Code Blocks ===== */
    .code-block {
        padding: 12px;
        margin: 12px 0;
        border-radius: 6px;
    }

    .code-block pre {
        font-size: 10px;
        line-height: 1.5;
        white-space: pre-wrap;
        word-break: break-word;
    }

    /* ===== Tables ===== */
    .doc-table {
        font-size: 11px;
        margin: 12px 0;
    }

    .doc-table table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .doc-table th,
    .doc-table td {
        padding: 8px 10px;
        white-space: nowrap;
        min-width: 80px;
    }

    .doc-table th {
        font-size: 11px;
    }

    /* ===== Lists ===== */
    .doc-list li {
        padding: 6px 0 6px 20px;
        font-size: 13px;
        line-height: 1.5;
    }

    /* ===== Indicators Grid ===== */
    .doc-indicators-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .indicator-card {
        padding: 14px;
    }

    .indicator-card h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .indicator-card li {
        padding: 4px 0;
        font-size: 12px;
    }

    /* ===== Phase Details ===== */
    .doc-phase-section {
        margin: 16px 0;
    }

    .doc-phase-section h4 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .doc-phase-details {
        margin-left: 0;
    }

    .phase-sub {
        padding: 12px;
        margin: 10px 0;
    }

    .phase-sub strong {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .phase-sub li {
        padding: 3px 0 3px 16px;
        font-size: 12px;
    }

    /* ===== Highlight Boxes ===== */
    .doc-highlight {
        padding: 12px 14px;
        margin: 12px 0;
    }

    .doc-highlight p {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .doc-highlight li {
        padding: 3px 0;
        font-size: 13px;
    }

    /* ===== Footer Navigation ===== */
    .doc-footer-nav {
        flex-direction: column;
        gap: 12px;
        margin-top: 24px;
    }

    /* ===== Hero Section in Documentation ===== */
    .doc-container .hero {
        min-height: auto !important;
        padding: 0 !important;
        margin-bottom: 20px !important;
    }

    .doc-container .hero-badge {
        margin-bottom: 16px !important;
        font-size: 11px;
        padding: 6px 12px;
    }

    .doc-container .hero-title {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }

    .doc-container .hero-subtitle {
        font-size: 12px;
    }

    .doc-container .hero-description {
        font-size: 13px;
        line-height: 1.5;
    }
}

/* Extra small devices (< 480px) */
@media (max-width: 480px) {
    .doc-section {
        padding: 12px;
    }

    .doc-title {
        font-size: 16px;
    }

    .doc-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .doc-stat-value {
        font-size: 18px;
    }

    .code-block pre {
        font-size: 9px;
    }

    .doc-table th,
    .doc-table td {
        padding: 6px 8px;
        font-size: 10px;
    }

    .doc-toc a {
        font-size: 12px;
    }

    .arch-header h4 {
        font-size: 14px;
    }
}

/* ===== NEURAL TRADING COMMAND CENTER ===== */

/* Command Center Grid - Hexagons */
.command-center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.command-hexagon {
    position: relative;
    background: linear-gradient(145deg, #0a0a0a, #151515);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 16px;
    padding: 40px 30px;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.command-hexagon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg,
        rgba(0, 212, 255, 0.2),
        rgba(0, 255, 136, 0.2),
        rgba(0, 212, 255, 0.2)
    );
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.command-hexagon:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.command-hexagon:hover::before {
    opacity: 1;
}

.hex-content {
    text-align: center;
    z-index: 2;
}

.hex-icon {
    font-size: 48px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.hex-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-neutral);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.hex-status {
    font-size: 14px;
    color: var(--color-positive);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hex-metric {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Rotating Ring Animation */
.hex-rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140px;
    height: 140px;
    border: 3px solid transparent;
    border-top-color: rgba(0, 212, 255, 0.6);
    border-right-color: rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: rotate-ring 3s linear infinite;
    z-index: 1;
}

@keyframes rotate-ring {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Radar Scanner Animation */
.radar-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 136, 0.8)
    );
    transform-origin: left center;
    transform: translate(0, -50%);
    animation: radar-sweep 2s linear infinite;
}

@keyframes radar-sweep {
    from { transform: translate(0, -50%) rotate(0deg); }
    to { transform: translate(0, -50%) rotate(360deg); }
}

.radar-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-positive);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-positive);
    animation: radar-pulse 2s ease-in-out infinite;
}

.radar-dot-1 {
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.radar-dot-2 {
    top: 60%;
    left: 70%;
    animation-delay: 0.7s;
}

.radar-dot-3 {
    top: 40%;
    left: 80%;
    animation-delay: 1.4s;
}

@keyframes radar-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.5); }
}

/* Neural Pulse Animation */
.neural-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(138, 43, 226, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: neural-pulse-anim 2s ease-out infinite;
    z-index: 1;
}

.neural-pulse::before,
.neural-pulse::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(138, 43, 226, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.neural-pulse::before {
    animation: neural-pulse-anim 2s ease-out infinite 0.5s;
}

.neural-pulse::after {
    animation: neural-pulse-anim 2s ease-out infinite 1s;
}

@keyframes neural-pulse-anim {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Trade Pulse Animation */
.trade-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: trade-pulse-anim 1.5s ease-in-out infinite;
    z-index: 1;
}

@keyframes trade-pulse-anim {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.3;
    }
}

/* Matrix Code Stream Panels */
.command-matrix-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.matrix-panel {
    background: linear-gradient(145deg, #0a0a0a, #0f0f0f);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    padding: 20px;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.matrix-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 255, 136, 0.5),
        transparent
    );
    animation: matrix-scan 3s linear infinite;
}

@keyframes matrix-scan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.matrix-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.matrix-icon {
    font-size: 20px;
}

.matrix-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-positive);
    letter-spacing: 1.5px;
}

.matrix-code-stream {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(0, 255, 136, 0.6);
    min-height: 140px;
    overflow: hidden;
    position: relative;
}

.matrix-code-stream::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #0a0a0a);
    pointer-events: none;
}

/* Holographic Data Displays */
.holographic-displays {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.holo-display {
    position: relative;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.05),
        rgba(138, 43, 226, 0.05)
    );
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 30px 25px;
    min-height: 220px;
    overflow: hidden;
    transition: all 0.3s;
}

.holo-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        transparent 30%,
        rgba(0, 212, 255, 0.1) 50%,
        transparent 70%
    );
    background-size: 200% 200%;
    animation: holo-shimmer 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.holo-display:hover::before {
    opacity: 1;
}

@keyframes holo-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.holo-border {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: linear-gradient(45deg,
        rgba(0, 212, 255, 0.4),
        rgba(138, 43, 226, 0.4)
    ) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box,
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) padding-box,
          linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.holo-display:hover .holo-border {
    opacity: 1;
}

.holo-content {
    position: relative;
    z-index: 2;
}

.holo-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-neutral);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.holo-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.holo-stat:last-child {
    border-bottom: none;
}

.holo-label {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.holo-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.holo-value-positive {
    color: var(--color-positive);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Command Center CTA */
.command-center-cta {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg,
        rgba(0, 212, 255, 0.08),
        rgba(138, 43, 226, 0.08)
    );
    border: 2px solid rgba(0, 212, 255, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.command-center-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
        rgba(0, 212, 255, 0.1) 0%,
        transparent 70%
    );
    animation: cta-glow 4s ease-in-out infinite;
}

@keyframes cta-glow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--color-neutral);
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.command-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.command-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* Responsive Design for Command Center */
@media (max-width: 768px) {
    .command-center-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .command-hexagon {
        min-height: 180px;
        padding: 30px 20px;
    }

    .hex-icon {
        font-size: 36px;
    }

    .hex-content h3 {
        font-size: 16px;
    }

    .command-matrix-panels {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .holographic-displays {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-title {
        font-size: 22px;
    }

    .cta-description {
        font-size: 14px;
    }

    .command-cta-btn {
        padding: 14px 30px;
        font-size: 14px;
    }
}

/* ===== AI BRAIN VISUALIZATION ===== */
.ai-brain-container { margin: 60px 0; }
.brain-canvas-wrapper {
    position: relative;
    background:
        /* Circuit board pattern */
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 43, 226, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(138, 43, 226, 0.02) 1px, transparent 1px),
        /* Base gradient */
        linear-gradient(145deg, #0a0a0a, #151515);
    background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px, 100% 100%;
    background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px, 0 0;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    height: 600px;
    margin-bottom: 50px;
    overflow: hidden;
}

/* Circuit Board Lines Animation */
.brain-canvas-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.1) 50%, transparent 100%);
    animation: circuit-glow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes circuit-glow {
    0%, 100% { opacity: 0.3; transform: translateX(-100%); }
    50% { opacity: 0.6; transform: translateX(100%); }
}

/* Particle Canvas Layer */
.brain-canvas-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05), transparent 70%);
    pointer-events: none;
    z-index: 2;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Particle Layer Canvas */
.brain-particles-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.brain-overlay-title { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); z-index: 10; text-align: center; }
.brain-title-text { display: block; font-size: 32px; font-weight: 800; color: var(--color-neutral); letter-spacing: 3px; text-shadow: 0 0 20px rgba(0, 212, 255, 0.5); }
.brain-subtitle { display: block; font-size: 14px; color: var(--text-secondary); margin-top: 5px; }
.brain-3d-canvas { position: relative; width: 100%; height: 100%; z-index: 5; }
.brain-controls { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 15px; z-index: 10; }
.brain-btn { padding: 10px 20px; background: rgba(0, 212, 255, 0.1); border: 1px solid rgba(0, 212, 255, 0.3); border-radius: 8px; color: var(--text-primary); font-size: 13px; cursor: pointer; transition: all 0.3s; }
.brain-btn:hover { background: rgba(0, 212, 255, 0.2); border-color: rgba(0, 212, 255, 0.6); transform: translateY(-2px); }

/* Brain Regions Grid */
.brain-regions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-bottom: 50px; }
.brain-region { position: relative; background: linear-gradient(145deg, #0a0a0a, #0f0f0f); border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 12px; padding: 25px; min-height: 220px; overflow: hidden; transition: all 0.4s; }
.brain-region::before { content: ''; position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px; background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(138, 43, 226, 0.2)); border-radius: 12px; opacity: 0; transition: opacity 0.4s; z-index: -1; }
.brain-region:hover { transform: translateY(-5px); border-color: rgba(0, 212, 255, 0.5); }
.brain-region:hover::before { opacity: 1; }
.region-glow { position: absolute; top: 50%; left: 50%; width: 150px; height: 150px; background: radial-gradient(circle, rgba(0, 212, 255, 0.2), transparent); border-radius: 50%; transform: translate(-50%, -50%); opacity: 0.5; animation: region-glow-pulse 3s ease-in-out infinite; }
@keyframes region-glow-pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; } 50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; } }
.region-pulse { position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; border: 2px solid rgba(0, 255, 136, 0.3); border-radius: 50%; transform: translate(-50%, -50%); animation: region-pulse-anim 2s ease-out infinite; }
@keyframes region-pulse-anim { 0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(2); opacity: 0; } }
.region-content { position: relative; z-index: 2; }
.region-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.region-icon { font-size: 24px; filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
.region-header h3 { font-size: 16px; font-weight: 700; color: var(--color-neutral); letter-spacing: 1.5px; margin: 0; }
.region-status { margin-left: auto; padding: 4px 12px; background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.3); border-radius: 12px; font-size: 11px; color: var(--color-positive); font-weight: 600; }
.region-stats { margin: 15px 0; }
.region-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.region-stat:last-child { border-bottom: none; }
.stat-label { font-size: 12px; color: var(--text-secondary); }
.stat-value { font-size: 13px; font-weight: 700; color: var(--color-neutral); }
.region-function { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 12px; color: var(--text-secondary); font-style: italic; }
.region-explanation { margin-top: 12px; padding: 12px; background: rgba(0, 212, 255, 0.05); border-left: 3px solid rgba(0, 212, 255, 0.4); border-radius: 4px; font-size: 11px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }

/* Brain Intro Description */
.brain-intro-description { margin-bottom: 30px; padding: 20px; background: linear-gradient(145deg, rgba(0, 212, 255, 0.05), rgba(138, 43, 226, 0.05)); border: 1px solid rgba(0, 212, 255, 0.2); border-radius: 12px; }
.brain-description-text { font-size: 14px; line-height: 1.8; color: var(--text-secondary); text-align: center; }
.brain-description-text .highlight { color: var(--color-neutral); font-weight: 600; }

/* Neural Activity Monitor */
.neural-activity-monitor { background: linear-gradient(145deg, #0a0a0a, #0f0f0f); border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 12px; padding: 30px; margin-bottom: 50px; }
.monitor-title { font-size: 18px; font-weight: 700; color: var(--color-positive); margin-bottom: 25px; letter-spacing: 1.5px; text-align: center; }
.monitor-description { margin: 15px 0 25px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); text-align: center; padding: 0 20px; }
.activity-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.activity-channel { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(0, 255, 136, 0.1); border-radius: 8px; padding: 15px; }
.channel-label { font-size: 12px; color: var(--text-secondary); margin-bottom: 10px; font-weight: 600; }
.channel-waveform { background: #000; border: 1px solid rgba(0, 255, 136, 0.2); border-radius: 4px; height: 60px; margin: 10px 0; overflow: hidden; }
.channel-waveform canvas { width: 100%; height: 100%; }
.channel-value { font-size: 13px; color: var(--color-positive); font-weight: 700; text-align: right; }

/* Synaptic Connections */
.synaptic-display { background: linear-gradient(145deg, #0a0a0a, #0f0f0f); border: 1px solid rgba(138, 43, 226, 0.2); border-radius: 12px; padding: 30px; }
.synaptic-title { font-size: 18px; font-weight: 700; color: #8a2be2; margin-bottom: 25px; letter-spacing: 1.5px; text-align: center; }
.synaptic-description { margin: 15px 0 25px; font-size: 13px; line-height: 1.7; color: var(--text-secondary); text-align: center; padding: 0 20px; }
.synaptic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.synapse-card { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(138, 43, 226, 0.2); border-radius: 8px; padding: 20px; text-align: center; transition: all 0.3s; }
.synapse-card:hover { border-color: rgba(138, 43, 226, 0.5); transform: translateY(-3px); }
.synapse-icon { font-size: 28px; margin-bottom: 10px; filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5)); }
.synapse-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; font-weight: 600; }
.synapse-strength { background: rgba(255, 255, 255, 0.05); border-radius: 10px; height: 8px; overflow: hidden; margin: 12px 0; }
.strength-bar { height: 100%; background: linear-gradient(90deg, #8a2be2, #00d4ff); border-radius: 10px; transition: width 0.5s; }
.synapse-value { font-size: 12px; color: #8a2be2; font-weight: 700; }

/* Responsive */
@media (max-width: 768px) {
  .brain-canvas-wrapper { height: 400px; }
  .brain-title-text { font-size: 24px; }
  .brain-subtitle {
    font-size: 11px;
    margin-top: 10px;
    padding: 0 10px;
    line-height: 1.6;
  }
  .brain-overlay-title {
    top: 10px;
  }
  .brain-regions-grid, .activity-channels, .synaptic-grid { grid-template-columns: 1fr; }
}


/* AI Terminal Styles */
.ai-terminal {
    background: #1a1a1a;
    border: 2px solid #00ff88;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 900px;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: #2a2a2a;
    padding: 12px 16px;
    border-bottom: 1px solid #00ff88;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 10px 10px 0 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.terminal-title {
    color: #00ff88;
    font-size: 14px;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    min-height: 200px;
}

.terminal-line {
    color: #00ff88;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

.prompt {
    color: #00d4ff;
    font-weight: bold;
    margin-right: 8px;
}

.command {
    color: #ffdd00;
}

.terminal-line.output {
    color: #aaa;
    padding-left: 20px;
}

.status-ok {
    color: #00ff88;
    font-weight: bold;
}

.typing-animation {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@media (max-width: 768px) {
    .ai-terminal {
        margin: 20px 10px;
    }
    
    .terminal-body {
        padding: 15px;
        font-size: 12px;
    }
    
    .terminal-line {
        font-size: 12px;
    }
}

/* 3D Neural Network Hero */
.neural-hero-container {
    position: relative;
    max-width: 1200px;
    margin: 40px auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    overflow: hidden;
}

.neural-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.neural-stat {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.neural-stat:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 5px 20px rgba(0, 255, 136, 0.4);
}

.stat-icon {
    font-size: 32px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.6));
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.stat-text {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.neural-network-3d {
    height: 300px;
    position: relative;
    margin: 30px 0;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network-3d::before {
    content: "⚡ NEURAL NETWORK ACTIVE ⚡";
    font-size: 24px;
    color: #00ff88;
    font-weight: bold;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.neural-status-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Removed duplicate .status-indicator definition - conflicts with footer status indicator */

@keyframes pulse-indicator {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.status-text {
    color: #00ff88;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
}

.status-details {
    color: #888;
    font-size: 12px;
    margin-left: auto;
}

@media (max-width: 768px) {
    .neural-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .neural-stat {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .neural-network-3d {
        height: 200px;
    }
    
    .neural-network-3d::before {
        font-size: 16px;
    }
    
    .status-details {
        display: none;
    }
}

/* Hero Intelligence Grid */
.hero-intelligence-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 40px auto;
    max-width: 1000px;
}

.intelligence-card {
    background: rgba(0, 255, 136, 0.05);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.intelligence-card:hover {
    transform: translateY(-8px);
    border-color: #00ff88;
    box-shadow: 0 10px 40px rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.1);
}

.card-icon {
    font-size: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.6));
}

.card-value {
    font-size: 42px;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.card-label {
    font-size: 12px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .hero-intelligence-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .intelligence-card {
        padding: 20px 15px;
    }
    
    .card-icon {
        font-size: 36px;
    }
    
    .card-value {
        font-size: 32px;
    }
}

/* 3D Interactive Neural Architecture - ULTRA */
.neural-architecture-3d {
    position: relative;
    height: 600px;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 136, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    overflow: hidden;
    margin: 40px 0;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.architecture-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    padding: 40px;
}

.arch-layer {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.arch-layer:nth-child(1) { animation-delay: 0s; }
.arch-layer:nth-child(2) { animation-delay: 0.2s; }
.arch-layer:nth-child(3) { animation-delay: 0.4s; }
.arch-layer:nth-child(4) { animation-delay: 0.6s; }
.arch-layer:nth-child(5) { animation-delay: 0.8s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.layer-badge {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(0, 255, 136, 0.4);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    min-width: 160px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.layer-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ff88, #00d4ff, #00ff88);
    border-radius: 16px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.layer-badge:hover::before {
    opacity: 0.5;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.layer-badge:hover {
    transform: scale(1.15) translateZ(20px);
    border-color: #00ff88;
    box-shadow: 
        0 20px 60px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.1);
}

.layer-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.8));
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.layer-name {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #00ff88;
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.layer-detail {
    display: block;
    font-size: 10px;
    color: #888;
    letter-spacing: 1px;
}

.data-flow-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 3;
}

.flow-dot {
    width: 12px;
    height: 12px;
    background: #00ff88;
    border-radius: 50%;
    animation: flow 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.8);
}

.flow-dot:nth-child(1) { animation-delay: 0s; }
.flow-dot:nth-child(2) { animation-delay: 0.3s; }
.flow-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes flow {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.5;
    }
    50% { 
        transform: scale(1.5);
        opacity: 1;
    }
}

.flow-label {
    color: #00ff88;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

@media (max-width: 1024px) {
    .neural-architecture-3d {
        height: 500px;
    }
    
    .architecture-overlay {
        padding: 20px;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .arch-layer {
        flex: 1 1 calc(33% - 20px);
    }
}

@media (max-width: 768px) {
    .neural-architecture-3d {
        height: auto;
        min-height: 480px;
        padding-bottom: 60px;
    }

    .architecture-overlay {
        flex-direction: column;
        padding: 30px 15px 50px 15px;
    }

    .layer-badge {
        min-width: 140px;
        padding: 15px;
    }

    .layer-icon {
        font-size: 32px;
    }

    .layer-name {
        font-size: 11px;
    }

    /* Fix: Keep data flowing indicator inside container and aligned */
    .data-flow-indicator {
        bottom: 20px !important;
        position: absolute !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .flow-dot {
        display: inline-block !important;
        flex-shrink: 0 !important;
    }

    .flow-label {
        display: inline-block !important;
        white-space: nowrap !important;
    }
}
