* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* TradingView/Crypto.com inspired color palette */
    --primary-bg: #0B1426;
    --secondary-bg: #131722;
    --card-bg: #1E2329;
    --accent-bg: #2B2F36;
    --border-color: #2B2F36;
    --border-hover: #434651;
    
    /* Text colors */
    --text-primary: #D1D4DC;
    --text-secondary: #B2B5BE;
    --text-muted: #787B86;
    
    /* Accent colors */
    --accent-blue: #2962FF;
    --accent-cyan: #00D4AA;
    --accent-purple: #9C27B0;
    --accent-orange: #FF6B35;
    
    /* Status colors */
    --success: #26A69A;
    --warning: #FFB74D;
    --error: #EF5350;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2962FF 0%, #00D4AA 100%);
    --gradient-card: linear-gradient(135deg, #1E2329 0%, #2B2F36 100%);
    --gradient-accent: linear-gradient(135deg, #2962FF 0%, #9C27B0 50%, #00D4AA 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(11, 20, 38, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    height: 70px;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(41, 98, 255, 0.1);
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(41, 98, 255, 0.05) 0%, transparent 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.primary-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn {
    background: transparent;
    color: var(--accent-blue);
    padding: 1rem 2rem;
    border: 1px solid var(--accent-blue);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(41, 98, 255, 0.4);
}

.secondary-btn:hover {
    background: rgba(41, 98, 255, 0.1);
}

.hero-visual {
    position: relative;
    height: 500px;
    background: var(--gradient-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.chart-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: var(--secondary-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.chart-placeholder {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    letter-spacing: -0.02em;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Models Section */
.models {
    padding: 6rem 0;
    background: var(--primary-bg);
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.model-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.model-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 40px rgba(41, 98, 255, 0.1);
}

.model-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.model-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--border-hover);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Premium Section */
.premium-section {
    padding: 6rem 0;
    background: var(--primary-bg);
    text-align: center;
}

.premium-content {
    max-width: 800px;
    margin: 0 auto;
}

.premium-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.premium-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .features-grid,
    .models-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

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

/* Data Visualization */
.data-viz {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.mock-chart-line {
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: pulse 2s ease-in-out infinite;
}

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

.mock-chart-line:nth-child(1) { width: 80%; }
.mock-chart-line:nth-child(2) { width: 60%; animation-delay: 0.2s; }
.mock-chart-line:nth-child(3) { width: 90%; animation-delay: 0.4s; }
.mock-chart-line:nth-child(4) { width: 70%; animation-delay: 0.6s; }

/* Floating Elements */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: float-particle 8s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes float-particle {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg); 
        opacity: 0.8; 
    }
}

.particle:nth-child(1) {
    width: 6px;
    height: 6px;
    top: 20%;
    left: 10%;
    animation-delay: -2s;
}

.particle:nth-child(2) {
    width: 8px;
    height: 8px;
    top: 60%;
    right: 15%;
    animation-delay: -4s;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 80%;
    left: 20%;
    animation-delay: -1s;
}

.particle:nth-child(4) {
    width: 10px;
    height: 10px;
    top: 30%;
    right: 30%;
    animation-delay: -3s;
}

.particle:nth-child(5) {
    width: 12px;
    height: 12px;
    top: 70%;
    left: 60%;
    animation-delay: -5s;
}

/* Dashboard Section */
.dashboard-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(41, 98, 255, 0.1);
    border-color: var(--accent-blue);
}

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

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

.performance-badge {
    background: linear-gradient(135deg, var(--success-color), #00D4AA);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.performance-badge.positive {
    background: linear-gradient(135deg, var(--success-color), #00D4AA);
}

.performance-badge.negative {
    background: linear-gradient(135deg, #FF4757, #FF6B7A);
}

.performance-chart {
    margin: 20px 0;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 98, 255, 0.05);
    border-radius: 8px;
}

.performance-stats {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

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

.stat .label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.stat .value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

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

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

.strategy-count {
    background: var(--accent-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.strategy-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strategy-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(41, 98, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.strategy-item:hover {
    background: rgba(41, 98, 255, 0.1);
}

.strategy-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.strategy-name {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.strategy-status {
    font-size: 0.8rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.strategy-status.running {
    background: rgba(0, 212, 170, 0.2);
    color: var(--success-color);
}

.strategy-status.paused {
    background: rgba(255, 193, 7, 0.2);
    color: #FFC107;
}

.strategy-performance {
    font-weight: 600;
    color: var(--success-color);
}

.risk-level {
    background: #FFC107;
    color: #1a1a1a;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.risk-level.moderate {
    background: #FFC107;
}

.risk-level.high {
    background: var(--error-color);
    color: white;
}

.risk-level.low {
    background: var(--success-color);
    color: white;
}

.risk-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.risk-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.risk-value {
    color: var(--text-primary);
    font-weight: 600;
}

.market-status {
    background: var(--success-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.market-status.bullish {
    background: var(--success-color);
}

.market-status.bearish {
    background: var(--error-color);
}

.market-indicators {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.market-name {
    color: var(--text-primary);
    font-weight: 500;
}

.market-value {
    font-weight: 600;
}

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

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

/* Strategy Builder Section */
.strategy-builder-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.builder-interface {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-top: 40px;
    height: 600px;
}

.builder-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    overflow-y: auto;
}

.builder-sidebar h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.2rem;
}

.component-categories {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.category h4 {
    color: var(--text-primary);
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: 600;
}

.component-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(41, 98, 255, 0.05);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: grab;
    transition: all 0.3s ease;
    user-select: none;
}

.component-item:hover {
    background: rgba(41, 98, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateX(4px);
}

.component-item:active {
    cursor: grabbing;
}

.component-icon {
    font-size: 1.2rem;
}

.component-item span:last-child {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.builder-canvas {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.canvas-header h3 {
    color: var(--text-primary);
    margin: 0;
    font-size: 1.2rem;
}

.canvas-actions {
    display: flex;
    gap: 12px;
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(41, 98, 255, 0.1);
    border-color: var(--accent-blue);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.3);
}

.strategy-canvas {
    flex: 1;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(41, 98, 255, 0.02), rgba(156, 39, 176, 0.02));
    border-radius: 0 0 16px 16px;
}

.canvas-placeholder {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
}

/* Backtesting Section */
.backtesting-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.backtesting-interface {
    margin-top: 40px;
}

.backtest-controls {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    align-items: end;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-select, .form-input {
    background: rgba(41, 98, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-select:focus, .form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(41, 98, 255, 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.run-backtest {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.run-backtest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 98, 255, 0.3);
}

.backtest-results {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.results-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.summary-card {
    background: rgba(41, 98, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.summary-card:hover {
    background: rgba(41, 98, 255, 0.1);
    transform: translateY(-2px);
}

.summary-card h4 {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.summary-card .value {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.summary-card .value.positive {
    color: var(--success-color);
}

.summary-card .value.negative {
    color: var(--error-color);
}

.results-chart {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 98, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.portfolio-overview {
    margin-top: 40px;
}

.portfolio-summary {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
}

.portfolio-value h3 {
    color: var(--text-secondary);
    margin: 0 0 8px 0;
    font-size: 1rem;
    font-weight: 500;
}

.total-value {
    color: var(--text-primary);
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.daily-change {
    font-size: 1.1rem;
    font-weight: 600;
}

.daily-change.positive {
    color: var(--success-color);
}

.daily-change.negative {
    color: var(--error-color);
}

.portfolio-allocation {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(41, 98, 255, 0.05);
    border-radius: 50%;
}

.holdings-table {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

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

.holdings-table th {
    background: rgba(41, 98, 255, 0.1);
    color: var(--text-primary);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.holdings-table td {
    padding: 16px;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.holdings-table tr:hover {
    background: rgba(41, 98, 255, 0.05);
}

.holdings-table .positive {
    color: var(--success-color);
    font-weight: 600;
}

.holdings-table .negative {
    color: var(--error-color);
    font-weight: 600;
}

/* Market Data Section */
.market-data-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.market-interface {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 32px;
    margin-top: 40px;
    height: 600px;
}

.market-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.watchlist, .market-news {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.watchlist h3, .market-news h3 {
    color: var(--text-primary);
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.watchlist-items, .news-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: rgba(41, 98, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.watchlist-item:hover {
    background: rgba(41, 98, 255, 0.1);
}

.symbol {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.price {
    color: var(--text-primary);
    font-weight: 500;
}

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

.change.positive {
    color: var(--success-color);
}

.change.negative {
    color: var(--error-color);
}

.news-item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.news-time {
    color: var(--text-secondary);
    font-size: 0.8rem;
    min-width: 40px;
}

.news-text {
    color: var(--text-primary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.market-chart {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}

.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
}

.timeframe-buttons {
    display: flex;
    gap: 8px;
}

.btn-timeframe {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.btn-timeframe:hover {
    background: rgba(41, 98, 255, 0.1);
    color: var(--text-primary);
}

.btn-timeframe.active {
    background: var(--accent-blue);
    color: white;
    border-color: var(--accent-blue);
}

.market-chart canvas {
    flex: 1;
    padding: 24px;
}

/* Responsive Design for New Sections */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .builder-interface, .market-interface {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .builder-sidebar, .market-sidebar {
        order: 2;
    }
    
    .builder-canvas, .market-chart {
        order: 1;
        height: 400px;
    }
    
    .backtest-controls {
        grid-template-columns: 1fr;
    }
    
    .results-summary {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .holdings-table {
        overflow-x: auto;
    }
    
    .total-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .results-summary {
        grid-template-columns: 1fr;
    }
    
    .dashboard-card {
        padding: 16px;
    }
    
    .performance-stats {
        flex-direction: column;
        gap: 12px;
    }
}
