:root {
    --ach-primary: #00899A;
    --ach-primary-dark: #184682;
    --ach-accent: #FFBA00;
    --ach-orange: #F25242;
    --ach-ink: #02294F;

    /* Light mode palette */
    --color-soft-yellow: #E9BF52;
    --color-olive-green: #71964B;
    --color-fresh-teal: #16B7B1;
    --color-aqua-blue: #56B7CA;
    --color-sky-blue: #00CCFF;
    --color-deep-navy: #02294F;
    --color-pure-white: #FFFFFF;
    --color-off-white: #F1EDE5;
    --color-soft-orange: #FFBA00;
    --color-strong-orange: #FF8A00;
    --color-coral-red: #F25242;
    --color-teal-dark: #00899A;
    --color-green: #00A240;
    --color-purple: #8062C6;
    --color-royal-blue: #184682;
    --color-black: #000000;

    /* Dark mode palette */
    --color-dark-bg-primary: #0C1116;
    --color-dark-bg-secondary: #131A22;
    --color-dark-card: #18222E;
    --color-dark-text-primary: #FFFFFF;
    --color-dark-text-secondary: #A9B3BC;
    --color-dark-accent-teal: #16B7B1;
    --color-dark-accent-blue: #00CCFF;
    --color-dark-accent-orange: #FF8A00;
}

.achievements-page {
    background: radial-gradient(circle at 15% 20%, rgba(0, 204, 255, 0.08), transparent 32%),
                radial-gradient(circle at 85% 12%, rgba(255, 186, 0, 0.12), transparent 34%),
                radial-gradient(circle at 25% 78%, rgba(0, 139, 154, 0.08), transparent 34%),
                #f7f9fb;
    padding: 1.5rem 0 3rem;
    position: relative;
}

.achievements-page::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(241, 237, 229, 0.35) 0%, rgba(241, 237, 229, 0) 45%);
    pointer-events: none;
}

.achievements-page section {
    position: relative;
    z-index: 1;
}

.achievements-spaced {
    padding: 0.75rem 0 1.5rem;
    margin-bottom: 1.25rem;
}

.achievements-cards { margin: 1.5rem 0 1rem; }
.achievements-cards .row { row-gap: 1.75rem; }
.insights-cards .row { row-gap: 1.5rem; }

.achievements-cards .section-header h3,
.applications-cards .section-header h3,
.insights-cards .section-header h3 {
    color: #02294F;
    font-weight: 800;
}

.achievements-cards .section-header .eyebrow,
.applications-cards .section-header .eyebrow,
.insights-cards .section-header .eyebrow {
    color: #00899A;
}

.achievements-cards .section-header .icon-pill,
.applications-cards .section-header .icon-pill {
    box-shadow: 0 14px 32px rgba(242, 82, 66, 0.18);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.panel-header .eyebrow,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #00899A;
    font-size: 0.8rem;
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #F25242, #F25242);
    color: #FFFFFF;
    font-size: 1.2rem;
}

.icon-pill.small {
    width: 34px;
    height: 34px;
    font-size: 1rem;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFFFFF, #FFFFFF);
    color: #02294F;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 139, 143, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-chip.soft { background: linear-gradient(135deg, #F1EDE5, #F1EDE5); color: #FF8A00; border-color: rgba(243, 111, 33, 0.18); }
.stat-chip.muted { background: #FFFFFF; color: #184682; border-color: rgba(21, 76, 145, 0.12); }
.stat-chip.accent { background: linear-gradient(135deg, #F1EDE5, #F1EDE5); color: #00899A; border-color: rgba(0, 155, 87, 0.14); }
.stat-chip strong { color: inherit; font-weight: 800; }
.stat-chip i { color: inherit; }
.stat-chip:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }

.progress-row .progress { height: 10px; background: #F1EDE5; border-radius: 999px; }
.progress-bar { background: linear-gradient(135deg, #00899A, #184682); }
.progress-bar-orange { background: linear-gradient(135deg, #FFBA00, #F25242); }

.timeline-stats .bar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 16px;
    align-items: end;
}

.timeline-stats .bar-column { text-align: center; }
.timeline-stats .bar { background: linear-gradient(180deg, rgba(0, 139, 143, 0.9), rgba(21, 76, 145, 0.85)); border-radius: 10px 10px 6px 6px; height: 80%; min-height: 16px; }
.timeline-stats .bar-label { margin-top: 8px; font-weight: 700; color: #02294F; }
.timeline-stats .bar-value { font-size: 0.9rem; color: #71964B; }

.pill-note {
    background: linear-gradient(135deg, rgba(0, 139, 143, 0.08), rgba(21, 76, 145, 0.08));
    border-radius: 12px;
    padding: 12px;
    color: #02294F;
    font-weight: 600;
    border: 1px solid rgba(0, 139, 143, 0.14);
}

.tiers-stats .tier-card {
    border-radius: 18px;
    padding: 18px;
    color: #131A22;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.tier-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.25);
    font-size: 1.6rem;
}

.tier-label { font-weight: 800; margin-bottom: 4px; }
.tier-value { font-size: 2rem; font-weight: 900; margin-bottom: 6px; }

.gradient-diamond { background: linear-gradient(135deg, #8062C6, #184682); color: #FFFFFF; }
.gradient-gold { background: linear-gradient(135deg, #FFBA00, #F25242); color: #0C1116; }
.gradient-silver { background: linear-gradient(135deg, #F1EDE5, #A9B3BC); color: #18222E; }

.badge.bg-gradient-teal { background: linear-gradient(135deg, #16B7B1, #F1EDE5); }

.branch-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 139, 143, 0.12);
}

.branch-name { font-weight: 800; color: #02294F; }
.branch-city { font-size: 0.9rem; }

@media (max-width: 767.98px) {
    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.sector-stats .panel,
.branches-stats .panel,
.timeline-stats .panel {
    background: #FFFFFF;
    border-radius: 18px;
    padding: 18px 18px 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(21, 76, 145, 0.08);
    height: 100%;
}

.branches-stats .panel-body .badge {
    background: linear-gradient(135deg, #FFBA00, #F25242);
    border: none;
}

.branch-cards .section-header { margin-bottom: 1rem; }
