/* ============================================================================
 * AstraEdu — styles.css
 * ----------------------------------------------------------------------------
 * Cari section (Ctrl+F): Reset, header, nav, button, card, modal, materi,
 * kelas, quiz, wordbox, AI chat, footer, premium override.
 * Aturan di bagian akhir file menimpa style lama untuk tampilan premium.
 * ============================================================================ */

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-soft: #fff7ed;
    --orange-glow: rgba(249, 115, 22, 0.15);
    --blue-dark: #0b1220;
    --blue-mid: #152238;
    --blue-soft: #1e3a5f;
    --text: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg: #f8fafc;
    --bg-alt: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --border-soft: rgba(226, 232, 240, 0.6);
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 8px 32px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1), 0 4px 12px rgba(15, 23, 42, 0.05);
    --shadow-orange: 0 4px 16px rgba(249, 115, 22, 0.3);
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

main {
    flex: 1;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon svg {
    width: 100%;
    height: 100%;
}

/* ===== Header / Navbar ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 4px 20px rgba(15, 23, 42, 0.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.9;
}

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.04em;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
    border-radius: 8px;
    transition: var(--transition);
}

.menu-toggle:hover {
    background: var(--bg-alt);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.nav.open {
    display: flex;
}

.nav a {
    padding: 13px 16px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: 10px;
    transition: var(--transition);
}

.nav a:hover {
    background: var(--orange-soft);
    color: var(--orange);
}

.nav a.active {
    background: var(--orange-soft);
    color: var(--orange);
    font-weight: 600;
}

/* ===== Hero ===== */
.hero {
    padding: 64px 0 72px;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.08), transparent),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.hero-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--blue-dark);
    line-height: 1.15;
    margin-bottom: 18px;
    letter-spacing: -0.03em;
}

.hero-desc {
    font-size: 16.5px;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--text);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
}

.btn-secondary:hover {
    border-color: var(--orange);
    color: var(--orange);
    box-shadow: var(--shadow-md);
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-bottom: 48px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #059669;
}

.feature-item .icon {
    width: 18px;
    height: 18px;
    color: #059669;
}

/* Featured Card */
.featured-card {
    background: linear-gradient(150deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
    border-radius: 24px;
    padding: 40px 32px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.featured-card::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.featured-card-inner {
    position: relative;
    z-index: 1;
}

.featured-logo {
    width: 92px;
    height: 92px;
    margin: 0 auto 22px;
    border-radius: 20px;
    background: var(--white);
    padding: 10px;
    object-fit: contain;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.featured-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}

.tagline {
    font-size: 13.5px;
    opacity: 0.7;
    margin-bottom: 28px;
    letter-spacing: 0.06em;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--text);
    padding: 14px 22px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.featured-badge .icon {
    width: 26px;
    height: 26px;
    color: var(--orange);
}

.featured-badge strong {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
}

.featured-badge small {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ===== Sections ===== */
.section {
    padding: 72px 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-label {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 650;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--blue-dark);
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-desc {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 560px;
}

/* Page Header */
.page-header {
    padding: 56px 0 48px;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(249, 115, 22, 0.06), transparent),
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid var(--border-soft);
}

.page-header .section-label {
    margin-bottom: 10px;
}

.page-header .section-title {
    margin-bottom: 12px;
}

.page-header .section-desc {
    margin-bottom: 0;
}

/* Why / Features */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.why-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-3px);
}

.why-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 18px;
}

.why-icon .icon {
    width: 24px;
    height: 24px;
}

.why-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Materi Preview / Cards */
.materi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.materi-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.materi-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.25);
    transform: translateY(-3px);
}

.materi-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.materi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
}

.materi-icon-wrap .icon {
    width: 24px;
    height: 24px;
}

.materi-number {
    font-size: 13px;
    font-weight: 650;
    color: var(--orange);
    opacity: 0.8;
}

.materi-card h3 {
    font-size: 16.5px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--blue-dark);
}

.materi-card p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(145deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
    border-radius: 24px;
    padding: 48px 32px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-size: 24px;
    font-weight: 750;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-banner p {
    font-size: 15px;
    opacity: 0.8;
    margin-bottom: 28px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-banner .btn-primary {
    background: var(--orange);
}

/* AI Page */
.ai-hero {
    background: linear-gradient(150deg, var(--blue-mid) 0%, var(--blue-dark) 100%);
    color: var(--white);
    padding: 88px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ai-hero .container {
    position: relative;
    z-index: 1;
}

.ai-hero .section-label {
    color: #fdba74;
}

.ai-hero .section-title {
    color: var(--white);
    font-size: 30px;
}

.ai-hero .section-desc {
    color: rgba(255, 255, 255, 0.7);
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}

.ai-placeholder {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 56px 32px;
    max-width: 420px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
}

.ai-placeholder .icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.9);
}

.ai-placeholder h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.ai-placeholder p {
    font-size: 14.5px;
    opacity: 0.75;
    line-height: 1.7;
}

/* Contact */
.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.2);
}

.contact-icon-wrap {
    width: 50px;
    height: 50px;
    background: var(--orange-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    flex-shrink: 0;
}

.contact-icon-wrap .icon {
    width: 22px;
    height: 22px;
}

.contact-card strong {
    display: block;
    font-size: 14.5px;
    font-weight: 650;
    color: var(--blue-dark);
    margin-bottom: 2px;
}

.contact-card p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.social-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 16px;
}

.social-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-soft);
    font-size: 14px;
    font-weight: 550;
    color: var(--blue-dark);
    transition: var(--transition);
}

.social-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--orange);
}

.social-item .icon {
    width: 20px;
    height: 20px;
    color: var(--orange);
}

/* ===== Footer ===== */
.footer {
    background: var(--blue-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 56px 0 0;
    margin-top: auto;
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--white);
    padding: 5px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    font-size: 15.5px;
    color: var(--white);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-brand p {
    font-size: 12.5px;
    opacity: 0.55;
    margin-top: 2px;
}

.footer-brand-desc {
    font-size: 13.5px;
    line-height: 1.6;
    opacity: 0.6;
    max-width: 280px;
    margin-top: 14px;
}

.footer-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.55);
    padding: 5px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--orange);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    text-align: center;
}

.footer-copy {
    font-size: 13px;
    opacity: 0.5;
}

.footer-note {
    font-size: 12px;
    opacity: 0.35;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top .icon {
    width: 20px;
    height: 20px;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(249, 115, 22, 0.45);
}

/* ===== Desktop ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }

    .menu-toggle {
        display: none;
    }

    .nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 2px;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
        backdrop-filter: none;
    }

    .nav a {
        padding: 8px 16px;
        font-size: 14px;
        border-radius: 10px;
    }

    .hero {
        padding: 80px 0 96px;
    }

    .hero-title {
        font-size: 44px;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .materi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .section {
        padding: 88px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .page-header {
        padding: 64px 0 56px;
    }

    .contact-cards {
        flex-direction: row;
    }

    .contact-card {
        flex: 1;
    }

    .social-links {
        grid-template-columns: repeat(4, 1fr);
    }

    .ai-hero {
        padding: 120px 0;
    }

    .ai-hero .section-title {
        font-size: 36px;
    }

    .cta-banner {
        padding: 56px 48px;
    }

    .cta-banner h2 {
        font-size: 28px;
    }

    /* Footer desktop */
    .footer {
        padding: 64px 0 0;
    }

    .footer-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        gap: 48px;
    }

    .footer-cols {
        display: flex;
        gap: 48px;
        grid-template-columns: none;
    }

    .footer-col {
        min-width: 120px;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        padding: 28px 0;
    }
}

@media (min-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Nav Button (Masukan) ===== */
.nav-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 9px 18px !important;
    background: var(--orange) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    margin-left: 6px;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
    transition: var(--transition) !important;
}

.nav-btn:hover {
    background: var(--orange-dark) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.4);
    transform: translateY(-1px);
}

.nav a.nav-btn.active {
    background: var(--orange) !important;
    color: var(--white) !important;
}

/* ===== About Intro ===== */
.about-intro-card {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 28px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
}

.about-intro-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--orange-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    margin-bottom: 20px;
}

.about-intro-icon .icon {
    width: 26px;
    height: 26px;
}

.about-intro-card h2 {
    font-size: 22px;
    font-weight: 750;
    color: var(--blue-dark);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.about-intro-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 14px;
}

.about-intro-card p:last-child {
    margin-bottom: 0;
}

/* ===== Team Grid ===== */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.team-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--orange-soft), #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 3px solid var(--white);
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.15);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-initials {
    font-size: 22px;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 0.02em;
}

.avatar-initials.lg {
    font-size: 32px;
}

.team-card h3 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.team-role {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--orange);
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: 24px;
    padding: 36px 28px 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
    transform: scale(0.92) translateY(12px);
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.modal-overlay.open .modal {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-alt);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
}

.modal-close .icon {
    width: 18px;
    height: 18px;
}

.modal-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--orange-soft), #ffedd5);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 3px solid var(--white);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.2);
    overflow: hidden;
}

.modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-name {
    font-size: 22px;
    font-weight: 750;
    color: var(--blue-dark);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.modal-role {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.modal-bio {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    background: var(--bg);
    border-radius: 14px;
    padding: 16px 18px;
}

.modal-info-item strong {
    display: block;
    font-size: 11.5px;
    font-weight: 650;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 2px;
}

.modal-info-item span {
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-dark);
}

/* Body lock when modal open */
body.modal-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }

    .about-intro-card {
        padding: 44px 40px;
    }

    .about-intro-card h2 {
        font-size: 26px;
    }

    .nav-btn {
        margin-left: 8px;
    }
}

/* ===== Materi card as link ===== */
a.materi-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.materi-card:hover h3 {
    color: var(--orange);
}

/* ===== Back link ===== */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--orange);
}

/* ===== Topic list (subject pages) ===== */
.topic-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.topic-group-title {
    font-size: 13px;
    font-weight: 650;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.topic-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    transition: var(--transition);
}

.topic-item:hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.topic-num {
    font-size: 14px;
    font-weight: 700;
    color: var(--orange);
    min-width: 28px;
}

.topic-item strong {
    display: block;
    font-size: 15px;
    font-weight: 650;
    color: var(--blue-dark);
    margin-bottom: 2px;
}

.topic-item p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
}

.topic-arrow {
    margin-left: auto;
    color: var(--text-light);
    flex-shrink: 0;
    transition: var(--transition);
}

.topic-item:hover .topic-arrow {
    color: var(--orange);
}

/* Topic item as button */
button.topic-item {
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
    background: var(--white);
    border: 1px solid var(--border-soft);
}

/* Materi modal larger */
.modal.modal-materi {
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    padding: 28px 24px 28px;
}

.materi-modal-content {
    text-align: left;
}

.materi-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 650;
    color: var(--orange);
    background: var(--orange-soft);
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.materi-modal-title {
    font-size: 20px;
    font-weight: 750;
    color: var(--blue-dark);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.materi-modal-lead {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 22px;
}

.materi-h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 22px 0 12px;
}

.formula-box {
    background: linear-gradient(145deg, var(--blue-mid), var(--blue-dark));
    color: var(--white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    margin-bottom: 16px;
}

.formula-box.soft {
    background: var(--orange-soft);
    color: var(--blue-dark);
}

.formula-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.formula-main {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Inter', ui-monospace, monospace;
    letter-spacing: 0.02em;
}

.formula-sub {
    font-size: 15px;
    font-weight: 600;
    margin-top: 6px;
    opacity: 0.9;
    font-family: 'Inter', ui-monospace, monospace;
}

.formula-inline {
    font-family: 'Inter', ui-monospace, monospace;
    font-weight: 650;
    font-size: 15px;
    color: var(--blue-dark);
    margin: 4px 0;
}

.method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 8px;
}

.method-card {
    background: var(--bg);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border-soft);
}

.method-icon {
    color: var(--orange);
    margin-bottom: 8px;
}

.method-card strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    color: var(--blue-dark);
    margin-bottom: 4px;
}

.method-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.example-box {
    background: var(--bg);
    border-radius: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border-soft);
    margin-top: 8px;
}

.example-q {
    font-size: 14px;
    font-weight: 550;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.example-a {
    font-size: 13.5px;
    margin: 12px 0 6px;
    color: var(--blue-dark);
}

.example-step {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 4px 0;
    line-height: 1.5;
}

.example-result {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-weight: 650;
    font-size: 14px;
    border-radius: 10px;
}

.visual-note {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg);
    border-radius: 14px;
    border: 1px solid var(--border-soft);
}

.visual-note strong {
    display: block;
    font-size: 13.5px;
    color: var(--blue-dark);
    margin-bottom: 6px;
}

.visual-note p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.55;
}

.coord-visual {
    display: flex;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    padding: 12px;
}

@media (min-width: 480px) {
    .method-grid {
        grid-template-columns: 1fr 1fr;
    }
    .method-grid:has(.method-card:nth-child(3):last-child) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .modal.modal-materi {
        max-width: 560px;
        padding: 32px 28px;
    }
    .materi-modal-title {
        font-size: 22px;
    }
}

/* Rich materi modal extras */
.method-grid.three {
    grid-template-columns: 1fr;
}

.method-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--orange-soft);
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.method-card.accent-green {
    border-color: rgba(16, 185, 129, 0.3);
    background: #ecfdf5;
}
.method-card.accent-orange {
    border-color: rgba(249, 115, 22, 0.3);
    background: var(--orange-soft);
}
.method-card.accent-red {
    border-color: rgba(239, 68, 68, 0.25);
    background: #fef2f2;
}

.eq-stack {
    margin: 10px 0 14px;
}

.eq-line {
    font-family: 'Inter', ui-monospace, monospace;
    font-weight: 650;
    font-size: 15px;
    color: var(--blue-dark);
    padding: 6px 0;
}

.eq-tag {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-light);
    margin-left: 8px;
}

.step-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 12px 0;
}

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-n {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step div {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
}

.step code {
    display: inline-block;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Inter', ui-monospace, monospace;
    color: var(--blue-dark);
    margin: 3px 0;
}

.tip-box {
    margin-top: 18px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
}

.tip-box strong {
    display: block;
    font-size: 13px;
    color: #b45309;
    margin-bottom: 4px;
}

.tip-box p {
    font-size: 13px;
    color: #92400e;
    line-height: 1.55;
    margin: 0;
}

.shape-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.shape-card {
    background: var(--bg);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}

.shape-visual {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.shape-card strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 8px;
}

.shape-formula {
    font-family: 'Inter', ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin: 2px 0;
}

@media (min-width: 480px) {
    .method-grid.three {
        grid-template-columns: 1fr 1fr 1fr;
    }
    .shape-cards {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

/* ===== AI Chat ===== */
.ai-setup {
  max-width: 520px;
  margin: 0 auto 40px;
}

.ai-setup-card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 32px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ai-setup-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.ai-setup-card h2 {
  font-size: 20px;
  font-weight: 750;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.ai-setup-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.ai-setup-card a {
  color: var(--orange);
  font-weight: 600;
}

.ai-key-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-key-row input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.ai-key-row input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.ai-setup-note {
  font-size: 12px !important;
  color: var(--text-light) !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
}

.ai-chat-wrap {
  max-width: 720px;
  margin: 0 auto 48px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 420px;
  max-height: 70vh;
}

.ai-chat-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg);
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-dark);
  margin-right: auto;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.ai-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 550;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ai-toolbar-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafbfc;
}

.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  max-width: 92%;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-bubble {
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-msg-bot .ai-bubble {
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--blue-dark);
  border-bottom-left-radius: 4px;
}

.ai-msg-user .ai-bubble {
  background: var(--orange);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-msg-error .ai-bubble {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.ai-typing {
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 14px 16px !important;
}

.ai-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: aiBounce 1.2s infinite ease-in-out;
}

.ai-typing span:nth-child(2) { animation-delay: 0.15s; }
.ai-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-5px); opacity: 1; }
}

.ai-input-bar {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--white);
}

.ai-input-bar input {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.ai-input-bar input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.ai-send-btn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3);
}

.ai-send-btn:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

.ai-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (min-width: 600px) {
  .ai-key-row {
    flex-direction: row;
  }
  .ai-key-row input {
    flex: 1;
  }
  .ai-setup-card {
    padding: 36px 32px;
  }
  .ai-chat-wrap {
    min-height: 480px;
  }
}

/* ===== AI premium + markdown ===== */
.ai-chat-wrap {
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  max-height: 72vh;
}

.ai-chat-toolbar {
  padding: 14px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.ai-messages {
  padding: 24px 18px;
  gap: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ai-avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.35);
}

.ai-msg-bot .ai-bubble {
  border-radius: 4px 18px 18px 18px;
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  line-height: 1.65;
}

.ai-msg-user .ai-bubble {
  border-radius: 18px 4px 18px 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.25);
}

.ai-bubble strong {
  font-weight: 700;
  color: inherit;
}

.ai-msg-bot .ai-bubble strong {
  color: var(--blue-dark);
}

.ai-bubble em {
  font-style: italic;
  opacity: 0.95;
}

.ai-bubble .md-code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(15, 23, 42, 0.06);
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 550;
}

.ai-bubble .md-pre {
  margin: 10px 0;
  padding: 12px 14px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
}

.ai-bubble .md-pre code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: none;
  padding: 0;
  color: inherit;
}

.ai-bubble .md-h2 {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--blue-dark);
  margin: 10px 0 6px;
}

.ai-bubble .md-h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 8px 0 4px;
}

.ai-bubble .md-li {
  position: relative;
  padding-left: 16px;
  margin: 4px 0;
}

.ai-bubble .md-li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.ai-input-bar {
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.04);
}

.ai-input-bar input {
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border-color: transparent;
}

.ai-input-bar input:focus {
  background: #fff;
  border-color: var(--orange);
}

.ai-send-btn {
  width: 50px;
  height: 50px;
  border-radius: 14px;
}

.ai-setup-card {
  border-radius: 24px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
  padding: 40px 28px;
}

@media (min-width: 600px) {
  .ai-messages {
    padding: 28px 24px;
  }
  .ai-msg {
    max-width: 85%;
  }
}

/* ===== AI Chat — Premium redesign ===== */
.ai-setup {
  max-width: 480px;
  margin: 0 auto 48px;
}

.ai-setup-card {
  background: linear-gradient(165deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid rgba(249, 115, 22, 0.12);
  border-radius: 28px;
  padding: 44px 32px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.02),
    0 20px 50px rgba(15, 23, 42, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ai-setup-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ai-setup-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.ai-setup-card h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
  margin-bottom: 12px;
}

.ai-setup-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}

.ai-key-row input {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 14.5px;
  transition: 0.25s ease;
}

.ai-key-row input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.ai-chat-wrap {
  max-width: 680px;
  margin: 0 auto 56px;
  background: #fff;
  border: none;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 8px 16px rgba(15, 23, 42, 0.04),
    0 24px 56px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 460px;
  max-height: 74vh;
}

.ai-chat-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.ai-chat-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--blue-dark);
  margin-right: auto;
  letter-spacing: -0.01em;
}

.ai-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
  animation: aiPulse 2s ease-in-out infinite;
}

@keyframes aiPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12); }
}

.ai-toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s ease;
}

.ai-toolbar-btn:hover {
  border-color: rgba(249, 115, 22, 0.35);
  color: var(--orange);
  background: var(--orange-soft);
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    radial-gradient(ellipse at top left, rgba(249, 115, 22, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    #f8fafc;
  scroll-behavior: smooth;
}

.ai-msg {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 88%;
  animation: aiMsgIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes aiMsgIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(145deg, #fb923c, #ea580c);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.ai-bubble {
  padding: 14px 17px;
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.ai-msg-bot .ai-bubble {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: var(--blue-dark);
  border-radius: 6px 20px 20px 20px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.ai-msg-user .ai-bubble {
  background: linear-gradient(145deg, #fb923c 0%, #ea580c 100%);
  color: #fff;
  border-radius: 20px 6px 20px 20px;
  border: none;
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3);
  font-weight: 500;
}

.ai-msg-error .ai-bubble {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  box-shadow: none;
}

.ai-bubble strong {
  font-weight: 750;
}

.ai-msg-bot .ai-bubble strong {
  color: #0f172a;
}

.ai-bubble em {
  font-style: italic;
  color: #334155;
}

.ai-msg-user .ai-bubble em,
.ai-msg-user .ai-bubble strong {
  color: #fff;
}

.ai-bubble .md-code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.07);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ai-msg-user .ai-bubble .md-code {
  background: rgba(255, 255, 255, 0.2);
}

.ai-bubble .md-pre {
  margin: 12px 0 6px;
  padding: 14px 16px;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  color: #e2e8f0;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ai-bubble .md-pre code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  background: none;
  padding: 0;
  color: inherit;
}

.ai-bubble .md-h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 12px 0 6px;
  letter-spacing: -0.02em;
}

.ai-bubble .md-h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 10px 0 4px;
}

.ai-bubble .md-li {
  position: relative;
  padding-left: 18px;
  margin: 5px 0;
}

.ai-bubble .md-li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fb923c, #ea580c);
}

.ai-typing {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 16px 18px !important;
  min-width: 64px;
}

.ai-typing span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  animation: aiBounce 1.3s infinite ease-in-out;
}

.ai-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes aiBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.ai-input-bar {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #fff;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.04);
}

.ai-input-bar input {
  flex: 1;
  padding: 15px 18px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  background: #f1f5f9;
  color: var(--blue-dark);
  transition: 0.25s ease;
}

.ai-input-bar input::placeholder {
  color: #94a3b8;
}

.ai-input-bar input:focus {
  background: #fff;
  border-color: rgba(249, 115, 22, 0.45);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1);
}

.ai-send-btn {
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #fb923c, #ea580c);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35);
}

.ai-send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4);
}

.ai-send-btn:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.ai-send-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 600px) {
  .ai-messages {
    padding: 32px 28px;
  }
  .ai-msg {
    max-width: 78%;
  }
  .ai-input-bar {
    padding: 18px 22px;
  }
  .ai-chat-wrap {
    min-height: 520px;
  }
}

/* =========================================================
   PREMIUM GLOBAL UPGRADE
   ========================================================= */

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-soft: #fff7ed;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.03), 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.05), 0 12px 40px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.06), 0 24px 64px rgba(15, 23, 42, 0.1);
    --shadow-orange: 0 8px 28px rgba(249, 115, 22, 0.32);
    --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    background: #f4f6f9;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(249, 115, 22, 0.06), transparent),
        radial-gradient(ellipse 60% 40% at 100% 0%, rgba(59, 130, 246, 0.04), transparent);
}

/* ----- Navbar ----- */
.header {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(16px) saturate(1.4) !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset !important;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06) !important;
}

.logo-title {
    letter-spacing: -0.03em;
    font-weight: 800;
}

.nav a {
    font-weight: 550;
    letter-spacing: -0.01em;
    border-radius: 10px;
    padding: 8px 12px !important;
    transition: var(--transition);
}

.nav a:hover {
    background: rgba(249, 115, 22, 0.06);
    color: var(--orange);
}

.nav a.active {
    color: var(--orange);
    background: rgba(249, 115, 22, 0.08);
}

.nav-btn {
    padding: 10px 20px !important;
    border-radius: 999px !important;
    font-weight: 650 !important;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3) !important;
    background: linear-gradient(145deg, #fb923c, #ea580c) !important;
}

.nav-btn:hover {
    box-shadow: 0 6px 22px rgba(249, 115, 22, 0.4) !important;
    transform: translateY(-1px);
}

/* ----- Buttons ----- */
.btn {
    border-radius: 14px !important;
    font-weight: 650 !important;
    letter-spacing: -0.01em;
    padding: 13px 24px !important;
    transition: var(--transition) !important;
}

.btn-primary {
    background: linear-gradient(145deg, #fb923c, #ea580c) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.3) !important;
    border: none !important;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.4) !important;
}

.btn-secondary {
    background: #fff !important;
    border: 1.5px solid rgba(15, 23, 42, 0.1) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

.btn-secondary:hover {
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: var(--orange) !important;
    transform: translateY(-1px);
}

/* ----- Hero ----- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    letter-spacing: -0.04em !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.hero-desc {
    font-size: 16.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ----- Section ----- */
.section {
    padding: 64px 0;
}

.section-label {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.12em !important;
    color: var(--orange) !important;
    text-transform: uppercase;
}

.section-title {
    letter-spacing: -0.035em !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.section-desc {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--text-muted);
}

.page-header {
    padding: 48px 0 28px;
    position: relative;
}

.page-header .section-title {
    font-size: clamp(28px, 5vw, 36px);
}

/* ----- Cards generic ----- */
.feature-card,
.materi-card,
.why-card,
.contact-card,
.team-card,
.about-intro-card,
.shape-card,
.method-card {
    border-radius: 20px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: var(--shadow) !important;
    transition: var(--transition) !important;
    background: #fff !important;
}

.feature-card:hover,
.materi-card:hover,
.why-card:hover,
a.materi-card:hover,
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md) !important;
    border-color: rgba(249, 115, 22, 0.18) !important;
}

.materi-icon-wrap,
.feature-icon,
.why-icon {
    border-radius: 14px !important;
    background: linear-gradient(145deg, #fff7ed, #ffedd5) !important;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.12);
}

.materi-number {
    font-weight: 800;
    letter-spacing: -0.02em;
    opacity: 0.35;
}

/* ----- Topic list ----- */
.topic-item {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    box-shadow: var(--shadow) !important;
    padding: 18px 20px !important;
    transition: var(--transition) !important;
}

.topic-item:hover {
    transform: translateX(6px);
    border-color: rgba(249, 115, 22, 0.25) !important;
    box-shadow: var(--shadow-md) !important;
}

.topic-num {
    font-weight: 800;
    font-size: 15px;
}

.topic-group-title {
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* ----- Modal premium ----- */
.modal-overlay {
    background: rgba(11, 18, 32, 0.55) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
}

.modal {
    border-radius: 28px !important;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal.modal-materi {
    border-radius: 28px !important;
    max-width: 540px;
}

.modal-close {
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: #f1f5f9 !important;
}

.modal-close:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

.formula-box {
    border-radius: 18px !important;
    background: linear-gradient(155deg, #0f172a 0%, #1e293b 100%) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
}

.formula-box.soft {
    background: linear-gradient(145deg, #fff7ed, #ffedd5) !important;
    box-shadow: none;
}

.example-box {
    border-radius: 16px !important;
    border: 1px solid rgba(15, 23, 42, 0.05) !important;
    background: #f8fafc !important;
}

.example-result {
    border-radius: 12px !important;
    font-weight: 700 !important;
}

.tip-box {
    border-radius: 14px !important;
    background: linear-gradient(145deg, #fffbeb, #fef3c7) !important;
    border: 1px solid #fde68a !important;
}

.method-card {
    border-radius: 14px !important;
}

.step-n {
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

/* ----- Team ----- */
.team-avatar {
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2) !important;
    border: 3px solid #fff !important;
}

.team-card {
    padding: 32px 20px !important;
}

/* ----- Footer ----- */
.footer {
    background: linear-gradient(180deg, #0b1220 0%, #070d16 100%) !important;
    padding: 56px 0 28px !important;
    margin-top: 20px;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    color: var(--orange) !important;
}

.footer-brand strong {
    letter-spacing: -0.02em;
    font-weight: 750;
}

.footer-col h4 {
    letter-spacing: 0.06em;
    font-size: 11.5px;
    text-transform: uppercase;
    opacity: 0.5;
}

/* ----- Back to top ----- */
.back-to-top {
    border-radius: 14px !important;
    background: linear-gradient(145deg, #fb923c, #ea580c) !important;
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.35) !important;
    width: 48px !important;
    height: 48px !important;
    transition: var(--transition) !important;
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ----- CTA / banner sections ----- */
.cta-banner,
.ai-cta,
.banner-cta {
    border-radius: 28px !important;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 50%, #ea580c 160%) !important;
    box-shadow: var(--shadow-lg) !important;
    overflow: hidden;
    position: relative;
}

/* ----- Contact ----- */
.contact-card,
.hubungi-card {
    border-radius: 18px !important;
}

/* ----- Smooth image logo ----- */
.logo-img,
.footer-logo {
    border-radius: 10px;
}

/* ----- Selection ----- */
::selection {
    background: rgba(249, 115, 22, 0.2);
    color: #0f172a;
}

/* ----- Scrollbar soft ----- */
.ai-messages::-webkit-scrollbar,
.modal.modal-materi::-webkit-scrollbar {
    width: 6px;
}
.ai-messages::-webkit-scrollbar-thumb,
.modal.modal-materi::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 99px;
}

@media (min-width: 768px) {
    .section {
        padding: 80px 0;
    }
    .container {
        padding: 0 32px;
    }
}

/* ===== Games listing ===== */
.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.game-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 22px;
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: inherit;
}

a.game-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.2);
}

.game-card-locked {
  opacity: 0.72;
  cursor: default;
}

.game-card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange);
}

.game-card-badge.muted {
  background: #f1f5f9;
  color: #94a3b8;
}

.game-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.15);
}

.game-card-icon.muted {
  background: #f1f5f9;
  color: #94a3b8;
  box-shadow: none;
}

.game-card h3 {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.game-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.game-card-cta {
  font-size: 14px;
  font-weight: 650;
  color: var(--orange);
}

.game-card-cta.muted {
  color: #94a3b8;
}

@media (min-width: 700px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== Quiz ===== */
.quiz-wrap {
  max-width: 560px;
  margin: 0 auto 48px;
  background: #fff;
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.05),
    0 16px 48px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.quiz-panel {
  padding: 36px 28px;
  text-align: center;
}

.quiz-start-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.2);
}

.quiz-panel h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.quiz-panel > p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quiz-progress-bar {
  flex: 1;
  height: 8px;
  background: #f1f5f9;
  border-radius: 99px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #fb923c, #ea580c);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-progress-text {
  font-size: 13px;
  font-weight: 650;
  color: var(--text-muted);
  min-width: 48px;
}

.quiz-meta {
  text-align: left;
  margin-bottom: 12px;
}

.quiz-subject {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 4px 12px;
  border-radius: 999px;
}

.quiz-question {
  text-align: left !important;
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.4 !important;
  margin-bottom: 22px !important;
  color: var(--blue-dark);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  border-radius: 14px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--blue-dark);
  transition: var(--transition);
  text-align: left;
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
}

.quiz-option:disabled {
  cursor: default;
}

.quiz-option-letter {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--text-muted);
}

.quiz-option-text {
  padding-top: 3px;
  line-height: 1.45;
}

.quiz-option.correct {
  border-color: #22c55e;
  background: #ecfdf5;
}

.quiz-option.correct .quiz-option-letter {
  background: #22c55e;
  border-color: #22c55e;
  color: #fff;
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: #fef2f2;
}

.quiz-option.wrong .quiz-option-letter {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.quiz-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border: 4px solid rgba(249, 115, 22, 0.25);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.15);
}

.quiz-score-circle span {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange);
  line-height: 1;
}

.quiz-score-circle small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-score-circle.good {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}
.quiz-score-circle.good span { color: #16a34a; }

.quiz-score-circle.mid {
  border-color: rgba(249, 115, 22, 0.4);
}

.quiz-score-circle.low {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
}
.quiz-score-circle.low span { color: #dc2626; }

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.quiz-result-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (min-width: 480px) {
  .quiz-result-actions {
    flex-direction: row;
    justify-content: center;
  }
  .quiz-result-actions .btn {
    width: auto;
  }
  .quiz-panel {
    padding: 40px 36px;
  }
}

/* ===== Quiz premium modern v2 ===== */
.quiz-wrap {
  max-width: 520px;
  margin: 0 auto 56px;
  background: #fff;
  border-radius: 32px;
  border: none;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 4px 12px rgba(15, 23, 42, 0.03),
    0 24px 64px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.quiz-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #ea580c, #f97316);
  z-index: 2;
}

.quiz-panel {
  padding: 40px 28px 36px;
}

.quiz-start-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
  color: #ea580c;
  box-shadow:
    0 8px 28px rgba(249, 115, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.quiz-panel h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.quiz-panel > p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 28px;
}

.quiz-progress {
  margin-bottom: 24px;
}

.quiz-progress-bar {
  height: 6px;
  background: #f1f5f9;
  border-radius: 99px;
}

.quiz-progress-fill {
  background: linear-gradient(90deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
}

.quiz-progress-text {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #94a3b8;
}

.quiz-subject {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.quiz-question {
  font-size: 19px !important;
  font-weight: 750 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.45 !important;
  margin-bottom: 24px !important;
}

.quiz-options {
  gap: 12px;
}

.quiz-option {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.06);
  background: #f8fafc;
  font-size: 15px;
  gap: 14px;
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-option:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, 0.35);
  background: #fff;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.1);
}

.quiz-option-letter {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.quiz-option.correct {
  border-color: #16a34a;
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  box-shadow: 0 4px 16px rgba(22, 163, 74, 0.15);
  transform: none;
}

.quiz-option.correct .quiz-option-letter {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.35);
}

.quiz-option.wrong {
  border-color: #ef4444;
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.12);
  transform: none;
}

.quiz-option.wrong .quiz-option-letter {
  background: linear-gradient(145deg, #f87171, #ef4444);
  border: none;
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.quiz-score-circle {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border-width: 5px;
  margin-bottom: 24px;
  box-shadow:
    0 12px 40px rgba(249, 115, 22, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.6);
}

.quiz-score-circle span {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.quiz-result-actions {
  gap: 12px;
  margin-top: 12px;
}

.quiz-result-actions .btn {
  border-radius: 14px;
  padding: 14px 28px !important;
}

@media (min-width: 480px) {
  .quiz-panel {
    padding: 48px 40px 44px;
  }
  .quiz-question {
    font-size: 20px !important;
  }
}

/* Games grid premium touch */
.game-card {
  border-radius: 24px;
  padding: 32px 26px;
}

.game-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.game-card h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
}

/* ===== Wordbox ===== */
.wb-wrap {
  max-width: 520px;
  margin: 0 auto 56px;
  background: #fff;
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 24px 64px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  position: relative;
}

.wb-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #fb923c, #ea580c, #f97316);
  z-index: 2;
}

.wb-panel {
  padding: 40px 24px 36px;
  text-align: center;
}

.wb-start-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.22);
}

.wb-panel h2 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.wb-panel > p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto 24px;
}

.wb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.wb-category {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.15);
}

.wb-lives {
  font-size: 16px;
  letter-spacing: 2px;
  color: #ef4444;
}

.wb-boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  min-height: 52px;
}

.wb-box {
  width: 40px;
  height: 48px;
  border-radius: 12px;
  background: #f1f5f9;
  border: 2px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.wb-box.filled {
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  border-color: rgba(249, 115, 22, 0.35);
  color: #ea580c;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.wb-clue {
  font-size: 15px !important;
  font-weight: 550;
  color: var(--blue-dark) !important;
  line-height: 1.55 !important;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 0 0 24px !important;
  max-width: none !important;
  text-align: left;
}

.wb-keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}

.wb-key {
  width: 34px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wb-key:hover:not(:disabled) {
  border-color: rgba(249, 115, 22, 0.4);
  background: #fff7ed;
  color: var(--orange);
  transform: translateY(-2px);
}

.wb-key:disabled {
  cursor: default;
  opacity: 0.85;
}

.wb-key.hit {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  border-color: transparent;
  color: #fff;
}

.wb-key.miss {
  background: #f1f5f9;
  border-color: transparent;
  color: #94a3b8;
  text-decoration: line-through;
}

.wb-status {
  font-size: 13px;
  color: var(--text-muted);
  min-height: 1.2em;
  margin: 0 !important;
}

.wb-result-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin: 0 auto 16px;
}

.wb-result-icon.win {
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.2);
}

.wb-result-icon.lose {
  background: linear-gradient(145deg, #fef2f2, #fee2e2);
  color: #dc2626;
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.15);
}

.wb-result-word {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  color: var(--orange) !important;
  margin: 8px auto 12px !important;
  max-width: none !important;
}

.wb-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.wb-result-actions .btn {
  width: 100%;
  text-align: center;
  justify-content: center;
}

@media (min-width: 480px) {
  .wb-panel { padding: 48px 36px 44px; }
  .wb-box { width: 44px; height: 52px; font-size: 22px; }
  .wb-key { width: 38px; height: 44px; font-size: 14px; }
  .wb-result-actions {
    flex-direction: row;
    justify-content: center;
  }
  .wb-result-actions .btn { width: auto; }
}

/* ===== Navbar fix + premium polish ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(18px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.5) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}

.header-inner {
  height: 68px !important;
  gap: 12px;
}

.logo-link {
  flex-shrink: 0;
  gap: 10px !important;
  min-width: 0;
}

.logo-img {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px;
  object-fit: cover;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.logo-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--blue-dark);
  white-space: nowrap;
}

.logo-subtitle {
  font-size: 9.5px !important;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: var(--text-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--transition);
}

.menu-toggle:hover {
  border-color: rgba(249, 115, 22, 0.3);
  background: var(--orange-soft);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.nav {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  padding: 10px 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  gap: 2px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}

.nav.open {
  display: flex;
}

.nav a {
  padding: 12px 14px !important;
  font-size: 14.5px !important;
  font-weight: 550 !important;
  border-radius: 12px !important;
  color: var(--text);
  transition: var(--transition);
}

.nav a:hover {
  background: rgba(249, 115, 22, 0.07) !important;
  color: var(--orange) !important;
}

.nav a.active {
  background: rgba(249, 115, 22, 0.1) !important;
  color: var(--orange) !important;
  font-weight: 650 !important;
}

.nav-btn {
  margin-top: 8px !important;
  margin-left: 0 !important;
  text-align: center;
  justify-content: center;
  background: linear-gradient(145deg, #fb923c, #ea580c) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-weight: 650 !important;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3) !important;
}

.nav-btn:hover {
  color: #fff !important;
  background: linear-gradient(145deg, #fdba74, #f97316) !important;
}

/* Desktop navbar */
@media (min-width: 960px) {
  .menu-toggle {
    display: none !important;
  }

  .header-inner {
    height: 72px !important;
  }

  .logo-title {
    font-size: 14.5px !important;
  }

  .logo-subtitle {
    max-width: 180px;
    font-size: 10px !important;
  }

  .nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    max-height: none;
    overflow: visible;
    gap: 2px;
  }

  .nav a {
    padding: 8px 10px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }

  .nav-btn {
    margin-top: 0 !important;
    margin-left: 6px !important;
    padding: 9px 16px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
  }
}

/* Medium desktop: slightly tighter */
@media (min-width: 960px) and (max-width: 1100px) {
  .nav a {
    padding: 8px 8px !important;
    font-size: 12.5px !important;
  }
  .logo-subtitle {
    display: none;
  }
}

/* Tablet: keep hamburger to avoid cramping */
@media (max-width: 959px) {
  .menu-toggle {
    display: flex !important;
  }
  .nav {
    display: none;
  }
  .nav.open {
    display: flex;
  }
}

/* ===== Game link buttons + animations ===== */
.game-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-card h3 {
  margin-bottom: 8px;
}

.game-card p {
  flex: 1;
  margin-bottom: 20px;
}

.game-play-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-top: auto;
  position: relative;
  z-index: 2;
  pointer-events: auto !important;
  cursor: pointer;
}

a.game-play-btn:hover {
  transform: translateY(-2px);
}

/* Stagger cards */
.anim-card {
  opacity: 0;
  transform: translateY(18px);
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 0.1s);
}

@keyframes cardIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Page enter */
.page-enter {
  animation: pageIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Panel switch animation (quiz / wordbox) */
.quiz-panel[hidden],
.wb-panel[hidden] {
  display: none !important;
}

.quiz-panel.panel-show,
.wb-panel.panel-show {
  animation: panelIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.quiz-option,
.wb-key,
.wb-box {
  transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.quiz-option.correct,
.quiz-option.wrong {
  animation: optPulse 0.35s ease;
}

@keyframes optPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

.wb-box.filled {
  animation: boxPop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes boxPop {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 1; }
}

.quiz-score-circle,
.wb-result-icon {
  animation: scorePop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes scorePop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== Pilih Kelas ===== */
.kelas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.kelas-card {
  display: block;
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 28px 24px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow);
  transition: var(--transition);
  color: inherit;
  overflow: hidden;
}

.kelas-card.kelas-ready:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(249, 115, 22, 0.25);
}

.kelas-card.kelas-soon {
  opacity: 0.85;
}

.kelas-num {
  display: block;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(249, 115, 22, 0.2);
  line-height: 1;
  margin-bottom: 8px;
}

.kelas-ready .kelas-num {
  color: rgba(249, 115, 22, 0.35);
}

.kelas-card h3 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 8px;
}

.kelas-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.kelas-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.kelas-badge.ready {
  background: var(--orange-soft);
  color: var(--orange);
}

.kelas-badge.soon {
  background: #f1f5f9;
  color: #94a3b8;
}

.coming-soon-box {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  padding: 40px 28px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: var(--shadow-md);
}

.coming-soon-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(145deg, #fff7ed, #ffedd5);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.coming-soon-box h2 {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--blue-dark);
  margin-bottom: 10px;
}

.coming-soon-box p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

@media (min-width: 700px) {
  .kelas-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* AstraEdu logo polish */
.logo-img {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
}

.featured-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.logo-title {
  background: linear-gradient(135deg, #f97316, #ea580c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --------------------------------------------------------------------------
 * AstraEdu — logo transparan & ukuran lebih besar
 * -------------------------------------------------------------------------- */
.logo-img {
  width: 52px !important;
  height: 52px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.footer-logo {
  width: 56px !important;
  height: 56px !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 0 !important;
}

.featured-logo {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
  background: transparent !important;
}

.header-inner {
  height: 76px !important;
}

@media (min-width: 960px) {
  .header-inner {
    height: 80px !important;
  }
  .logo-img {
    width: 56px !important;
    height: 56px !important;
  }
}


/* Logo pixel AstraEdu (logo awal) */
.logo-img {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}
.footer-logo {
  width: 48px !important;
  height: 48px !important;
  object-fit: contain !important;
  border-radius: 10px !important;
}
.featured-logo {
  width: 88px !important;
  height: 88px !important;
  object-fit: contain !important;
}
