/* 🌌 STATISTICS PAGE STYLING */
:root {
    --accent-emerald: #9dfadb;
    --accent-blue: #329dfa;
    --card-glass: rgba(20, 24, 33, 0.7);
    --card-border: rgba(157, 250, 219, 0.1);
}

.stats-container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Outfit', sans-serif;
}

/* 🚀 HEADER & TIMELINE PICKER */
.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2.5rem;
}

.stats-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.timeline-picker {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    display: flex;
    gap: 4px;
}

.time-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-btn.active {
    background: var(--accent-emerald);
    color: #0b1118;
    box-shadow: 0 4px 15px rgba(157, 250, 219, 0.3);
}

/* 🏔️ THE HERO STATS CARD */
.stats-hero-card {
    position: relative;
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 4.5rem;
    overflow: hidden;
    margin-bottom: 2rem;
    backdrop-filter: blur(40px);
}

/* 🚀 MERGED HEADER (Internal) */
.stats-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
    z-index: 2;
}

.hero-title-group h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.hero-title-group p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.1rem;
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: radial-gradient(circle, rgba(157, 250, 219, 0.08) 0%, rgba(50, 157, 250, 0.03) 100%);
    filter: blur(80px);
    z-index: 0;
}

.hero-content {
    display: flex;
    gap: 6rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.hero-stat-item .stat-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.hero-stat-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
}

.pnl-positive {
    color: var(--accent-emerald);
}

.pnl-negative {
    color: #ff6b6b;
}

/* 💹 THE CHART WRAPPER */
.chart-wrapper {
    width: 100%;
    height: 380px;
    position: relative;
    z-index: 1;
}

/* 🃏 SECONDARY STATS GRID */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-glass-card {
    background: var(--card-glass);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(157, 250, 219, 0.2);
}

.icon-wrap {
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-glass-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 4px;
}

.stat-glass-card small {
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 900px) {
    .stats-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

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