:root {
    --bg-color: #05070a;
    --card-bg: rgba(17, 21, 30, 0.7);
    --primary: #6366f1;
    --secondary: #818cf8;
    --text-main: #f8fafc;
    --text-dim: #94a3b8;
    --positive: #10b981;
    --negative: #f43f5e;
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: pulse 10s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: -50px;
    left: -50px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.period-badge {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Cards */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card h3 {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.metric-card .value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 0.5rem;
}

.growth {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.growth.positive {
    color: var(--positive);
}

.growth.negative {
    color: var(--negative);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    color: var(--text-dim);
}

.chart-container {
    height: 300px;
    position: relative;
}

/* Audience Stats */
.audience-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.age-row {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.age-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.age-value {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    height: 100%;
    border-radius: 10px;
}

.fill-1 {
    background: var(--primary);
}

.fill-2 {
    background: var(--secondary);
}

.fill-3 {
    background: #4f46e5;
}

.audience-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.4;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.insight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.insight-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.5rem;
    border-radius: 12px;
}

.insight-item p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.insight-item strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 0.2rem;
}

footer {
    text-align: center;
    padding-top: 3rem;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s forwards;
    animation-delay: var(--delay);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Monthly Breakdown */
.monthly-breakdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.month-card {
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
}

.month-card.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.month-header {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.month-header small {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-dim);
}

.month-stats {
    display: grid;
    gap: 0.5rem;
}

.month-stats .stat {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.month-stats span {
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
    .monthly-breakdown {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .brand {
        flex-direction: column;
        gap: 0.5rem;
    }
}