:root {
    --blue: #4A7BF7;
    --blue-dark: #3B63D4;
    --blue-light: #6B93F9;
    --blue-bg: #EEF2FF;
    --dark: #0B1120;
    --text: #1E293B;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --bg: #F8FAFC;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }

/* ══════════ NAV ══════════ */
nav {
    background: var(--dark);
    padding: 0 32px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
    position: sticky; top: 0; z-index: 100;
}
.nav-left { display: flex; align-items: center; gap: 28px; }
.nav-logo {
    display: flex; align-items: center; text-decoration: none;
    flex-shrink: 0;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
    font-size: 0.84rem; font-weight: 500; color: #94A3B8;
    text-decoration: none; padding: 6px 12px; border-radius: 6px;
    transition: all 0.15s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.06); }
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Language dropdown */
.lang-dropdown { position: relative; }
.lang-dropdown-btn {
    display: flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.05); border: 1px solid #334155; border-radius: 6px;
    padding: 6px 10px; color: #CBD5E1; font-size: 0.78rem; font-weight: 500;
    cursor: pointer; font-family: inherit; transition: all 0.15s;
    white-space: nowrap;
}
.lang-dropdown-btn:hover { border-color: #64748B; background: rgba(255,255,255,0.1); }
.lang-dropdown-btn img { flex-shrink: 0; display: block; }
.lang-dropdown-btn svg { color: #64748B; flex-shrink: 0; }
.lang-dropdown-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: var(--white); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.15); min-width: 160px; z-index: 200;
    padding: 6px; overflow: hidden;
}
.lang-dropdown.open .lang-dropdown-menu { display: block; }
.lang-dropdown-item {
    display: flex; align-items: center; padding: 9px 12px; font-size: 0.84rem;
    color: var(--text); text-decoration: none; border-radius: 6px;
    transition: background 0.1s; gap: 10px;
}
.lang-dropdown-item:hover { background: var(--bg); }
.lang-dropdown-item img { flex-shrink: 0; display: block; }

.nav-btn {
    font-size: 0.82rem; font-weight: 600; padding: 8px 18px; border-radius: 8px;
    text-decoration: none; transition: all 0.15s; border: none; cursor: pointer;
    font-family: inherit; white-space: nowrap;
}
.nav-btn-outline { color: #CBD5E1; border: 1px solid #334155; background: transparent; }
.nav-btn-outline:hover { border-color: #94A3B8; color: #fff; }
.nav-btn-primary { color: var(--dark); background: var(--white); font-weight: 700; }
.nav-btn-primary:hover { background: #E2E8F0; }

/* ══════════ HERO ══════════ */
.hero {
    background: #4A7BF7 url('hero-bg.jpg') center/cover no-repeat;
    padding: 56px 32px 64px;
    text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: url('grid.svg') center/cover no-repeat;
    opacity: 0.35;
    pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
    color: #fff; font-size: 0.78rem; font-weight: 600;
    padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
    backdrop-filter: blur(4px);
}
.hero h1 {
    font-size: 2.5rem; font-weight: 800; line-height: 1.15;
    color: var(--white); margin-bottom: 14px; letter-spacing: -0.02em;
}
.hero h1 .blue { color: #C7DBFF; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 560px; margin: 0 auto 28px; line-height: 1.7; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 32px; }
.hero-stat-value { font-size: 1.85rem; font-weight: 800; color: var(--white); }
.hero-stat-label { font-size: 0.72rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

.hero-sm { padding: 36px 32px 40px; }
.hero-sm h1 { font-size: 1.75rem; }
.hero-sm p { margin-bottom: 12px; }

/* ══════════ FILTER BAR ══════════ */
.filter-bar {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 0 32px;
}
.filter-bar-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: stretch; gap: 0;
    min-height: 48px;
}
.filter-bar-inner > .month-nav-inner {
    flex: 1; overflow-x: auto; display: flex; gap: 2px;
    align-items: center; padding: 8px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.filter-bar-inner > .month-nav-inner::-webkit-scrollbar { display: none; }
.filter-bar-inner > .tabs {
    display: flex; gap: 4px; align-items: center;
    padding: 8px 0 8px 12px;
    border-left: 1px solid var(--border); margin-left: 12px;
    flex-shrink: 0;
}

.month-btn {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 0.78rem; font-weight: 500; font-family: inherit;
    transition: all 0.15s; white-space: nowrap;
}
.month-btn:hover { color: var(--text); background: var(--bg); }
.month-btn.active { color: var(--blue); background: var(--blue-bg); font-weight: 600; }

/* ══════════ BREADCRUMB ══════════ */
.breadcrumb {
    padding: 12px 32px; background: var(--white); border-bottom: 1px solid var(--border);
    font-size: 0.82rem; color: var(--text-muted);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; color: var(--border); }

/* ══════════ SUB-NAV ══════════ */
.sub-nav { background: var(--white); border-bottom: 1px solid var(--border); padding: 10px 32px; overflow-x: auto; }
.sub-nav-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 2px; align-items: center; flex-wrap: nowrap;
}
.sub-nav-link {
    padding: 5px 12px; border-radius: 6px; border: none;
    background: transparent; color: var(--text-muted); cursor: pointer;
    font-size: 0.78rem; font-weight: 500; font-family: inherit;
    text-decoration: none; transition: all 0.15s; white-space: nowrap;
}
.sub-nav-link:hover { color: var(--text); background: var(--bg); }
.sub-nav-link.active { color: var(--blue); background: var(--blue-bg); font-weight: 600; }

/* ══════════ PAGE LINKS (navigate to sub-pages) ══════════ */
.page-links {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 14px 32px;
}
.page-links-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.page-links-label {
    font-size: 0.75rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px;
}
.page-link {
    font-size: 0.78rem; font-weight: 500; color: var(--text-secondary);
    text-decoration: none; padding: 4px 10px; border-radius: 5px;
    border: 1px solid var(--border); background: var(--white);
    transition: all 0.15s; display: inline-flex; align-items: center; gap: 5px;
}
.page-link:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.page-link img { width: 14px; height: 14px; border-radius: 2px; }

/* ══════════ CONTAINER ══════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ══════════ SECTIONS ══════════ */
.section { padding: 36px 0; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.section-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }

/* ══════════ CARDS ══════════ */
.card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.card-title { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 16px; }

/* ══════════ TABS ══════════ */
.tabs { display: flex; gap: 5px; margin-bottom: 14px; flex-wrap: wrap; }
.tab {
    padding: 5px 12px; border-radius: 6px; border: 1px solid var(--border);
    background: var(--white); color: var(--text-muted); cursor: pointer;
    font-size: 0.78rem; font-weight: 500; font-family: inherit; transition: all 0.15s;
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.active { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ══════════ CHARTS ══════════ */
.chart { width: 100%; height: 480px; }
.chart-lg { height: 560px; }

/* ══════════ GRID ══════════ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ══════════ INDEX CARDS ══════════ */
.index-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow-sm); text-decoration: none; color: var(--text);
    transition: all 0.2s; display: block;
}
.index-card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
.index-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.index-card p { font-size: 0.8rem; color: var(--text-muted); }

/* ══════════ FOOTER ══════════ */
footer {
    background: var(--dark); padding: 36px 32px; text-align: center;
    color: #64748B; font-size: 0.82rem; margin-top: 36px;
}
footer a { color: var(--blue-light); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 14px; }
.footer-links a { color: #94A3B8; font-weight: 500; }
.footer-legal { margin-top: 14px; font-size: 0.72rem; color: #475569; line-height: 1.8; }
.footer-legal a { color: #64748B; }

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .hero-sm h1 { font-size: 1.3rem; }
    .hero { padding: 40px 20px 48px; }
    .hero-sm { padding: 28px 20px 32px; }
    .hero-stats { gap: 20px; flex-wrap: wrap; }
    .hero-stat-value { font-size: 1.4rem; }
    .chart { height: 360px; }
    .chart-lg { height: 420px; }
    nav { padding: 0 12px; }
    .nav-links { display: none; }
    .lang-dropdown { display: none; }
    .nav-btn-outline { display: none; }
    .nav-btn { padding: 7px 14px; font-size: 0.78rem; }
    .container { padding: 0 16px; }
    .filter-bar { padding: 0 16px; }
    .filter-bar-inner { flex-direction: column; align-items: stretch; gap: 0; }
    .filter-bar-inner > .tabs { border-left: none; margin-left: 0; padding-left: 0; border-top: 1px solid var(--border); }
    .page-links { padding: 10px 16px; }
    .sub-nav, .breadcrumb { padding-left: 16px; padding-right: 16px; }
    .footer-legal { line-height: 2; }
}
