/* ==============================================================
   TADARUS TUTOR - STYLESHEET
   Platform Belajar Alquran Privat
   ============================================================== */

/* ==================== ROOT & RESET ==================== */
:root {
    --dried-sage: #5F674F;
    --dried-sage-light: #7A816C;
    --dusty-rose: #D8B6B1;
    --faded-rust: #95524D;
    --warm-oak: #907860;
    --bone: #F3EFE8;
    --bone-dark: #E4DFD5;
    --white: #FFFFFF;
    --text-main: #263026;
    --text-light: #5A5A5A;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.03);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.05);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.07);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.09);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s ease;
    --nav-height: 70px;
    --bottom-nav-height: 0px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);

    /* Variabel yang sebelumnya tidak terdefinisi */
    --charcoal:   #4F5846;
    --ink:        #1A221A;
    --sage-light: rgba(95,103,79,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bone);
    color: var(--text-main);
    margin: 0;
    line-height: 1.7;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
    min-height: 100vh;
    min-height: 100dvh;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==================== SCROLLBAR (WINDOWS) ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bone);
}

::-webkit-scrollbar-thumb {
    background: var(--dried-sage-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dried-sage);
}

/* ==================== NAVBAR - DESKTOP ==================== */
nav {
    background: rgba(229, 223, 214, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(122, 129, 108, 0.08);
    height: var(--nav-height);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 24px rgba(61,61,61,0.08);
    background: rgba(229, 223, 214, 0.98);
    border-bottom-color: rgba(122, 129, 108, 0.15);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 2px solid var(--dried-sage);
    border-radius: 10px;
    transition: var(--transition);
    background: none;
    flex-shrink: 0;
}

.menu-toggle:hover {
    background-color: var(--dried-sage);
}

.menu-toggle:hover span {
    background-color: var(--bone);
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--dried-sage);
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

/* ===== LOGO ===== */
.logo {
    font-weight: 800;
    color: var(--dried-sage);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    height: 100%;
    user-select: none;
}

.logo-text {
    line-height: 1;
    display: flex;
    flex-direction: column;
}

.logo-text .logo-main {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.logo-text .logo-sub {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.65;
    line-height: 1.15;
    margin-top: 1px;
}

.nav-logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

.lang-switch-nav {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dried-sage);
    cursor: pointer;
    display: flex;
    gap: 5px;
    align-items: center;
    user-select: none;
}

.desktop-lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    background: rgba(229, 223, 214, 0.5); /* translucent var(--bone) */
    border: 1px solid rgba(229, 223, 214, 0.8);
    border-radius: 100px;
    padding: 4px;
    margin-right: 15px;
}

.lang-opt {
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lang-opt:hover {
    opacity: 1;
    color: var(--text-main);
}

.lang-opt.active {
    opacity: 1;
    background: var(--white);
    color: var(--dried-sage-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-login {
    background: var(--dried-sage);
    color: var(--bone);
    padding: 0.55rem 1.6rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.88rem;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(122, 129, 108, 0.2);
}

.btn-login:hover {
    background: var(--warm-oak);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(122, 129, 108, 0.3);
}

.register-link {
    font-size: 0.72rem;
    margin-top: 5px;
    color: var(--text-main);
    opacity: 0.6;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.register-link:hover {
    color: var(--faded-rust);
    opacity: 1;
}

/* ==================== SIDEBAR ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 290px;
    height: 100vh;
    height: 100dvh;
    background: #FEFCF9;
    box-shadow: 8px 0 40px rgba(0,0,0,0.13);
    z-index: 2000;
    transition: left 0.38s cubic-bezier(0.34,1.2,0.64,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar.active { left: 0; }

/* ── Sidebar Header / Brand ─────────────────────────────── */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(122,129,108,0.1);
    flex-shrink: 0;
    background: #FEFCF9;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 8px;
}

.sidebar-brand-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--dried-sage);
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 0.68rem;
    color: var(--text-light);
    opacity: 0.75;
    line-height: 1.2;
}

.close-btn {
    background: rgba(122,129,108,0.08);
    border: none;
    color: var(--dried-sage);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
}

.close-btn:hover {
    background: rgba(174,105,101,0.12);
    color: var(--faded-rust);
    transform: rotate(90deg);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ── Sidebar Nav / Scroll Area ──────────────────────────── */
.sidebar-menu {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overscroll-behavior: contain;
}

.sidebar-menu::-webkit-scrollbar { width: 0; }

/* ── Divider Label ──────────────────────────────────────── */
.sidebar-divider-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--warm-oak);
    text-transform: uppercase;
    padding: 1rem 0.5rem 0.35rem;
    opacity: 0.65;
}

.sidebar-divider-label:first-child { padding-top: 0.25rem; }

/* ── Menu Item ──────────────────────────────────────────── */


.menu-item:hover {
    background: rgba(122,129,108,0.08);
    transform: translateX(4px);
    border-color: rgba(122,129,108,0.12);
}

.menu-item:active {
    transform: translateX(2px) scale(0.98);
    background: rgba(122,129,108,0.12);
    transition-duration: 0.08s;
}

.menu-item.active-page {
    background: rgba(122,129,108,0.1);
    border-color: rgba(122,129,108,0.2);
}

.menu-item.active-page .menu-item-title {
    color: var(--dried-sage);
}

.menu-item.active-page .menu-item-icon-wrap {
    background: rgba(122,129,108,0.15);
    color: var(--dried-sage);
}

/* ── Menu Icon Wrap ─────────────────────────────────────── */
.menu-item-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(122,129,108,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--dried-sage);
    transition: background 0.18s ease;
}

.menu-item:hover .menu-item-icon-wrap {
    background: rgba(122,129,108,0.14);
}

/* ── Menu Text ──────────────────────────────────────────── */
.menu-item-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.menu-item-title {
    font-size: 0.87rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-item-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-light);
    opacity: 0.7;
    line-height: 1.3;
}

/* ── Menu Arrow ─────────────────────────────────────────── */
.menu-item-arrow {
    font-size: 1.1rem;
    color: var(--text-light);
    opacity: 0.3;
    transition: opacity 0.18s ease, transform 0.18s ease;
    flex-shrink: 0;
    line-height: 1;
}

.menu-item:hover .menu-item-arrow {
    opacity: 0.7;
    transform: translateX(2px);
}

/* ── CTA Daftar Pengajar ────────────────────────────────── */
.sidebar-cta {
    margin: 0;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(122,129,108,0.08), rgba(165,139,113,0.08));
    border-top: 1px solid rgba(122,129,108,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
}

.sidebar-cta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-cta-text strong {
    font-size: 0.82rem;
    color: var(--dried-sage);
    font-weight: 800;
}

.sidebar-cta-text span {
    font-size: 0.7rem;
    color: var(--text-light);
    opacity: 0.75;
}

.sidebar-cta-btn {
    background: var(--dried-sage);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s cubic-bezier(0.34,1.4,0.64,1),
                box-shadow 0.2s ease;
    flex-shrink: 0;
}

.sidebar-cta-btn:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(122,129,108,0.3);
}

.sidebar-cta-btn:active {
    transform: scale(0.96);
    transition-duration: 0.08s;
}

/* ==================== BOTTOM NAV (MOBILE ONLY) ==================== */
.bottom-nav {
    display: none;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(229, 223, 214, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    padding: 6px 0;
    padding-bottom: calc(6px + var(--safe-bottom));
    border-top: 1px solid rgba(122, 129, 108, 0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 12px;
    transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
}

.bottom-nav-item:active {
    transform: scale(0.85);
}

.bottom-nav-item.active {
    color: #5F674F;
    background: #E5DFD6;
    box-shadow: inset 0 -3px 0 #5F674F;
}

.bottom-nav-item.active .bottom-nav-icon {
    background: transparent;
}

.bottom-nav-icon {
    font-size: 1.3rem;
    width: 42px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.bottom-nav-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--dried-sage);
    transition: var(--transition-fast);
}

.bottom-nav-item.active .bottom-nav-label {
    color: #5F674F;
    font-weight: 700;
}

/* ==================== HERO ==================== */
.hero {
    padding: 80px 8% 80px;
    background: radial-gradient(circle at top right, rgba(209, 169, 165, 0.35) 0%, transparent 45%),
                radial-gradient(circle at bottom left, rgba(165, 139, 113, 0.25) 0%, transparent 35%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dried-sage);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero span.accent {
    color: var(--faded-rust);
    position: relative;
    display: inline-block;
}

.hero span.accent::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(209, 169, 165, 0.3);
    z-index: -1;
    transform: rotate(-1deg);
    border-radius: 4px;
}

.hero-desc {
    color: var(--dried-sage);
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    max-width: 520px;
}

.hero-img {
    width: 100%;
    max-width: 400px;
    display: none;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    animation: floatChar 4s ease-in-out infinite;
}

@keyframes floatChar {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    font-family: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
}

.btn-sage {
    background: var(--dried-sage);
    color: var(--bone);
    box-shadow: 0 4px 14px rgba(122, 129, 108, 0.2);
}

.btn-sage:hover {
    background: var(--warm-oak);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(90, 97, 77, 0.25);
}

.btn-sage:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--dried-sage);
    color: var(--dried-sage);
}

.btn-outline:hover {
    background: var(--dried-sage);
    color: var(--white);
}

/* ==================== SEARCH PAGE ==================== */
.search-header {
    background: var(--dried-sage);
    color: var(--bone);
    padding: 50px 5% 70px;
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

.search-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.search-container {
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.search-input {
    width: 100%;
    padding: 1.1rem 1.5rem;
    border-radius: 50px;
    border: 2px solid transparent;
    background: var(--white);
    font-size: 0.95rem;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--dusty-rose);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.search-popular {
    display: flex;
    gap: 10px;
    justify-content: center;
    font-size: 0.88rem;
    flex-wrap: wrap;
    opacity: 0.9;
}

.search-popular-tag {
    border-bottom: 1px dashed rgba(229,223,214,0.5);
    cursor: pointer;
    transition: var(--transition-fast);
    padding-bottom: 1px;
}

.search-popular-tag:hover {
    opacity: 0.7;
}

.result-bar {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 8% 0;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== TEACHER GRID ==================== */
.teacher-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 20px 8% 80px;
}

.teacher-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1),
                box-shadow 0.3s ease,
                border-color 0.2s ease;
    border: 1.5px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    animation: cardEntrance 0.4s cubic-bezier(0.165,0.84,0.44,1) both;
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.teacher-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 48px rgba(61,61,61,0.11);
    border-color: rgba(122,129,108,0.2);
}

.teacher-card:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: 0.1s;
}

.profile-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid var(--bone);
}

.tag-skill {
    background: rgba(122, 129, 108, 0.1);
    color: var(--dried-sage);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    padding: 40px 8% 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--bone);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    margin-top: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--dried-sage);
    margin: 0 0 0.5rem;
    letter-spacing: -0.5px;
}

.section-title p {
    color: var(--warm-oak);
    font-weight: 600;
    margin: 0;
}

/* ==================== FORM ==================== */
.form-container {
    background: var(--white);
    max-width: 900px;
    margin: 40px auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    box-shadow: var(--shadow-xl);
}

.form-info {
    background: var(--dried-sage);
    padding: 3rem;
    color: var(--bone);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-info h2 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
}

.form-info p {
    opacity: 0.9;
    margin: 0;
}

.form-main {
    padding: 2.5rem;
}

.form-main h3 {
    color: var(--dried-sage);
    margin: 0 0 1.5rem;
}

.input-group {
    margin-bottom: 1.1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-main);
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--bone);
    background: #FAFAF8;
    font-family: inherit;
    font-size: 0.92rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--dried-sage);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(122, 129, 108, 0.1);
}

/* ==================== EBOOK & VIDEO ==================== */
.ebook-cover {
    background: var(--bone);
    height: 200px;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
}

.ebook-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .ebook-cover img {
    transform: scale(1.05);
}

.video-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .video-thumb img {
    transform: scale(1.05);
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-play-btn:hover {
    background: var(--white);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn span {
    font-size: 1.3rem;
    color: var(--dried-sage);
    margin-left: 3px;
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--dried-sage);
    color: var(--bone);
    padding: 3.5rem 8% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h3 {
    color: var(--dusty-rose);
    margin: 0 0 0.8rem;
    font-size: 1.1rem;
}

.footer-column h4 {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.6rem;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    opacity: 0.5;
}

/* ==================== UTILITIES ==================== */
.hidden {
    display: none !important;
}

/* ==============================================================
   DESKTOP MODE (min-width: 901px)
   ============================================================== */
@media (min-width: 901px) {
    .hero-img {
        display: block;
    }

    .bottom-nav {
        display: none !important;
    }

    body {
        --bottom-nav-height: 0px;
    }

    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }
}

/* ==============================================================
   TABLET MODE (601px - 900px)
   ============================================================== */
@media (min-width: 601px) and (max-width: 900px) {
    nav {
        padding: 0 5%;
        height: 65px;
    }

    .hero {
        padding: 60px 5% 60px;
    }

    .hero-img {
        display: block;
        max-width: 300px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-desc {
        font-size: 0.95rem;
    }

    .teacher-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        padding: 20px 5% 80px;
    }

    .form-container {
        grid-template-columns: 1fr 1.5fr;
        margin: 30px 5%;
    }

    .bottom-nav {
        display: block;
    }

    body {
        --bottom-nav-height: calc(62px + var(--safe-bottom));
    }

    footer {
        padding-bottom: calc(2rem + var(--bottom-nav-height));
    }
}

/* ==============================================================
   MOBILE / ANDROID MODE (max-width: 600px)
   ============================================================== */
@media (max-width: 600px) {
    :root {
        --nav-height: 58px;
    }

    body {
        --bottom-nav-height: calc(64px + var(--safe-bottom));
    }

    /* --- Mobile Navbar --- */
    nav {
        padding: 0 4%;
        height: var(--nav-height);
    }

    .nav-left {
        gap: 10px;
    }

    .menu-toggle {
        width: 36px;
        height: 36px;
        padding: 8px;
        border-radius: 8px;
    }

    .nav-logo-img {
        height: 36px;
    }

    .logo-text .logo-main {
        font-size: 1.1rem;
    }

    .logo-text .logo-sub {
        font-size: 0.65rem;
    }

    .nav-right {
        gap: 12px;
    }

    .lang-switch-nav {
        font-size: 0.78rem;
    }

    .btn-login {
        padding: 0.45rem 1rem;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    .register-link {
        font-size: 0.65rem;
    }

    /* --- Mobile Hero --- */
    .hero {
        padding: 40px 5% 40px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 0.92rem;
        margin: 0 auto 1.5rem;
    }

    .hero-img {
        display: block;
        max-width: 260px;
        max-height: 240px;
        object-fit: contain;
        margin: 0 auto;
        order: -1;
    }

    .btn {
        padding: 0.75rem 1.6rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* --- Mobile Bottom Nav --- */
    .bottom-nav {
        display: block;
    }

    .bottom-nav-icon {
        font-size: 1.2rem;
    }

    .bottom-nav-label {
        font-size: 0.6rem;
    }

    /* --- Mobile Search --- */
    .search-header {
        padding: 35px 5% 50px;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .search-header h2 {
        font-size: 1.6rem;
    }

    .search-input {
        padding: 1rem 1.2rem;
        font-size: 0.9rem;
    }

    .search-popular {
        font-size: 0.82rem;
    }

    .result-bar {
        padding: 1rem 5% 0;
    }

    /* --- Mobile Cards --- */
    .teacher-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 15px 5% 30px;
    }

    .teacher-card {
        padding: 1.4rem;
        border-radius: var(--radius-md);
    }

    .teacher-card:hover {
        transform: none;
    }

    .teacher-card:active {
        transform: scale(0.98);
    }

    .profile-img {
        width: 75px;
        height: 75px;
    }

    /* --- Mobile Page Content --- */
    .page-content {
        padding: 20px 5% 40px;
    }

    .section-title {
        margin-top: 25px;
        margin-bottom: 1.5rem;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }

    .info-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
        margin-bottom: 1rem;
    }

    .dev-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .team-card {
        padding: 1.5rem;
        border-radius: var(--radius-md);
    }

    .team-card:hover {
        transform: none;
    }

    /* --- Mobile Form --- */
    .form-container {
        grid-template-columns: 1fr;
        margin: 20px 4%;
        border-radius: var(--radius-lg);
    }

    .form-info {
        padding: 2rem;
    }

    .form-info h2 {
        font-size: 1.5rem;
    }

    .form-main {
        padding: 1.8rem;
    }

    .input-row {
        grid-template-columns: 1fr !important;
    }

    .input-group input,
    .input-group select {
        padding: 0.85rem 0.9rem;
        font-size: 0.9rem;
    }

    /* --- Mobile Footer --- */
    footer {
        padding: 2.5rem 5% 1.5rem;
        padding-bottom: calc(1.5rem + var(--bottom-nav-height));
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .footer-column:first-child {
        grid-column: 1 / -1;
    }

    .footer-column h3 {
        font-size: 1rem;
    }

    .footer-column h4 {
        font-size: 0.88rem;
    }

    .footer-link {
        font-size: 0.82rem;
        margin-bottom: 0.5rem;
    }

    /* --- Mobile Sidebar --- */
    .sidebar {
        width: 82vw;
        max-width: 300px;
        left: -85vw;
        padding: 1.5rem;
    }

    .sidebar-header {
        margin-bottom: 2rem;
    }

    

    .menu-item:hover {
        transform: none;
    }

    .menu-item:active {
        background: var(--bone);
    }

    .menu-item-icon {
        width: 36px;
        height: 36px;
    }

    /* --- Mobile Ebook / Video --- */
    .ebook-cover {
        height: 180px;
        border-radius: var(--radius-sm);
    }

    .video-thumb {
        height: 160px;
    }

    .video-play-btn {
        width: 42px;
        height: 42px;
    }

    .video-play-btn span {
        font-size: 1.1rem;
    }

    /* --- Hide scrollbar on mobile --- */
    ::-webkit-scrollbar {
        width: 0;
        display: none;
    }
}

/* ==============================================================
   EXTRA SMALL PHONES (max-width: 360px)
   ============================================================== */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.7rem;
    }

    .hero-img {
        max-width: 200px;
    }

    .logo-text .logo-main {
        font-size: 1rem;
    }

    .search-header h2 {
        font-size: 1.3rem;
    }

    .bottom-nav-label {
        font-size: 0.55rem;
    }
}

/* ==============================================================
   LANDSCAPE MOBILE
   ============================================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 30px 5% 30px;
    }

    .hero-img {
        max-width: 180px;
    }

    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .hero-desc {
        margin-bottom: 1rem;
    }

    .bottom-nav {
        display: none !important;
    }

    body {
        --bottom-nav-height: 0px;
    }
}

/* ==============================================================
   ANIMATIONS
   ============================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* ==============================================================
   PRINT
   ============================================================== */
@media print {
    nav,
    .sidebar,
    .overlay,
    .bottom-nav,
    footer {
        display: none !important;
    }

    body {
        padding: 0;
        background: white;
    }

    .hero {
        padding: 20px;
    }
}

/* ================================================================
   TEACHER DETAIL MODAL
   ================================================================ */
#teacherDetailModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,61,61,0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeBackdrop 0.22s ease;
}
#teacherDetailModal.active { display: flex; }

.teacher-detail-box {
    background: #FEFCF9;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 32px 80px rgba(61,61,61,0.22);
    animation: slideUpModal 0.36s cubic-bezier(0.34,1.4,0.64,1);
    overflow: hidden;
}
.teacher-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid rgba(61,61,61,0.07);
    position: relative;
}
.td-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(122,129,108,0.25);
    flex-shrink: 0;
}
.teacher-detail-meta { flex: 1; min-width: 0; }
.teacher-detail-meta h3 { font-size: 1rem; font-weight: 700; color: var(--dried-sage); margin: 0 0 3px; }
.teacher-detail-meta p  { font-size: 0.8rem; color: var(--text-light); margin: 0 0 4px; }
.teacher-detail-meta #tdRating { font-size: 0.78rem; color: var(--warm-oak); }

.teacher-detail-body {
    padding: 1rem 1.25rem;
    max-height: 45vh;
    overflow-y: auto;
}
.td-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(61,61,61,0.06);
    gap: 1rem;
}
.td-row:last-of-type { border-bottom: none; }
.td-key { font-size: 0.78rem; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.td-val { font-size: 0.82rem; font-weight: 600; color: var(--ink); text-align: right; }
.td-bio {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.6;
    padding: 0.65rem 0.85rem;
    background: rgba(122,129,108,0.06);
    border-radius: 10px;
    border-left: 3px solid var(--dried-sage);
}

.teacher-detail-footer {
    display: flex;
    gap: 8px;
    padding: 1rem 1.25rem;
    border-top: 1px solid rgba(61,61,61,0.07);
}
.td-wa-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0.65rem 1rem;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.td-wa-btn:hover { background: #1ebe5d; }
.td-close-btn {
    padding: 0.65rem 1.2rem;
    background: var(--bone);
    color: var(--dried-sage);
    border: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 480px) {
    .teacher-detail-box {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
    }
    #teacherDetailModal {
        align-items: flex-end;
        padding: 0;
    }
}

/* ================================================================
   LOADING OVERLAY
   ================================================================ */
.loading-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(254,252,249,0.88);
    backdrop-filter: blur(4px);
    z-index: 9997;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.loading-overlay.active { display: flex; }
.loading-overlay p { font-size: 0.88rem; color: var(--dried-sage); font-weight: 600; }

.loading-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(122,129,108,0.2);
    border-top-color: var(--dried-sage);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   KOMPONEN TAMBAHAN — Kelas, Ebook, Video, Infografis, Quotes,
   Media Modal, Filter, Featured Badge, Stats Team
   ================================================================ */
/* ================================================================
   TAMBAHAN v1.0 — Stats Bar, Filter Chips, Teacher Detail Modal,
   Loading Overlay, Team Stats, Role Selector, Featured Badge
   ================================================================ */

/* ─── STATS BAR ──────────────────────────────────────────────── */
.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(122,129,108,0.12);
    border-bottom: 1px solid rgba(122,129,108,0.12);
    padding: 1.25rem 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 0 2rem;
    flex-shrink: 0;
}

.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--faded-rust);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(122,129,108,0.2);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .stats-bar { padding: 1rem; gap: 0; }
    .stat-item { padding: 0 1rem; }
    .stat-num { font-size: 1.25rem; }
    .stat-label { font-size: 0.68rem; }
}

/* ─── FILTER CHIPS ───────────────────────────────────────────── */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 0.85rem;
    justify-content: center;
}

.chip {
    font-size: 0.78rem;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid rgba(122,129,108,0.25);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.chip:hover { border-color: var(--dried-sage); color: var(--dried-sage); }
.chip.active {
    background: var(--dried-sage);
    color: #fff;
    border-color: var(--dried-sage);
}

/* ─── FEATURED BADGE ─────────────────────────────────────────── */
.featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.65rem;
    background: var(--faded-rust);
    color: white;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
    pointer-events: none;
}

/* ─── AVAIL BADGES ───────────────────────────────────────────── */
.avail-badge {
    font-size: 0.7rem;
    background: rgba(122,129,108,0.1);
    padding: 2px 8px;
    border-radius: 6px;
    color: var(--text-light);
    font-weight: 500;
}

/* ─── TEACHER DETAIL MODAL ───────────────────────────────────── */
#teacherDetailModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61,61,61,0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
#teacherDetailModal.active { display: flex; }

.teacher-detail-meta h3 { font-size: 1rem; font-weight: 700; color: var(--dried-sage); margin: 0 0 3px; }
.teacher-detail-meta p  { font-size: 0.8rem; color: var(--text-light); margin: 0 0 4px; }
#tdRating { font-size: 0.78rem; color: var(--warm-oak); }

.td-row:last-of-type { border-bottom: none; }
.td-wa-btn:hover { background: #1ebe5d; }

@keyframes slideUpModal {
    from { transform: translateY(40px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

@media (max-width: 480px) {
    #teacherDetailModal { align-items: flex-end; padding: 0; }
    .teacher-detail-box {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
    }
}

/* ─── LOADING OVERLAY ────────────────────────────────────────── */
.loading-overlay.active { display: flex; }
.loading-overlay p { font-size: 0.88rem; color: var(--dried-sage); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── TEAM STATS GRID ────────────────────────────────────────── */
.stats-grid-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.stat-team-box {
    background: var(--bone);
    border-radius: 12px;
    padding: 1.1rem;
    text-align: center;
    border: 1px solid rgba(122,129,108,0.12);
}

.stat-team-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--faded-rust);
    line-height: 1.1;
}

.stat-team-lbl {
    font-size: 0.72rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 500;
}

/* ─── ROLE SELECTOR (auth modal register) ────────────────────── */
.role-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1.5px solid #e0dbd4;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    text-align: center;
    line-height: 1.3;
    color: #3D3D3D;
}

.role-btn:hover { border-color: var(--dried-sage); }
.role-btn.active {
    border-color: var(--dried-sage);
    background: rgba(122,129,108,0.07);
    box-shadow: 0 0 0 3px rgba(122,129,108,0.12);
}

/* ─── BTN OUTLINE ────────────────────────────────────────────── */
.btn-outline:hover {
    background: rgba(122,129,108,0.08) !important;
}

/* ==============================================================
   SIDEBAR DIVIDER LABEL
   ============================================================== */

/* ==============================================================
   KELAS PAGE — TAB SWITCHER
   ============================================================== */


.kelas-tab {
    flex: 1;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    background: transparent;
    color: var(--text-light);
    transition: var(--transition);
}

.kelas-tab.active {
    background: var(--dried-sage);
    color: var(--bone);
    box-shadow: 0 4px 12px rgba(122,129,108,0.25);
}
.kelas-panel { display: block; }

.kelas-panel.hidden { display: none; }

.kelas-hero-banner {
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.kelas-hero-icon {
    font-size: 2.8rem;
    line-height: 1;
    flex-shrink: 0;
}

.kelas-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kelas-feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.kelas-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.kelas-feature-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.6rem;
}

.kelas-feature-card h4 {
    color: var(--dried-sage);
    font-size: 0.92rem;
    margin: 0 0 0.4rem;
}
.kelas-feature-card p {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0;
}

.kelas-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0.5rem;
}

.kelas-step {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--dried-sage);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .kelas-feature-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .kelas-hero-banner { padding: 1.2rem; }
    .kelas-tab { font-size: 0.82rem; padding: 0.6rem 0.5rem; }
}

/* ==============================================================
   INFOGRAFIS PAGE
   ============================================================== */
.infografis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.infografis-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.infografis-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}
.infografis-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infografis-placeholder-text {
    text-align: center;
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.6;
}

.infografis-body {
    padding: 1.2rem;
}

.infografis-body h4 {
    color: var(--dried-sage);
    font-size: 0.95rem;
    margin: 0 0 0.4rem;
}
.infografis-body p {
    color: var(--text-light);
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}
.infografis-tag {
    display: inline-block;
    background: rgba(122,129,108,0.1);
    color: var(--dried-sage);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .infografis-grid { grid-template-columns: 1fr; }
}

/* ==============================================================
   QUOTES PAGE
   ============================================================== */
.quotes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.quote-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--dried-sage);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quote-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.quote-card.quote-featured {
    grid-column: 1 / -1;
    background: var(--dried-sage);
    border-left: none;
    text-align: center;
    padding: 2.5rem;
}
.quote-arabic {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dried-sage);
    line-height: 2;
    direction: rtl;
    text-align: right;
}

.quote-featured .quote-arabic {
    color: var(--bone);
    font-size: 1.6rem;
    text-align: center;
}

.quote-translation {
    font-size: 0.88rem;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.7;
}

.quote-featured .quote-translation {
    color: rgba(229,223,214,0.9);
    font-size: 1rem;
}

.quote-source {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--faded-rust);
}

.quote-featured .quote-source {
    color: var(--dusty-rose);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .quotes-grid { grid-template-columns: 1fr; }
    .quote-card.quote-featured { grid-column: 1; padding: 1.8rem 1.4rem; }
    .quote-arabic { font-size: 1.1rem; }
    .quote-featured .quote-arabic { font-size: 1.25rem; }
}

/* sidebar menu styles defined above */


.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1);
    position: relative;
    border: 1.5px solid transparent;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    background: var(--white);
    font-weight: 700;
    color: var(--dried-sage);
}

.kelas-tabs {
    display: flex; gap:8px; margin-bottom:1.5rem; background:var(--white); padding:6px; border-radius:var(--radius-md); box-shadow:var(--shadow-sm);
    gap: 8px;
    margin-bottom: 1.5rem;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ─── Floating Language Button (mobile) ─────────────────────────── */
/* Tombol bahasa mengambang: tersembunyi di desktop, muncul di mobile */
#floatingLangBtn {
    display: none;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    #floatingLangBtn {
        display: flex !important;
    }
}

#langMenu {
    display: none;
    background: var(--bg-card, #fff);
    border: 1px solid var(--bone, #E8E4DC);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

#langMenu.open {
    display: block !important;
}

#langMenu button:hover {
    background: var(--bg-soft, rgba(122,129,108,0.08));
}

#langMenuId.active-lang,
#langMenuEn.active-lang {
    font-weight: 700;
    color: var(--dried-sage);
}

/* ─── prefers-reduced-motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration:   0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration:  0.01ms !important;
    }
}
/* ================================================================
   TADARUS TUTOR — extra.css
   Styling tambahan untuk fitur-fitur baru v1
   ================================================================ */

/* ── Hero Badge ─────────────────────────────────────────────── */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(122,129,108,0.12);
    border: 1px solid rgba(122,129,108,0.25);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--dried-sage);
    letter-spacing: 0.02em;
}

/* ── Trust Bar ───────────────────────────────────────────────── */
.trust-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-top: 1px solid rgba(61,61,61,0.07);
    border-bottom: 1px solid rgba(61,61,61,0.07);
    padding: 14px 24px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 4px 16px;
    white-space: nowrap;
}
.trust-item svg { flex-shrink: 0; stroke: var(--dried-sage); }
.trust-divider {
    width: 1px;
    height: 18px;
    background: rgba(61,61,61,0.12);
}
@media (max-width: 600px) {
    .trust-item { font-size: 0.72rem; padding: 4px 10px; }
    .trust-divider:nth-child(6) { display: none; }
}

/* ── Panduan Usia Grid (Home) ────────────────────────────────── */
.age-guide-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
}

.age-card { background: #FFFFFF; border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.165,0.84,0.44,1); position: relative; overflow: hidden; border: 1px solid rgba(0,0,0,0.04); box-shadow: 0 4px 15px rgba(0,0,0,0.02); text-align: left; display: flex; flex-direction: column; align-items: flex-start; flex: 1 1 175px; max-width: 220px; }
.age-icon-pro { width: 44px; height: 44px; background: rgba(122,129,108,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--dried-sage); }
.age-icon-pro svg { width: 22px; height: 22px; }

.age-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(122,129,108,0.04), transparent);
    opacity: 0;
    transition: opacity 0.2s;
}
.age-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(61,61,61,0.1); border-color: rgba(122,129,108,0.3); }
.age-card:hover::before { opacity: 1; }
.age-emoji { font-size: 2.2rem; margin-bottom: 0.6rem; }
.age-card h4 { margin: 0 0 0.4rem; font-size: 0.92rem; color: var(--charcoal); font-weight: 700; }
.age-card p { margin: 0 0 0.75rem; font-size: 0.78rem; color: var(--text-light); line-height: 1.6; }
.age-tag { display: inline-block; background: rgba(122,129,108,0.1); color: var(--dried-sage); font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; }

/* ── Feature Cards ───────────────────────────────────────────── */
.feature-card { text-align: left; display: flex; flex-direction: column; align-items: flex-start; }
.feature-icon-wrap {
    margin-bottom: 0.85rem;
    width: 48px;
    height: 48px;
    background: rgba(122,129,108,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dried-sage);
}
.feature-card h3 { font-size: 0.95rem; color: var(--dried-sage); margin: 0 0 0.4rem; }
.feature-card p  { font-size: 0.82rem; color: var(--text-light); margin: 0; line-height: 1.65; }

/* ── Panduan Usia Page ───────────────────────────────────────── */

.panduan-card:hover { box-shadow: 0 8px 28px rgba(61,61,61,0.09); }
.panduan-badge {
    display: inline-block;
    background: rgba(122,129,108,0.1);
    color: var(--dried-sage);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}
.panduan-card h3 { font-size: 1.05rem; color: var(--charcoal); margin: 0 0 0.6rem; }
.panduan-card p  { font-size: 0.88rem; color: var(--text-light); line-height: 1.75; margin: 0 0 0.85rem; }
.panduan-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.panduan-tags span { background: rgba(165,139,113,0.1); color: var(--warm-oak); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; }

/* ── Social Icon Buttons (Footer) ───────────────────────────── */
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.12);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    transition: background 0.18s, transform 0.18s;
    text-decoration: none;
}
.social-icon-btn:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }

/* ── Availability Badge on Teacher Card ─────────────────────── */
.avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 8px;
    margin-top: 4px;
}
.avail-open   { background: rgba(34,197,94,0.1);  color: #16a34a; }
.avail-busy   { background: rgba(245,158,11,0.1); color: #b45309; }
.avail-full   { background: rgba(174,105,101,0.1);color: #AE6965; }
.avail-dot { width: 6px; height: 6px; border-radius: 50%; }
.avail-open .avail-dot   { background: #16a34a; }
.avail-busy .avail-dot   { background: #b45309; }
.avail-full .avail-dot   { background: #AE6965; }

/* ── NIM / Verifikasi Badge ──────────────────────────────────── */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(122,129,108,0.1);
    color: var(--dried-sage);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 8px;
    margin-top: 3px;
}

/* ── Review Section in Teacher Detail ───────────────────────── */
.review-item {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(61,61,61,0.06);
}
.review-item:last-child { border-bottom: none; }
.review-stars { color: #F59E0B; font-size: 0.78rem; letter-spacing: 1px; }
.review-text  { font-size: 0.8rem; color: var(--text-light); margin: 2px 0 0; line-height: 1.55; }
.review-author { font-size: 0.7rem; color: var(--text-light); opacity: 0.65; margin-top: 3px; }
.review-empty { font-size: 0.82rem; color: var(--text-light); opacity: 0.6; text-align: center; padding: 1rem 0; }
.write-review-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 0.5rem;
    background: rgba(122,129,108,0.08);
    color: var(--dried-sage);
    border: 1.5px dashed rgba(122,129,108,0.3);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
}
.write-review-btn:hover { background: rgba(122,129,108,0.14); }

/* ── Star Selector in Review Modal ──────────────────────────── */
.star-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #D1D5DB;
    cursor: pointer;
    padding: 0;
    transition: color 0.12s, transform 0.12s;
    line-height: 1;
}
.star-btn:hover, .star-btn.active { color: #F59E0B; transform: scale(1.15); }

/* ── Blog Cards ──────────────────────────────────────────────── */

.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(61,61,61,0.1); }
.blog-card-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(122,129,108,0.15), rgba(165,139,113,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.blog-card-body { padding: 1.1rem; }
.blog-card-cat { font-size: 0.68rem; font-weight: 700; color: var(--dried-sage); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.blog-card-title { font-size: 0.95rem; font-weight: 700; color: var(--charcoal); margin: 0 0 0.45rem; line-height: 1.45; }
.blog-card-excerpt { font-size: 0.8rem; color: var(--text-light); line-height: 1.65; margin: 0 0 0.75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: 0.72rem; color: var(--text-light); opacity: 0.7; }

/* Blog Detail Page -->*/
.blog-detail { background: #fff; border-radius: 18px; padding: 2rem; border: 1.5px solid rgba(61,61,61,0.08); }
.blog-detail-title { font-size: 1.4rem; font-weight: 800; color: var(--charcoal); margin: 0 0 0.75rem; line-height: 1.4; }
.blog-detail-meta { display: flex; align-items: center; gap: 12px; font-size: 0.78rem; color: var(--text-light); margin-bottom: 1.25rem; flex-wrap: wrap; }
.blog-detail-meta span { display: flex; align-items: center; gap: 4px; }
.blog-detail-content { font-size: 0.92rem; color: #444; line-height: 1.85; }
.blog-detail-content h2 { color: var(--dried-sage); font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.blog-detail-content p  { margin: 0 0 1rem; }
.blog-detail-content blockquote { border-left: 4px solid var(--dried-sage); padding: 0.75rem 1.25rem; background: rgba(122,129,108,0.05); border-radius: 0 12px 12px 0; margin: 1rem 0; font-style: italic; color: var(--dried-sage); }

/* ── Google Error Box ────────────────────────────────────────── */
.google-error-box {
    background: rgba(174,105,101,0.1);
    border: 1px solid rgba(174,105,101,0.25);
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
    color: #AE6965;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.5;
}

/* ── Filter chip active state for new filters ────────────────── */
#filterAvailNow.chip-active,
#filterOnlineOnly.chip-active {
    background: var(--dried-sage);
    color: #fff;
    border-color: var(--dried-sage);
}

/* ── Sidebar menu-item tanpa icon (v1) ───────────────────────── */
.menu-item .menu-item-text { padding: 0.1rem 0; }
/* hapus padding kiri yang sebelumnya untuk ikon */
.sidebar-menu .menu-item { gap: 0; padding: 0.9rem 1.25rem; }

/* ── Availability Status Toggle on Pengajar Card ────────────── */
.teacher-status-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* ── Semester / NIM info in detail ──────────────────────────── */
.academic-info {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 6px 0;
}
.academic-chip {
    background: rgba(122,129,108,0.08);
    color: var(--dried-sage);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 8px;
}

/* ── Specialization Tags in Teacher Detail ───────────────────── */
.spec-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.spec-tag { background: rgba(165,139,113,0.1); color: var(--warm-oak); font-size: 0.72rem; font-weight: 600; padding: 3px 10px; border-radius: 8px; }

/* ── Review count badge ──────────────────────────────────────── */
.review-count-badge {
    font-size: 0.72rem;
    color: var(--text-light);
    font-weight: 600;
    margin-left: 4px;
}

/* ================================================================
   MICRO-INTERACTIONS & SMOOTH FEEL — v1.1
   ================================================================ */

/* ── Ripple Effect pada semua tombol ────────────────────────── */
.btn, .btn-sage, .btn-outline, .auth-submit-btn,
.kelas-tab, .chip, .auth-google-btn {
    position: relative;
    overflow: hidden;
}
.btn::after, .btn-sage::after, .btn-outline::after,
.auth-submit-btn::after, .kelas-tab::after,
.chip::after, .auth-google-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.18);
    opacity: 0;
    border-radius: inherit;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.165,0.84,0.44,1), opacity 0.3s ease;
    pointer-events: none;
}
.btn:active::after, .btn-sage:active::after, .btn-outline:active::after,
.auth-submit-btn:active::after, .kelas-tab:active::after,
.chip:active::after, .auth-google-btn:active::after {
    transform: scale(2.5);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* ── Tombol utama — spring lift ─────────────────────────────── */
.btn-sage {
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.22s ease,
                background 0.18s ease !important;
}
.btn-sage:hover  { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 24px rgba(122,129,108,0.3); }
.btn-sage:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s !important; }

.btn-outline {
    transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1),
                box-shadow 0.22s ease,
                border-color 0.18s ease !important;
}
.btn-outline:hover  { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(122,129,108,0.15); }
.btn-outline:active { transform: translateY(0) scale(0.97); transition-duration: 0.08s !important; }

/* ── Chip filter — smooth active state ──────────────────────── */
.chip {
    transition: transform 0.18s cubic-bezier(0.34,1.4,0.64,1),
                background 0.18s ease,
                color 0.18s ease,
                box-shadow 0.18s ease !important;
}
.chip:hover  { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(122,129,108,0.15); }
.chip:active { transform: scale(0.93); }
.chip.active { transform: scale(1.03); }

/* ── Menu item sidebar — slide kanan halus ──────────────────── */
.menu-item {
    transition: transform 0.22s cubic-bezier(0.34,1.4,0.64,1),
                border-color 0.18s ease,
                box-shadow 0.2s ease,
                background 0.18s ease !important;
}
.menu-item:hover  { transform: translateX(6px); }
.menu-item:active { transform: translateX(3px) scale(0.98); transition-duration: 0.08s !important; }

/* ── Auth modal — spring masuk ──────────────────────────────── */
.auth-modal-box {
    animation: authModalIn 0.38s cubic-bezier(0.34,1.35,0.64,1) both !important;
}
@keyframes authModalIn {
    from { opacity: 0; transform: translateY(32px) scale(0.94); }
    to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ── Auth tombol submit — loading state ─────────────────────── */
.auth-submit-btn {
    transition: transform 0.2s cubic-bezier(0.34,1.4,0.64,1),
                opacity 0.18s ease,
                background 0.18s ease !important;
}
.auth-submit-btn:hover  { transform: translateY(-1px); }
.auth-submit-btn:active { transform: scale(0.97); }
.auth-submit-btn:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

/* ── Profile img — smooth load ──────────────────────────────── */
.profile-img {
    transition: transform 0.3s cubic-bezier(0.34,1.4,0.64,1),
                box-shadow 0.25s ease !important;
}
.teacher-card:hover .profile-img {
    transform: scale(1.07);
    box-shadow: 0 8px 24px rgba(122,129,108,0.2);
}

/* ── Card staggered entrance animation ──────────────────────── */
.teacher-card:nth-child(1)  { animation-delay: 0.03s; }
.teacher-card:nth-child(2)  { animation-delay: 0.06s; }
.teacher-card:nth-child(3)  { animation-delay: 0.09s; }
.teacher-card:nth-child(4)  { animation-delay: 0.12s; }
.teacher-card:nth-child(5)  { animation-delay: 0.15s; }
.teacher-card:nth-child(6)  { animation-delay: 0.18s; }
.teacher-card:nth-child(n+7){ animation-delay: 0.21s; }

/* ── Skeleton Loading ────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}
.skeleton {
    background: linear-gradient(90deg, #ede8e1 25%, #e2dbd2 50%, #ede8e1 75%);
    background-size: 400px 100%;
    animation: shimmer 1.4s ease-in-out infinite;
    border-radius: 8px;
}
.skeleton-card {
    background: #fff;
    border-radius: 24px;
    padding: 1.8rem;
    border: 1.5px solid rgba(0,0,0,0.04);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.skeleton-avatar {
    width: 90px; height: 90px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}
.skeleton-line {
    height: 12px;
    margin: 8px auto;
    border-radius: 6px;
}

/* ── Kelas tab — active indicator slide ─────────────────────── */
.kelas-tabs {
    position: relative;
}
.kelas-tab {
    transition: color 0.2s ease, background 0.2s ease,
                transform 0.2s cubic-bezier(0.34,1.4,0.64,1) !important;
}
.kelas-tab:hover  { transform: translateY(-1px); }
.kelas-tab:active { transform: scale(0.96); }

/* ── Footer links hover ─────────────────────────────────────── */
.footer-link {
    transition: color 0.18s ease, transform 0.18s cubic-bezier(0.34,1.4,0.64,1) !important;
    display: inline-block;
}
.footer-link:hover { transform: translateX(4px); }

/* ── Age card entrance ──────────────────────────────────────── */
.age-card {
    animation: cardEntrance 0.4s cubic-bezier(0.165,0.84,0.44,1) both;
}
.age-card:nth-child(1) { animation-delay: 0.05s; }
.age-card:nth-child(2) { animation-delay: 0.10s; }
.age-card:nth-child(3) { animation-delay: 0.15s; }
.age-card:nth-child(4) { animation-delay: 0.20s; }
.age-card:nth-child(5) { animation-delay: 0.25s; }

/* ── Blog card ──────────────────────────────────────────────── */
.blog-card {
    transition: transform 0.25s cubic-bezier(0.34,1.4,0.64,1),
                box-shadow 0.25s ease !important;
}
.blog-card:hover  { transform: translateY(-5px) scale(1.01); }
.blog-card:active { transform: translateY(-1px) scale(0.99); }

/* ── Search input — focus glow ──────────────────────────────── */
.search-input {
    transition: box-shadow 0.25s ease, border-color 0.25s ease !important;
}
.search-input:focus {
    box-shadow: 0 0 0 3px rgba(122,129,108,0.15), 0 4px 16px rgba(122,129,108,0.1);
    border-color: var(--dried-sage) !important;
    outline: none;
}

/* ── Panduan card ────────────────────────────────────────────── */
.panduan-card {
    transition: transform 0.25s cubic-bezier(0.34,1.3,0.64,1),
                box-shadow 0.25s ease !important;
}
.panduan-card:hover { transform: translateY(-3px); }

/* ── Scroll ke atas button (FAB) ────────────────────────────── */
#scrollTopBtn {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom, 0px));
    right: 20px;
    width: 42px;
    height: 42px;
    background: var(--dried-sage);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(122,129,108,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(16px) scale(0.8);
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34,1.4,0.64,1);
    pointer-events: none;
}
#scrollTopBtn.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
#scrollTopBtn:hover  { transform: translateY(-2px) scale(1.08); }
#scrollTopBtn:active { transform: scale(0.92); }

@media (min-width: 901px) {
    #scrollTopBtn { bottom: 28px; }
}

/* ── Loading overlay fade out ───────────────────────────────── */
.loading-overlay {
    transition: opacity 0.4s ease !important;
}
.loading-overlay.fade-out {
    opacity: 0 !important;
    pointer-events: none;
}



/* ================================================================
   PROFIL — Biodata Siswa & Pengajar
   ================================================================ */

/* ── Header Kartu Profil ──────────────────────────────────── */
.profile-header-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1.5px solid rgba(61,61,61,0.07);
    box-shadow: 0 4px 20px rgba(61,61,61,0.06);
    position: relative;
    flex-wrap: wrap;
}

.profile-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(122,129,108,0.2);
}

.profile-avatar-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 50%;
    border: 2px solid rgba(122,129,108,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.profile-header-info {
    flex: 1;
    min-width: 0;
}

.profile-status-chip {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
}
.chip-active  { background: rgba(34,197,94,0.1);  color: #16a34a; }
.chip-pending { background: rgba(245,158,11,0.1); color: #b45309; }
.chip-busy    { background: rgba(245,158,11,0.1); color: #b45309; }
.chip-full    { background: rgba(174,105,101,0.1);color: #AE6965; }

.profile-edit-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(122,129,108,0.08);
    color: var(--dried-sage);
    border: 1.5px solid rgba(122,129,108,0.2);
    border-radius: 10px;
    padding: 0.45rem 0.9rem;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s cubic-bezier(0.34,1.4,0.64,1);
}
.profile-edit-btn:hover {
    background: rgba(122,129,108,0.15);
    transform: translateY(-1px);
}

/* ── Profile Tabs ─────────────────────────────────────────── */
.profile-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 1rem;
    background: #fff;
    padding: 5px;
    border-radius: 14px;
    border: 1.5px solid rgba(61,61,61,0.07);
}

.profile-tab {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, transform 0.18s cubic-bezier(0.34,1.4,0.64,1);
}
.profile-tab:hover { background: rgba(122,129,108,0.07); }
.profile-tab.active {
    background: var(--dried-sage);
    color: #fff;
    transform: scale(1.02);
}

/* ── Profile Panel ────────────────────────────────────────── */
.profile-panel {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    border: 1.5px solid rgba(61,61,61,0.07);
    box-shadow: 0 4px 16px rgba(61,61,61,0.05);
}

/* ── Info Grid (View Mode) ────────────────────────────────── */
.profile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.profile-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.profile-info-item label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.7;
}
.profile-info-item span {
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}
.profile-info-full { grid-column: 1 / -1; }

/* ── Form Grid (Edit Mode) ────────────────────────────────── */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.profile-form-full { grid-column: 1 / -1; }

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.profile-form-group label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-light);
}
.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    padding: 0.65rem 0.85rem;
    border: 1.5px solid rgba(61,61,61,0.12);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-main);
    background: var(--bone);
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    resize: none;
}
.profile-form-group input:focus,
.profile-form-group select:focus,
.profile-form-group textarea:focus {
    border-color: var(--dried-sage);
    box-shadow: 0 0 0 3px rgba(122,129,108,0.12);
    background: #fff;
}

/* ── Keamanan ─────────────────────────────────────────────── */
.profile-security-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.profile-security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(61,61,61,0.07);
    gap: 1rem;
}
.profile-security-item:last-child { border-bottom: none; }
.profile-security-item > div strong {
    font-size: 0.88rem;
    color: var(--text-main);
    display: block;
    margin-bottom: 2px;
}
.profile-security-item > div p {
    font-size: 0.78rem;
    color: var(--text-light);
    margin: 0;
}
.profile-verified-chip {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(34,197,94,0.1);
    color: #16a34a;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Status Mentor Toggle ─────────────────────────────────── */
.mentor-status-toggle {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(61,61,61,0.08);
}
.status-toggle-btn {
    padding: 0.55rem 1.1rem;
    border: 1.5px solid rgba(61,61,61,0.12);
    border-radius: 10px;
    background: var(--bone);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.34,1.4,0.64,1);
}
.status-toggle-btn:hover { transform: translateY(-1px); border-color: var(--dried-sage); }
.status-toggle-btn.active {
    background: var(--dried-sage);
    color: #fff;
    border-color: var(--dried-sage);
    transform: scale(1.04);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
    .profile-header-card { flex-direction: column; text-align: center; padding: 1.25rem; }
    .profile-edit-btn { position: static; margin-top: 0.5rem; width: 100%; justify-content: center; }
    .profile-info-grid, .profile-form-grid { grid-template-columns: 1fr; }
    .profile-info-full, .profile-form-full { grid-column: 1; }
    .profile-tabs { flex-direction: column; }
    .profile-tab { text-align: left; }
}

/* ── Foto Profil — overlay klik ──────────────────────────── */
.profile-avatar-wrap {
    position: relative;
}
.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.profile-avatar-wrap:hover .profile-avatar-overlay {
    opacity: 1;
}
.profile-avatar-wrap:hover .profile-avatar-lg {
    filter: brightness(0.85);
}

/* ═══════════════════════════════════════════════════
   VISUAL IMPROVEMENTS — Tadarus Quran Tutor
   ═══════════════════════════════════════════════════ */

/* ── Tombol Mulai Belajar di navbar ──────────────── */
#btnMulaiBelajar {
    display: none;
    background: var(--dried-sage);
    color: #fff;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
#btnMulaiBelajar:hover { background: var(--warm-oak); transform: translateY(-1px); }
@media (min-width: 640px) { #btnMulaiBelajar { display: inline-block; } }

/* ── Hero CTA wrapper ───────────────────────────── */
.hero-cta-wrap { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.75rem; }
.btn-hero-primary {
    font-size: 1rem !important;
    padding: 0.85rem 2rem !important;
    border-radius: 50px !important;
    box-shadow: 0 6px 20px rgba(45,106,79,0.3);
    display: inline-flex !important;
    align-items: center;
    transition: all 0.2s ease !important;
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(45,106,79,0.4) !important;
}
@media (max-width: 500px) {
    .btn-hero-primary { width: 100%; justify-content: center; }
    .hero-cta-wrap { flex-direction: column; }
}

/* ── Hero Stats ─────────────────────────────────── */
.hero-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(122,129,108,0.18);
    border-radius: 16px;
    padding: 0.7rem 1.25rem;
    margin-top: 0.25rem;
}
.hero-stat-item { display:flex; flex-direction:column; align-items:center; padding: 0 1.1rem; }
.hero-stat-num  { font-size:0.92rem; font-weight:800; color:var(--dried-sage); line-height:1.2; }
.hero-stat-lbl  { font-size:0.65rem; color:var(--text-light); margin-top:2px; white-space:nowrap; }
.hero-stat-divider { width:1px; height:28px; background:rgba(122,129,108,0.2); flex-shrink:0; }
@media (max-width:400px) {
    .hero-stats     { padding:0.6rem 0.75rem; }
    .hero-stat-item { padding:0 0.7rem; }
    .hero-stat-num  { font-size:0.78rem; }
}

/* ── Trust / Credibility ────────────────────────── */
.trust-section-full {
    background: linear-gradient(135deg,rgba(27,67,50,0.03) 0%,rgba(209,169,165,0.06) 100%);
    border-top: 1px solid rgba(122,129,108,0.1);
    border-bottom: 1px solid rgba(122,129,108,0.1);
    padding: 4rem 8%;
}
.trust-full-inner  { max-width:1200px; margin:0 auto; }
.trust-full-header { text-align:center; margin-bottom:2.5rem; }
.trust-full-header h2 { font-size:1.5rem; font-weight:800; color:var(--dried-sage); margin-bottom:0.5rem; }
.trust-full-header p  { font-size:0.88rem; color:var(--text-light); opacity:0.8; }
.trust-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(210px,1fr));
    gap: 1.25rem;
}
.trust-full-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(122,129,108,0.12);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}
.trust-full-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27,67,50,0.1);
    border-color: rgba(45,106,79,0.22);
}
.trust-full-icon {
    width:52px; height:52px;
    background: linear-gradient(135deg,rgba(27,67,50,0.08),rgba(45,106,79,0.12));
    border-radius: 14px;
    display: flex; align-items:center; justify-content:center;
    margin-bottom: 1rem;
    color: var(--dried-sage);
}
.trust-full-card h4 { font-size:0.95rem; font-weight:700; color:var(--dried-sage); margin:0 0 0.5rem; }
.trust-full-card p  { font-size:0.82rem; color:var(--text-light); line-height:1.65; margin:0; opacity:0.8; }
@media (max-width:600px) {
    .trust-section-full   { padding:2.5rem 5%; }
    .trust-full-grid      { grid-template-columns:1fr; }
    .trust-full-header h2 { font-size:1.2rem; }
}

/* ── Footer brand column ────────────────────────── */
.footer-brand-col { min-width:200px; }
.footer-brand-col img { display:block; }
.section-title { margin-bottom:2rem !important; }

/* ── Modern Language FAB ────────────────────────── */
.lang-fab-container {
    position: fixed;
    bottom: 85px;
    right: 20px;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
@media (min-width: 768px) {
    .lang-fab-container { bottom: 30px; right: 30px; }
}
.lang-fab-btn {
    padding: 0 16px;
    height: 48px;
    border-radius: 24px;
    background: #fff;
    color: var(--text-main);
    border: 1px solid rgba(122,129,108,0.2);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: inherit;
}
.lang-fab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--dried-sage);
}
.lang-fab-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: bottom right;
    border: 1px solid rgba(122,129,108,0.1);
}
.lang-fab-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.lang-opt-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
.lang-opt-btn:hover {
    background: rgba(122,129,108,0.08);
    color: var(--dried-sage);
}
.lang-opt-btn.active-lang {
    background: rgba(122,129,108,0.15);
    color: var(--dried-sage);
}
.lang-flag {
    font-size: 1.25rem;
}

/* ═══════════════════════════════════════════════════
   PREMIUM VISUAL UPGRADES (GLASSMORPHISM & GLOW)
   ═══════════════════════════════════════════════════ */

/* 1. Navbar Glassmorphism */
nav.scrolled {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 30px rgba(122,129,108, 0.08) !important;
    border-bottom: 1px solid rgba(122,129,108, 0.1) !important;
}

/* 2. Hero Primary Button Glow & Pulse */
.btn-hero-primary {
    background: linear-gradient(135deg, var(--dried-sage), #626856) !important;
    box-shadow: 0 8px 24px rgba(122,129,108, 0.3) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    position: relative;
    overflow: hidden;
}
.btn-hero-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg) translateY(-50%);
    transition: all 0.6s ease;
    opacity: 0;
}
.btn-hero-primary:hover::after {
    opacity: 1;
    transform: rotate(30deg) translateY(50%);
}
.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 12px 32px rgba(122,129,108, 0.45) !important;
}

/* 3. Unified Card System */
.teacher-card, .blog-card, .ebook-card, .video-card, .info-card, .team-card, .infografis-card, .quote-card {
    background: var(--white) !important;
    border-radius: 18px !important;
    border: 1px solid rgba(95,103,79,0.10) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.teacher-card:hover, .blog-card:hover, .ebook-card:hover, .video-card:hover, .info-card:hover, .team-card:hover, .infografis-card:hover, .quote-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(95,103,79, 0.08) !important;
    border-color: rgba(95,103,79, 0.2) !important;
}

/* 4. Bottom Nav Glassmorphism (Mobile) */
.bottom-nav {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(122,129,108, 0.1) !important;
    box-shadow: 0 -4px 24px rgba(0,0,0, 0.04) !important;
}

/* ═══════════════════════════════════════════════════
   FOOTER LAYOUT FIX
   ═══════════════════════════════════════════════════ */
footer {
    background: var(--dried-sage);
    padding: 4rem 8% 2rem;
    color: #fff;
    margin-top: 5rem;
    border-radius: 24px 24px 0 0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: space-between;
}
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    min-width: 200px;
}
.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--bone);
    letter-spacing: 0.5px;
}
.footer-link {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    align-self: flex-start;
}
.footer-link:hover {
    color: #fff;
    transform: translateX(4px);
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}
.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}
@media (max-width: 768px) {
    footer { padding: 3rem 5% 2rem; border-radius: 20px 20px 0 0; }
    .footer-content { flex-direction: column; gap: 2rem; }
    .footer-bottom { margin-bottom: 80px; } /* Memberi ruang untuk bottom nav di HP */
}
/* ================================================================
   TADARUS TUTOR — AUTH MODAL STYLES
   Tambahkan ke bagian bawah assets/css/style.css
   ================================================================ */

/* ─── MODAL BACKDROP ─────────────────────────────────────────── */
#authModal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeBackdrop 0.25s ease;
}
#authModal.active {
    display: flex;
}
@keyframes fadeBackdrop {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── MODAL BOX ──────────────────────────────────────────────── */
.auth-modal-box {
    background: #FEFCF9;
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 64px rgba(61,61,61,0.18), 0 4px 12px rgba(61,61,61,0.08);
    animation: slideUpModal 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}
.auth-modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7A816C, #AE6965, #7A816C);
}
@keyframes slideUpModal {
    from { transform: translateY(28px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1);       opacity: 1; }
}

/* ─── HEADER ─────────────────────────────────────────────────── */
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}
.auth-modal-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.auth-modal-title .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #7A816C, #AE6965);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.auth-modal-title h2 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #3D3D3D;
    margin: 0;
    line-height: 1.2;
}
.auth-modal-title p {
    font-size: 0.72rem;
    color: #888;
    margin: 0;
    font-weight: 500;
}
.auth-close-btn {
    background: #f0ede8;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}
.auth-close-btn:hover {
    background: #e5dfd6;
    transform: rotate(90deg);
}

/* ─── TABS ───────────────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    background: #f0ede8;
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 1.5rem;
    gap: 3px;
}
.auth-tab-btn {
    flex: 1;
    padding: 0.5rem 0;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #888;
    cursor: pointer;
    transition: all 0.22s ease;
    font-family: inherit;
}
.auth-tab-btn.active {
    background: #FEFCF9;
    color: #7A816C;
    box-shadow: 0 2px 8px rgba(61,61,61,0.1);
}

/* ─── FORMS ──────────────────────────────────────────────────── */
.auth-form {
    display: none;
}
.auth-form.active {
    display: block;
}

/* ─── GOOGLE BUTTON ──────────────────────────────────────────── */
.auth-google-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    background: #fff;
    border: 1.5px solid #e0dbd4;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3D3D3D;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-bottom: 1rem;
}
.auth-google-btn:hover {
    border-color: #7A816C;
    background: #f7f5f1;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122,129,108,0.15);
}
.auth-google-btn svg {
    flex-shrink: 0;
}

/* ─── DIVIDER ────────────────────────────────────────────────── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #b0a898;
    font-size: 0.75rem;
    font-weight: 500;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e8e3db;
}

/* ─── FIELD ──────────────────────────────────────────────────── */
.auth-field {
    margin-bottom: 0.85rem;
}
.auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}
.auth-input-wrap {
    position: relative;
}
.auth-field input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e0dbd4;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    color: #3D3D3D;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
}
.auth-field input:focus {
    border-color: #7A816C;
    box-shadow: 0 0 0 3px rgba(122,129,108,0.12);
}
.auth-field input.has-toggle {
    padding-right: 2.5rem;
}
.auth-pass-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    line-height: 1;
    opacity: 0.6;
    transition: opacity 0.2s;
}
.auth-pass-toggle:hover { opacity: 1; }

.auth-field-error {
    display: none;
    font-size: 0.72rem;
    color: #AE6965;
    margin-top: 0.3rem;
    font-weight: 500;
}

/* ─── FORGOT PASSWORD ────────────────────────────────────────── */
.auth-forgot {
    text-align: right;
    margin-top: -0.4rem;
    margin-bottom: 0.85rem;
}
.auth-forgot button {
    background: none;
    border: none;
    font-size: 0.72rem;
    color: #7A816C;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    padding: 0;
}
.auth-forgot button:hover { text-decoration: underline; }

/* ─── SUBMIT BUTTON ──────────────────────────────────────────── */
.auth-submit-btn {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #7A816C, #8E9580);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.22s;
    letter-spacing: 0.02em;
    margin-top: 0.5rem;
}
.auth-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #6B7160, #7A816C);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(122,129,108,0.35);
}
.auth-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── FOOTER TEXT ────────────────────────────────────────────── */
.auth-modal-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.72rem;
    color: #999;
    line-height: 1.5;
}
.auth-modal-footer a {
    color: #7A816C;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.auth-modal-footer a:hover { text-decoration: underline; }

/* ─── LOGGED-IN STATE ────────────────────────────────────────── */
.auth-user-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    transition: background 0.2s;
    position: relative;
}
.auth-user-info:hover { background: rgba(122,129,108,0.1); }
.auth-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(122,129,108,0.3);
}
.auth-username {
    font-size: 0.8rem;
    font-weight: 700;
    color: #3D3D3D;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.auth-chevron {
    color: #7A816C;
    transition: transform 0.2s;
}

/* ─── DROPDOWN ───────────────────────────────────────────────── */
.auth-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #FEFCF9;
    border: 1px solid #e8e3db;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(61,61,61,0.14);
    min-width: 220px;
    z-index: 1000;
    padding: 0.5rem;
    animation: dropdownIn 0.2s ease;
}
.auth-dropdown.active { display: block; }
@keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.auth-dropdown-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.5rem;
}
.auth-dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(122,129,108,0.3);
    flex-shrink: 0;
}
.auth-dropdown-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #3D3D3D;
    margin: 0;
}
.auth-dropdown-email {
    font-size: 0.7rem;
    color: #888;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}
.auth-dropdown-divider {
    border: none;
    border-top: 1px solid #ece8e2;
    margin: 0.3rem 0;
}
.auth-dropdown-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.75rem;
    background: none;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #3D3D3D;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
}
.auth-dropdown-item:hover { background: #f0ede8; }
.auth-logout-btn { color: #AE6965 !important; }
.auth-logout-btn:hover { background: rgba(174,105,101,0.08) !important; }

/* ─── TOAST ──────────────────────────────────────────────────── */
#authToast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #3D3D3D;
    color: #fff;
    padding: 0.65rem 1.25rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    font-family: inherit;
    box-shadow: 0 8px 24px rgba(61,61,61,0.25);
}
#authToast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ─── AUTH CONTAINER (navbar wrapper) ───────────────────────── */
#authContainer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 480px) {
    .auth-modal-box {
        padding: 1.5rem 1.25rem 1.25rem;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        max-height: 92vh;
        margin: auto 0 0;
        animation: slideUpMobile 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    #authModal {
        align-items: flex-end;
        padding: 0;
    }
    @keyframes slideUpMobile {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .auth-username { display: none; }
    .auth-dropdown { right: -60px; }
}


/* ─── ROLE SELECTOR spacing ──────────────────────────────────── */
#roleSelector {
    margin-bottom: 0.85rem;
}

/* ==================== SKELETON LOADING ==================== */
.skeleton-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    border: 1.5px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.skeleton-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #e2e5e7;
    margin-bottom: 1rem;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #eff1f3 4%, #e2e5e7 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}
.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: #eff1f3;
    margin-bottom: 8px;
    animation: shimmer 1.5s infinite linear;
    background: linear-gradient(to right, #eff1f3 4%, #e2e5e7 25%, #eff1f3 36%);
    background-size: 1000px 100%;
}
.skeleton-line.title { width: 60%; height: 20px; margin-bottom: 12px; }
.skeleton-line.tag { width: 40%; height: 24px; border-radius: 12px; margin-bottom: 12px; }
.skeleton-line.text { width: 80%; }
.skeleton-line.text:last-child { width: 50%; }

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

/* ==================== PREMIUM CARD STYLES ==================== */
/* Unified in block 3 above */

.profile-img {
    border: 3px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}
.avail-badge {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.avail-open {
    background: rgba(37, 211, 102, 0.12) !important;
    color: #128C7E !important;
}
.avail-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 4px currentColor;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Unified in block 3 above */

/* ==================== PREMIUM SIDEBAR MENU ==================== */
.menu-item {
    background: transparent !important; /* Hilangkan kotak putih agar menyatu dengan sidebar */
    border: none !important; /* Hilangkan garis pinggir */
    margin: 0 0.5rem !important; /* Beri jarak dari tepi layar */
    padding: 0.85rem 1rem !important;
    border-radius: 12px !important;
}

.menu-item:hover {
    background: rgba(122,129,108,0.06) !important;
    transform: translateX(4px) !important;
}

.menu-item.active-page {
    background: rgba(122,129,108,0.08) !important;
    position: relative;
}

/* Garis aksen hijau di sebelah kiri saat aktif */
.menu-item.active-page::before {
    content: '';
    position: absolute;
    left: -0.5rem; /* Tarik ke paling pinggir sidebar */
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--dried-sage);
    border-radius: 0 4px 4px 0;
}

.menu-item.active-page .menu-item-icon-wrap {
    background: var(--dried-sage) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(122,129,108,0.3);
}

.menu-item.active-page .menu-item-title {
    font-weight: 800 !important;
}

/* ==================== GRID UNIFORMITY FIX ==================== */
/* Memastikan tinggi semua kartu sama rata dalam satu baris (row) */
.teacher-card, .ebook-card, .video-card, .team-card, .infografis-card, .quote-card, .blog-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    justify-content: space-between !important;
}

/* Memastikan konten membentang ke bawah agar tombol aksi sejajar di dasar */
.ebook-body, .video-body, .infografis-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

.ebook-actions, .video-actions, .infografis-actions {
    margin-top: auto !important;
}

/* ==================== NEW PREMIUM CONTENT STYLES ==================== */

/* ── E-Book Card Enhancements ── */
.ebook-cover {
    position: relative;
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ebook-cover img.ebook-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ebook-card:hover .ebook-cover img.ebook-cover-img {
    transform: scale(1.08);
}
.ebook-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.ebook-card:hover .ebook-cover::after {
    opacity: 1;
}

/* Badge (Gratis / Berbayar) */
.ebook-badge-free, .ebook-badge-paid {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.ebook-badge-free {
    background: var(--dried-sage);
    color: #fff;
}
.ebook-badge-paid {
    background: var(--warm-oak);
    color: #fff;
}

/* Body / Konten */
.ebook-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
.ebook-category {
    background: rgba(122,129,108, 0.1);
    color: var(--dried-sage);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    align-self: flex-start;
}
.ebook-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 6px;
    line-height: 1.3;
}
.ebook-author {
    font-size: 0.85rem;
    color: var(--dried-sage);
    font-weight: 600;
    margin-bottom: 8px;
}
.ebook-body p {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 16px;
}

/* Meta Data (PDF, Halaman, Rating) */
.ebook-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.ebook-meta span {
    font-size: 0.75rem;
    color: #6B6B6B;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Actions (Tombol Baca & Unduh) */
.ebook-actions {
    display: flex;
    gap: 10px;
    margin-top: auto !important;
}
.ebook-btn-read, .ebook-btn-dl {
    flex: 1;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}
.ebook-btn-read {
    background: var(--dried-sage);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(122,129,108,0.2);
}
.ebook-btn-read:hover {
    background: #6a705e;
    transform: translateY(-2px);
}
.ebook-btn-dl {
    background: rgba(122,129,108,0.1);
    color: var(--dried-sage);
}
.ebook-btn-dl:hover {
    background: rgba(122,129,108,0.15);
}

/* ── Video Card Enhancements ── */
.video-card {
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(122,129,108,0.08) !important;
    overflow: hidden;
    position: relative;
}
.video-thumb-wrap {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.video-thumb-wrap img {
    transition: transform 0.5s ease;
}
.video-card:hover .video-thumb-wrap img {
    transform: scale(1.05);
}
.video-play-btn {
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.3s ease !important;
}
.video-card:hover .video-play-btn {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    box-shadow: 0 0 0 8px rgba(255,255,255,0.2);
    animation: pulsePlay 1.5s infinite;
}
@keyframes pulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.video-level-badge {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.2);
}

/* ── Infografis Card Enhancements ── */
.infografis-card {
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(122,129,108,0.08) !important;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease !important;
}
.infografis-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 16px 40px rgba(122,129,108, 0.12) !important;
}
.infografis-img {
    overflow: hidden;
}
.infografis-img img {
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.infografis-card:hover .infografis-img img {
    transform: scale(1.1);
}
.infografis-tag {
    background: rgba(122,129,108, 0.08) !important;
    color: var(--dried-sage) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-weight: 700 !important;
}

/* ── Quote Card Enhancements ── */
.quote-card {
    position: relative;
    border-radius: 20px !important;
    padding: 2.5rem 2rem !important;
    background: linear-gradient(135deg, #ffffff, #fcfcfc) !important;
    border: 1px solid rgba(122,129,108,0.1) !important;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}
.quote-card::before {
    content: '"';
    position: absolute;
    top: -30px;
    left: 15px;
    font-size: 140px;
    font-family: Georgia, serif;
    color: rgba(122,129,108, 0.04);
    z-index: -1;
    line-height: 1;
    transition: color 0.3s ease, transform 0.3s ease;
}
.quote-card:hover::before {
    color: rgba(122,129,108, 0.07);
    transform: scale(1.05) rotate(-3deg);
}
.quote-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 16px 32px rgba(122,129,108, 0.1) !important;
}
.quote-arabic {
    font-size: 1.85rem !important;
    color: var(--dried-sage) !important;
    line-height: 1.8 !important;
    margin-bottom: 1.25rem !important;
    font-weight: 500;
}
.quote-translation {
    font-size: 1.05rem !important;
    font-style: italic;
    color: var(--charcoal) !important;
    line-height: 1.7;
    margin-bottom: 1.25rem !important;
}
.quote-source {
    font-size: 0.85rem !important;
    color: var(--text-light) !important;
    font-weight: 700;
}

/* ── Blog Card Enhancements ── */
.blog-card {
    border-radius: 16px !important;
    background: #fff !important;
    border: 1px solid rgba(122,129,108,0.08) !important;
    overflow: hidden;
}
.blog-card-cover {
    background: linear-gradient(135deg, rgba(122,129,108,0.08), rgba(165,139,113,0.08)) !important;
    transition: background 0.3s ease, transform 0.3s ease;
}
.blog-card:hover .blog-card-cover {
    background: linear-gradient(135deg, rgba(122,129,108,0.15), rgba(165,139,113,0.15)) !important;
}
.blog-card-cover {
    font-size: 4rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
}
.blog-card-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
}

/* ==================== PREMIUM SIDEBAR MENU ==================== */
.sidebar-menu .menu-item {
    background: transparent !important; /* Hilangkan kotak putih */
    border: none !important;
    margin: 0.2rem 0 !important; /* Hilangkan margin kiri-kanan agar tidak menjorok ke dalam */
    padding: 0.85rem 1.25rem !important; /* Padding pas agar kotak hover proporsional */
    border-radius: 12px !important;
    width: 100% !important; /* Penuhi lebar kontainer */
    display: flex !important;
    align-items: center !important;
    gap: 16px !important; /* MEMBERIKAN JARAK LEBAR ANTARA IKON DAN TEKS */
    box-sizing: border-box !important;
}

/* Memastikan background dan ukuran Ikon seragam semua agar Teks rata (TIDAK BERGELOMBANG) */
.sidebar-menu .menu-item .menu-item-icon-wrap {
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: rgba(122,129,108,0.07) !important; /* Latar abu-abu untuk SEMUA ikon */
    border-radius: 10px !important;
    color: var(--dried-sage) !important;
}

/* Mengatur wadah teks agar pas berada di sebelahnya */
.sidebar-menu .menu-item .menu-item-text {
    flex: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: left !important;
}

.sidebar-menu .menu-item:hover {
    background: rgba(122,129,108,0.06) !important;
    transform: translateX(4px) !important;
}

.sidebar-menu .menu-item.active-page {
    background: rgba(122,129,108,0.08) !important;
    position: relative;
}

/* Garis aksen hijau di sebelah kiri saat aktif */
.sidebar-menu .menu-item.active-page::before {
    content: '';
    position: absolute;
    left: 0; /* Menempel di tepi kiri menu-item */
    top: 15%;
    height: 70%;
    width: 4px;
    background: var(--dried-sage);
    border-radius: 0 4px 4px 0;
}

.sidebar-menu .menu-item.active-page .menu-item-icon-wrap {
    background: var(--dried-sage) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(122,129,108,0.3) !important;
}

.sidebar-menu .menu-item.active-page .menu-item-title {
    font-weight: 800 !important;
    color: var(--dried-sage) !important;
}

/* Meratakan teks label kategori (PROGRAM, KONTEN, TENTANG) dengan ikon */
.sidebar-divider-label {
    padding-left: 1.25rem !important; /* Sama dengan padding-left menu-item, sehingga sejajar ikon */
    padding-right: 1.25rem !important;
    margin-top: 0.5rem !important;
}

/* ==================== CONTRAST & TYPOGRAPHY FIX (PROFESSIONAL LOOK) ==================== */

/* 1. Meningkatkan ketajaman (kontras) judul pembatas agar tidak terlalu pudar */
.sidebar-divider-label {
    opacity: 0.95 !important;
    color: #8c735a !important; /* Warna oak yang sedikit digelapkan agar lebih solid */
    letter-spacing: 0.12em !important;
}

/* 2. Mempertajam sub-teks pada menu agar mudah dibaca */
.sidebar-menu .menu-item .menu-item-sub {
    opacity: 0.85 !important;
    color: #555555 !important; /* Abu-abu gelap (bukan pucat) */
    font-weight: 500 !important;
}

/* 3. Membuat judul menu utama lebih pekat dan tegas */
.sidebar-menu .menu-item .menu-item-title {
    color: #2b2b2b !important; /* Hampir hitam sempurna */
}

/* 4. Konsistensi warna pada state aktif */
.sidebar-menu .menu-item.active-page .menu-item-title {
    color: var(--dried-sage) !important;
}
.sidebar-menu .menu-item.active-page .menu-item-sub {
    color: #6a705e !important; /* Sage yang sedikit lebih gelap untuk sub-teks aktif */
    opacity: 0.9 !important;
}

/* ==================== PREMIUM FIXES FOR OTHER CARDS ==================== */

/* ── Video Card Premium ── */
.video-body {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}
.video-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 6px;
    line-height: 1.3;
}
.video-instructor {
    color: var(--dried-sage) !important;
    font-weight: 800 !important;
}
.video-duration {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.video-level-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.level-pemula { background: var(--dried-sage); color: #fff; }
.level-menengah { background: var(--warm-oak); color: #fff; }

/* ── Infografis Card Premium ── */
.infografis-card {
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(122,129,108,0.1) !important;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.infografis-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(122,129,108,0.12);
}
.infografis-img {
    height: 220px;
}
.infografis-body {
    padding: 20px !important;
}
.infografis-body h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2b2b2b;
    margin: 0 0 8px;
}
.infografis-body p {
    font-size: 0.85rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 16px;
}
.infografis-tag {
    background: rgba(122,129,108, 0.1);
    color: var(--dried-sage);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    display: inline-block;
}

/* ── Quotes Card Premium ── */
.quote-card {
    border-radius: 20px !important;
    background: linear-gradient(135deg, #ffffff, #fcfcfc) !important;
    border: 1px solid rgba(122,129,108,0.15) !important;
    padding: 28px !important;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.quote-arabic {
    font-size: 1.8rem;
    line-height: 2.2;
    color: #2b2b2b;
    text-align: right;
    margin-bottom: 16px;
}
.quote-translation {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dried-sage);
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 12px;
}
.quote-source {
    font-size: 0.85rem;
    font-weight: 800;
    color: #8c735a;
}
.quote-featured {
    background: linear-gradient(135deg, var(--dried-sage), #6a705e) !important;
    color: #fff !important;
}
.quote-featured .quote-arabic,
.quote-featured .quote-translation,
.quote-featured .quote-source {
    color: #ffffff !important;
}

/* ── Team Card Premium ── */
.team-card {
    border-radius: 20px !important;
    background: #ffffff !important;
    border: 1px solid rgba(122,129,108,0.1) !important;
    padding: 24px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}
.team-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 32px rgba(122,129,108,0.12);
}

.game-promo-img img {
    width: 90%;
    height: auto;
    transform: translateY(10px);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.breadcrumb a {
    color: var(--dried-sage);
    cursor: pointer;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--faded-rust);
}

/* Game Loading Overlay */
.game-loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.game-loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bone);
    border-top: 4px solid var(--dried-sage);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.game-loading-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dried-sage);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== RESTORED MODAL STYLES (PREMIUM) ==================== */
/* Mengembalikan layout modal yang hilang dan memberikannya efek premium */

/* 1. Modal Overlay & Layout */
.media-modal-overlay,
#teacherDetailModal,
#authModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.media-modal-overlay:not(.hidden),
#teacherDetailModal.active,
#authModal.active {
    display: flex !important;
}

/* 2. Modal Box Premium */
.media-modal-box,
.auth-modal-box,
.teacher-modal-box {
    background: #ffffff;
    border-radius: 24px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes modalPop {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

/* 3. Lebar Spesifik Modal */
.media-modal-box { max-width: 800px; }
.auth-modal-box { max-width: 450px; padding: 24px; }
.teacher-modal-box { max-width: 600px; padding: 0; } 

/* 4. Modal Header */
.media-modal-header,
.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 24px;
    background: #ffffff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.media-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 4px;
}
.media-modal-sub {
    font-size: 0.85rem;
    color: var(--dried-sage);
    font-weight: 700;
}
.media-modal-close,
.auth-close-btn {
    background: rgba(122,129,108,0.1);
    border: none;
    color: var(--text-main);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.media-modal-close:hover,
.auth-close-btn:hover {
    background: rgba(122,129,108,0.2);
    color: #ff4d4f;
}

/* 5. Khusus Media Iframe (Video & PDF) */
.video-player-wrap,
.pdf-viewer-wrap {
    position: relative;
    width: 100%;
    background: #000;
    flex: 1;
    min-height: 60vh;
}
.video-player-wrap iframe,
.pdf-viewer-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.video-modal-meta {
    padding: 16px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555555;
    background: #fcfcfc;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* 6. Form Auth (tambahan untuk styling dasar) */
.auth-modal-title { display: flex; gap: 12px; align-items: center; }
.auth-modal-title h2 { font-size: 1.2rem; font-weight: 800; margin: 0; }
.auth-modal-title p { font-size: 0.8rem; margin: 0; color: var(--text-light); }
.auth-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.auth-tab-btn { flex: 1; padding: 10px; border: none; background: #f0f0f0; border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--text-light); }
.auth-tab-btn.active { background: var(--dried-sage); color: #fff; }
.auth-form { display: none; }
.auth-form.active { display: block; }

/* ==================== PREMIUM FIXES FOR PANDUAN USIA ==================== */

/* ── Panduan Card Premium ── */
.panduan-card {
    border-radius: 20px !important;
    background: linear-gradient(145deg, #ffffff, #fcfcfc) !important;
    border: 1px solid rgba(122,129,108,0.15) !important;
    padding: 28px !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03) !important;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}
.panduan-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 40px rgba(122,129,108,0.12) !important;
    border-color: rgba(122,129,108,0.3) !important;
}

/* Badge Umur */
.panduan-badge {
    background: linear-gradient(135deg, var(--dried-sage), #6a705e) !important;
    color: #ffffff !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(122,129,108,0.2) !important;
    margin-bottom: 1rem !important;
    align-self: flex-start !important;
}

/* Tipografi di dalam kartu */
.panduan-card h3 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #2b2b2b !important;
    margin-bottom: 8px !important;
    line-height: 1.4 !important;
}
.panduan-card p {
    font-size: 0.9rem !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    margin-bottom: 20px !important;
    flex: 1 !important; /* Memastikan tombol selalu ada di bagian bawah */
}

/* Tag/Chips Materi */
.panduan-tags {
    margin-bottom: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}
.panduan-tags span {
    background: #f5f5f5 !important;
    color: #6b6b6b !important;
    border: 1px solid #eaeaea !important;
    padding: 6px 12px !important;
    border-radius: 12px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
}

/* Tombol Aksi */
.panduan-card .btn-sage {
    width: 100% !important;
    padding: 12px 20px !important;
    border-radius: 14px !important;
    font-weight: 800 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 4px 16px rgba(122,129,108,0.2) !important;
    transition: all 0.3s ease !important;
    margin-top: auto !important; /* Dorong tombol ke bawah jika teksnya pendek */
}
.panduan-card .btn-sage:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px rgba(122,129,108,0.3) !important;
}





/* Game Promo Card */
.game-promo-card {
    background: linear-gradient(135deg, var(--bone), #fff);
    border: 2px solid var(--dried-sage);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.game-promo-text {
    flex: 1;
    min-width: 250px;
}
.game-promo-text h3 {
    color: var(--text-dark);
    margin: 0 0 10px;
    font-size: 1.4rem;
}
.game-promo-text p {
    color: var(--text-light);
    margin: 0 0 15px;
    font-size: 0.95rem;
}
.game-promo-img {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    background: var(--dried-sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.game-promo-img img {
    width: 90%;
    height: auto;
    transform: translateY(10px);
}
. b r e a d c r u m b   {   d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   g a p :   8 p x ;   f o n t - s i z e :   0 . 8 5 r e m ;   f o n t - w e i g h t :   6 0 0 ;   c o l o r :   v a r ( - - t e x t - l i g h t ) ;   m a r g i n - b o t t o m :   1 . 5 r e m ;   }   . b r e a d c r u m b   a   {   c o l o r :   v a r ( - - d r i e d - s a g e ) ;   c u r s o r :   p o i n t e r ;   t r a n s i t i o n :   c o l o r   0 . 2 s ;   }   . b r e a d c r u m b   a : h o v e r   {   c o l o r :   v a r ( - - f a d e d - r u s t ) ;   }  
 /* ==============================================================
   NEW STYLES FOR CONTENT CARDS (E-BOOK, VIDEO, INFOGRAFIS, QUOTES)
   ============================================================== */
.ebook-card, .video-card, .infografis-card, .quote-card {
    display: flex !important;
    flex-direction: column !important;
    background: var(--white) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border: 1px solid rgba(95,103,79,0.10) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
    height: 100% !important;
}

nav.bottom-nav {
    top: auto !important;
    bottom: 0 !important;
    height: auto !important;
    justify-content: center !important;
}

.ebook-card:hover, .video-card:hover, .infografis-card:hover, .quote-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 24px rgba(95,103,79, 0.08) !important;
    border-color: rgba(95,103,79, 0.2) !important;
}

/* E-Book */
.ebook-cover {
    height: 200px;
    width: 100%;
    position: relative;
    border-radius: 18px 18px 0 0;
}
.ebook-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ebook-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--dried-sage);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.ebook-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.3;
}
.ebook-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.ebook-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.ebook-rating {
    font-size: 0.9rem;
    color: #f39c12;
    margin-bottom: 1rem;
    font-weight: 600;
}
.ebook-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 1rem;
}
.ebook-pages {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}
.badge-free {
    background: var(--dried-sage);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}
.badge-premium {
    background: var(--faded-rust);
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Video */
.video-card {
    cursor: pointer;
}
.video-thumb {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-card:hover .video-overlay {
    opacity: 1;
}
.play-button {
    color: white;
    width: 60px;
    height: 60px;
    fill: rgba(255,255,255,0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.video-card:hover .play-button {
    transform: scale(1.15);
}
.video-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.video-category {
    font-size: 0.8rem;
    color: var(--faded-rust);
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.video-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    line-height: 1.4;
}
.video-instructor {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 500;
}
.video-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.video-level {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dried-sage);
    padding-top: 1rem;
    border-top: 1px dashed rgba(0,0,0,0.1);
}

/* Infografis */
.infografis-card {
    color: white;
}
.infografis-image {
    height: 250px;
    width: 100%;
}
.infografis-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.infografis-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
    opacity: 0.9;
    font-weight: 700;
}
.infografis-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}
.infografis-description {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.95;
}

/* Quotes */
.quote-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.quote-arabic {
    font-family: "Amiri", "Scheherazade New", "Traditional Arabic", serif;
}
/* ==============================================================
   MISSING GRID DEFINITIONS FOR CARDS
   ============================================================== */
.ebook-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 20px 0 80px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 20px 0 80px;
}

@media (max-width: 768px) {
    .ebook-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 480px) {
    .ebook-grid, .video-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== MAIN WEB POLISH ==================== */
.overlay {
    background: rgba(31, 34, 28, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.sidebar {
    border-right: 1px solid rgba(122,129,108,0.16);
    box-shadow: 16px 0 55px rgba(37, 41, 32, 0.18);
}

.sidebar-header {
    background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.78), transparent 36%),
        linear-gradient(135deg, rgba(122,129,108,0.12), rgba(209,169,165,0.11));
    border-bottom: 1px solid rgba(122,129,108,0.14);
    padding: 1.15rem 1.15rem 1rem;
}

.sidebar-logo {
    background: rgba(255,255,255,0.72);
    box-shadow: 0 5px 14px rgba(61,61,61,0.09);
    padding: 3px;
}

.close-btn {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(122,129,108,0.14);
}

.sidebar-menu {
    gap: 5px;
    padding: 0.9rem 0.85rem;
}

.sidebar-menu .menu-item {
    border: 1px solid transparent;
    border-radius: 14px;
    gap: 10px;
    min-height: 58px;
    padding: 0.75rem 0.85rem;
}

.sidebar-menu .menu-item:hover,
.sidebar-menu .menu-item.active-page {
    background: rgba(122,129,108,0.09);
    border-color: rgba(122,129,108,0.14);
}

.sidebar-divider-label {
    padding-left: 0.35rem;
}

.sidebar-cta {
    background:
        radial-gradient(circle at 20% 10%, rgba(255,255,255,0.8), transparent 34%),
        linear-gradient(135deg, rgba(122,129,108,0.13), rgba(165,139,113,0.12));
    border-top: 1px solid rgba(122,129,108,0.14);
    margin-top: auto;
}

nav {
    box-shadow: 0 1px 0 rgba(122,129,108,0.08);
}

#btnMulaiBelajar,
.btn-login {
    border-radius: 999px;
}

.auth-container {
    flex-direction: row;
    gap: 10px;
}

.register-link {
    background: rgba(255,255,255,0.52);
    border: 1px solid rgba(122,129,108,0.14);
    border-radius: 999px;
    margin-top: 0;
    opacity: 1;
    padding: 0.48rem 0.9rem;
}

.hero {
    background:
        radial-gradient(circle at 84% 16%, rgba(209,169,165,0.32), transparent 34%),
        radial-gradient(circle at 14% 92%, rgba(165,139,113,0.20), transparent 30%),
        linear-gradient(180deg, rgba(255,255,255,0.32), rgba(255,255,255,0));
    padding: 34px 8% 36px;
}

.hero-container {
    align-items: center;
    gap: 44px;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: clamp(2.25rem, 4.2vw, 3.55rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    max-width: 720px;
}

.hero-desc {
    color: rgba(74,78,66,0.88);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 610px;
}

.hero-img {
    display: block;
    max-height: 370px;
    max-width: 460px;
    width: auto;
}

.hero-cta-wrap {
    align-items: center;
}

.btn-hero-secondary {
    background: rgba(255,255,255,0.72);
    border: 1.5px solid rgba(122,129,108,0.24);
    border-radius: 999px;
    color: var(--dried-sage);
    box-shadow: 0 8px 24px rgba(61,61,61,0.06);
}

.btn-hero-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.btn-hero-primary,
.btn-hero-secondary {
    max-width: 100%;
    min-width: 0;
    white-space: normal;
}

.btn-hero-primary svg {
    flex-shrink: 0;
}

.hero-stats {
    box-shadow: 0 10px 30px rgba(61,61,61,0.06);
}

.content-preview-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.empty-state-card {
    align-items: center;
    background: rgba(255,255,255,0.72);
    border: 1.5px dashed rgba(122,129,108,0.28);
    border-radius: 22px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    grid-column: 1 / -1;
    justify-content: center;
    min-height: 170px;
    padding: 1.6rem;
    text-align: center;
}

.empty-state-icon {
    align-items: center;
    background: rgba(122,129,108,0.1);
    border-radius: 999px;
    color: var(--dried-sage);
    display: inline-flex;
    font-size: 1.3rem;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.empty-state-card strong {
    color: var(--dried-sage);
    font-size: 1.05rem;
}

.empty-state-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
    max-width: 520px;
}

.teacher-empty {
    min-height: 220px;
}

@media (max-width: 900px) {
    .hero {
        padding: 34px 6% 38px;
    }

    .hero-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-wrap {
        justify-content: center;
    }

    .hero h1 {
        font-size: clamp(2rem, 6.4vw, 2.85rem);
    }

    .hero-img {
        max-height: 260px;
        max-width: 360px;
        width: auto;
    }
}

@media (max-width: 600px) {
    nav {
        padding: 0 4.5%;
    }

    .nav-right {
        gap: 8px;
    }

    .auth-container {
        display: none;
    }

    .hero {
        padding: 22px 5% 26px;
    }

    .hero-container {
        gap: 14px;
    }

    .hero h1 {
        font-size: clamp(1.72rem, 8vw, 2.12rem);
        margin-bottom: 0.75rem;
    }

    .hero-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        margin-bottom: 1rem;
    }

    .hero-img {
        max-height: 150px;
        max-width: 260px;
        order: -1;
        width: auto;
    }

    .hero-cta-wrap {
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        min-width: 0;
        width: 100%;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0.55rem 0.55rem;
        width: 100%;
    }

    .hero-stat-item {
        padding: 0 0.25rem;
    }

    .hero-stat-num {
        font-size: 0.72rem;
    }

    .hero-stat-lbl {
        font-size: 0.58rem;
    }

    .hero-stat-divider {
        display: none;
    }

    .sidebar {
        left: -92vw;
        max-width: 340px;
        padding: 0;
        width: 88vw;
    }

    .sidebar-header {
        margin-bottom: 0;
    }

    .sidebar-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .sidebar-cta-btn {
        width: 100%;
    }
}

/* ==============================================================
   ENHANCED MOBILE FIXES (max-width: 600px)
   ============================================================== */
@media (max-width: 600px) {
    /* 1. Navbar Fixes */
    .nav-left { gap: 8px; }
    .logo-main { font-size: 1.05rem !important; }
    .nav-logo-img { height: 32px !important; }
    .btn-login, .register-link { font-size: 0.75rem !important; padding: 0.4rem 0.8rem !important; }

    /* 2. Hero & Typography Fixes */
    .hero h1 { font-size: 1.8rem !important; }
    .hero-desc { font-size: 0.85rem !important; }
    .hero-img { max-width: 220px !important; }

    /* 3. Auth Modal Fixes */
    .auth-modal-box { 
        width: 95% !important; 
        max-height: 85vh !important;
        margin: auto;
        padding: 1.2rem !important;
    }
    .auth-modal-header { margin-bottom: 1rem !important; }
    .auth-modal-title h2 { font-size: 1.3rem !important; }
    .auth-field input { padding: 0.75rem 1rem !important; font-size: 0.9rem !important; }
    .auth-submit-btn { padding: 0.8rem !important; font-size: 0.95rem !important; }

    /* 4. Game Promo Card */
    .game-promo-card { 
        flex-direction: column !important; 
        text-align: center; 
        padding: 1.5rem !important; 
    }
    .game-promo-text { padding-right: 0 !important; margin-bottom: 1.5rem; }
    .game-promo-img img { width: 100% !important; max-width: 200px; margin: 0 auto; transform: none !important; }

    /* 5. Grids */
    .teacher-grid, .dev-grid, .form-container { 
        grid-template-columns: 1fr !important; 
        gap: 1rem !important; 
    }
    
    /* 6. Fix any overflowing containers */
    .page-content, .hero-container, .auth-form {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 380px) {
    /* Extra small screens like iPhone SE */
    .logo-text { display: none !important; } /* Hide text, keep icon */
    .btn-login { padding: 0.4rem 0.6rem !important; font-size: 0.7rem !important; }
    .hero h1 { font-size: 1.6rem !important; }
    .auth-modal-box { padding: 1rem !important; }
}


/* Language Switcher Visibility Rules */
@media (max-width: 767px) {
    .desktop-lang-switcher { display: none !important; }
    .lang-fab-container { display: flex !important; }
}
@media (min-width: 768px) {
    .lang-fab-container { display: none !important; }
    .desktop-lang-switcher { display: flex !important; }
}

/* ==================== HOME HERO CHARACTER POLISH ==================== */
.hero {
    overflow: hidden;
}

.hero-img {
    transform-origin: center bottom;
}

@media (min-width: 901px) {
    .hero-container {
        min-height: 470px;
    }

    .hero-img {
        max-height: 430px !important;
        max-width: 500px !important;
    }
}

.btn-hero-primary::after {
    display: none !important;
}

.btn-hero-primary {
    overflow: visible !important;
}

/* FULL WEBSITE UX POLISH 2026-06-10
   Touch comfort, mobile hierarchy, footer clarity, and hidden-sidebar hygiene. */
.sidebar:not(.active) {
    pointer-events: none;
    visibility: hidden;
}

.sidebar.active {
    pointer-events: auto;
    visibility: visible;
}

.menu-toggle,
.close-btn,
.btn-login,
#btnMulaiBelajar,
.register-link,
.lang-opt,
.lang-opt-btn,
.lang-fab-btn,
.sidebar-cta-btn,
.social-icon-btn,
.bottom-nav-item,
.auth-close-btn,
.td-close-btn {
    min-height: 44px;
    touch-action: manipulation;
}

.menu-toggle,
.close-btn,
.social-icon-btn,
.auth-close-btn {
    min-width: 44px;
}

.btn-login,
.sidebar-cta-btn,
.btn-hero-primary,
.btn-hero-secondary,
.hero-cta-wrap .btn {
    min-height: 46px;
}

.desktop-lang-switcher .lang-opt {
    min-height: 40px;
    padding-inline: 0.78rem;
}

.btn-hero-primary,
.btn-hero-secondary,
.btn.btn-sage.btn-hero-primary {
    align-items: center;
    box-sizing: border-box;
    display: inline-flex;
    gap: 0.55rem;
    justify-content: center;
    line-height: 1.18;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal;
}

.hero-cta-wrap {
    align-items: stretch;
}

.age-guide-grid {
    align-items: stretch;
}

.footer-link {
    border-radius: 10px;
    padding: 0.2rem 0;
}

#btnMulaiBelajar,
.register-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
}

.lang-fab-btn {
    min-height: 44px !important;
    min-width: 44px !important;
}

#scrollTopBtn {
    min-height: 44px !important;
    min-width: 44px !important;
}

.social-icon-btn {
    align-items: center;
    justify-content: center;
}

@media (max-width: 767px) {
    .navbar {
        min-height: 64px;
    }

    .menu-toggle {
        height: 44px !important;
        width: 44px !important;
    }

    .btn-login {
        min-height: 40px !important;
        padding: 0.55rem 0.82rem !important;
        font-size: 0.78rem !important;
    }

    .desktop-lang-switcher,
    #btnMulaiBelajar,
    .register-link {
        display: none !important;
    }

    .nav-right,
    .auth-container {
        min-width: 0;
        width: auto;
    }

    .hero {
        padding-top: 1.35rem !important;
        padding-bottom: 2.15rem !important;
    }

    .hero-container {
        gap: 1.25rem !important;
    }

    .hero-content {
        gap: 0.72rem;
    }

    .hero-badge {
        line-height: 1.3;
        max-width: 100%;
        padding: 0.48rem 0.72rem !important;
    }

    .hero h1 {
        margin-bottom: 0.65rem !important;
        text-wrap: balance;
    }

    .hero-desc {
        margin-bottom: 1.05rem !important;
        text-wrap: pretty;
    }

    .hero-cta-wrap {
        gap: 0.7rem !important;
        width: 100%;
    }

    .hero-cta-wrap .btn,
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100% !important;
        min-height: 48px !important;
        padding: 0.82rem 1rem !important;
    }

    .hero-stats {
        margin-top: 0.15rem !important;
        width: 100%;
    }

    .age-guide-grid {
        gap: 0.85rem !important;
    }

    .sidebar {
        width: min(88vw, 340px) !important;
    }

    .sidebar-header {
        min-height: 72px;
    }

    .close-btn {
        height: 44px !important;
        width: 44px !important;
    }

    .sidebar-menu .menu-item {
        min-height: 58px;
        padding-block: 0.72rem !important;
    }

    .sidebar-cta-btn {
        min-height: 44px !important;
        width: 100%;
    }

    footer {
        padding-inline: 5.5% !important;
    }

    .footer-content {
        gap: 1.45rem !important;
    }

    .footer-brand-col {
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding-bottom: 1.1rem;
    }

    .footer-column h4 {
        font-size: 0.92rem !important;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .footer-column:nth-child(4) {
        display: flex;
        flex-wrap: wrap;
        gap: 0.45rem 0.55rem !important;
    }

    .footer-column:nth-child(4) h4 {
        flex-basis: 100%;
    }

    .footer-column:nth-child(4) .footer-link {
        align-items: center;
        background: rgba(255,255,255,0.08);
        display: inline-flex !important;
        min-height: 42px;
        margin: 0 !important;
        padding: 0.45rem 0.72rem !important;
    }

    .social-icon-btn {
        height: 44px !important;
        width: 44px !important;
    }

    .footer-bottom {
        line-height: 1.55;
    }
}

@media (min-width: 768px) {
    .footer-link {
        align-items: center;
        display: inline-flex;
    }
}

#scrollTopBtn {
    height: 56px !important;
    width: 56px !important;
}

/* AUTH + LANGUAGE TOUCH TARGET FIX 2026-06-10 */
.lang-opt-btn,
.auth-tab-btn,
.auth-pass-toggle,
.auth-forgot button,
.auth-modal-footer a,
.auth-google-btn,
.auth-submit-btn {
    touch-action: manipulation;
}

.lang-opt-btn {
    align-items: center;
    display: flex !important;
    min-height: 44px !important;
}

.auth-tab-btn {
    min-height: 44px !important;
    padding: 0.72rem 0.35rem !important;
}

.auth-input-wrap {
    display: flex;
    align-items: center;
}

.auth-field input.has-toggle {
    padding-right: 3.25rem !important;
}

.auth-pass-toggle {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    height: 44px !important;
    justify-content: center;
    min-width: 44px !important;
    right: 0.18rem !important;
}

.auth-forgot button,
.auth-modal-footer a {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    justify-content: center;
    min-height: 44px !important;
}

.auth-forgot button {
    padding: 0.35rem 0.55rem !important;
}

.auth-modal-footer a {
    margin-left: 0.18rem;
    padding: 0.28rem 0.5rem !important;
}

.auth-google-btn,
.auth-submit-btn {
    min-height: 46px !important;
}

@media (max-width: 767px) {
    .lang-fab-menu {
        gap: 4px;
        padding: 6px !important;
    }

    .lang-opt-btn {
        min-height: 44px !important;
        padding: 0.58rem 0.82rem !important;
    }

    .auth-modal-box {
        max-height: calc(100vh - 32px);
        overflow-y: auto;
    }

    .auth-tabs {
        margin-bottom: 1.15rem !important;
    }

    .auth-forgot {
        margin-top: -0.2rem !important;
        margin-bottom: 0.55rem !important;
    }

    .auth-modal-footer {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.1rem 0.2rem;
        margin-top: 0.7rem !important;
    }
}

@media (max-width: 900px) {
    .hero-container {
        gap: 16px !important;
    }

    .hero-img {
        margin: 0 auto 2px !important;
        filter: drop-shadow(0 18px 30px rgba(61, 61, 61, 0.12)) !important;
    }

    .hero-badge {
        margin-bottom: 0.85rem !important;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 26px !important;
    }

    .hero-container {
        gap: 10px !important;
    }

    .hero-img {
        max-width: min(270px, 76vw) !important;
        max-height: 185px !important;
        margin-bottom: 6px !important;
    }

    .hero-content {
        margin-top: 0 !important;
    }

    .hero-badge {
        max-width: 100%;
        justify-content: center;
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        line-height: 1.35;
    }
}

/* ==================== PROFESSIONAL LANGUAGE SWITCHER POLISH ==================== */
.desktop-lang-switcher {
    height: 34px !important;
    padding: 3px !important;
    gap: 2px !important;
    margin-right: 0 !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.62) !important;
    border: 1px solid rgba(122, 129, 108, 0.18) !important;
    box-shadow: 0 8px 22px rgba(71, 76, 62, 0.07) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-shrink: 0;
}

.desktop-lang-switcher .lang-opt {
    min-width: 48px;
    height: 28px;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 0.76rem !important;
    line-height: 1;
    font-weight: 800 !important;
    color: rgba(79, 88, 70, 0.7) !important;
    opacity: 1 !important;
    letter-spacing: 0 !important;
}

.desktop-lang-switcher .lang-opt:hover {
    color: var(--dried-sage) !important;
    background: rgba(122, 129, 108, 0.08) !important;
}

.desktop-lang-switcher .lang-opt.active {
    color: #fff !important;
    background: var(--dried-sage) !important;
    box-shadow: 0 6px 14px rgba(95, 103, 79, 0.22) !important;
}

.lang-fab-container {
    right: max(14px, env(safe-area-inset-right, 0px) + 14px) !important;
    bottom: calc(var(--bottom-nav-height) + 14px) !important;
    z-index: 8990 !important;
}

.lang-fab-btn {
    width: 56px !important;
    height: 42px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    gap: 3px;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--dried-sage) !important;
    border: 1px solid rgba(122, 129, 108, 0.18) !important;
    box-shadow: 0 10px 24px rgba(61, 66, 52, 0.16) !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lang-fab-btn svg {
    width: 15px !important;
    height: 15px !important;
    margin-right: 0 !important;
    stroke-width: 2.2;
}

.lang-fab-btn:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(122, 129, 108, 0.32) !important;
    box-shadow: 0 12px 28px rgba(61, 66, 52, 0.18) !important;
}

.lang-fab-menu {
    min-width: 138px !important;
    right: 0 !important;
    bottom: 50px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(122, 129, 108, 0.14) !important;
    box-shadow: 0 18px 42px rgba(48, 55, 42, 0.18) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.lang-opt-btn {
    min-height: 38px;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    gap: 9px !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
}

.lang-opt-btn:hover {
    background: rgba(122, 129, 108, 0.08) !important;
}

.lang-opt-btn.active-lang {
    background: rgba(122, 129, 108, 0.12) !important;
    color: var(--dried-sage) !important;
}

.lang-flag {
    font-size: 1rem !important;
    line-height: 1;
}

@media (max-width: 767px) {
    .desktop-lang-switcher {
        display: none !important;
    }

    .lang-fab-container {
        display: flex !important;
    }
}

@media (min-width: 768px) {
    .desktop-lang-switcher {
        display: flex !important;
    }

    .lang-fab-container {
        display: none !important;
    }
}

@media (max-width: 380px) {
    .lang-fab-container {
        right: 10px !important;
        bottom: calc(var(--bottom-nav-height) + 10px) !important;
    }

    .lang-fab-btn {
        width: 52px !important;
        height: 40px !important;
    }
}

/* ==================== PROGRAM / CONTENT / ABOUT POLISH ==================== */
.content-empty-state {
    grid-column: 1 / -1;
    min-height: 210px;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(122, 129, 108, 0.16);
    background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(245,242,236,0.9));
    box-shadow: 0 18px 45px rgba(71, 76, 62, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.content-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    background: rgba(122, 129, 108, 0.1);
    color: var(--dried-sage);
    font-size: 1.45rem;
}

.content-empty-state strong {
    display: block;
    color: var(--dried-sage);
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.content-empty-state p {
    max-width: 440px;
    margin: 0;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ==================== FULL UI REVIEW POLISH 2026-06 ==================== */
@media (max-width: 600px) {
    .hero {
        background:
            linear-gradient(180deg, rgba(254,252,249,0.96) 0%, rgba(246,242,235,0.92) 100%),
            radial-gradient(circle at 50% 6%, rgba(216,182,177,0.22), transparent 40%) !important;
        padding: 18px 5% 26px !important;
    }

    .hero-container,
    .hero-content,
    .hero-badge,
    .hero h1,
    .hero-desc,
    .hero-cta-wrap,
    .hero-stats {
        opacity: 1 !important;
        filter: none !important;
    }

    .hero h1 {
        color: #4f5846 !important;
        text-shadow: none !important;
    }

    .hero span.accent {
        color: #95524d !important;
    }

    .hero-desc {
        color: #4f5147 !important;
        font-weight: 600 !important;
    }

    .hero-img {
        opacity: 1 !important;
        filter: drop-shadow(0 14px 24px rgba(61,61,61,0.14)) saturate(1.04) contrast(1.04) !important;
    }

    .hero-badge {
        background: rgba(255,255,255,0.84) !important;
        border-color: rgba(95,103,79,0.26) !important;
        color: #4f5846 !important;
        box-shadow: 0 8px 18px rgba(61,61,61,0.06);
    }

    .hero-stats {
        background: rgba(255,255,255,0.9) !important;
        border-color: rgba(95,103,79,0.18) !important;
        box-shadow: 0 10px 26px rgba(61,61,61,0.08) !important;
    }
}

.search-header {
    background:
        radial-gradient(circle at 18% 20%, rgba(216,182,177,0.16), transparent 30%),
        linear-gradient(135deg, #56604d 0%, #69745d 100%) !important;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12), 0 16px 40px rgba(68,75,60,0.12);
}

.search-header p {
    color: rgba(255,255,255,0.88) !important;
}

.search-popular {
    opacity: 1 !important;
    gap: 9px !important;
}

.search-popular-tag,
.filter-chips .chip,
.search-header .chip {
    background: rgba(255,255,255,0.14) !important;
    border: 1px solid rgba(255,255,255,0.28) !important;
    color: rgba(255,255,255,0.88) !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.search-popular-tag:hover,
.filter-chips .chip:hover,
.search-header .chip:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #fff !important;
}

.filter-chips .chip.active,
.search-header .chip.active,
#filterAvailNow.chip-active,
#filterOnlineOnly.chip-active {
    background: #fff !important;
    border-color: #fff !important;
    color: #4f5846 !important;
    box-shadow: 0 8px 22px rgba(31,34,28,0.16) !important;
}

.search-input {
    color: #263026 !important;
}

.teacher-grid {
    align-items: stretch;
}

.teacher-card {
    border: 1px solid rgba(95,103,79,0.11) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 34px rgba(61,61,61,0.055) !important;
    min-height: 372px;
    position: relative;
}

.teacher-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 82px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(180deg, rgba(95,103,79,0.08), rgba(95,103,79,0));
    pointer-events: none;
}

.teacher-card:hover {
    box-shadow: 0 18px 46px rgba(61,61,61,0.11) !important;
}

.profile-img {
    background:
        radial-gradient(circle at 50% 38%, rgba(255,255,255,0.95) 0 28%, transparent 29%),
        radial-gradient(circle at 50% 92%, rgba(95,103,79,0.55) 0 34%, transparent 35%),
        linear-gradient(135deg, #eef0ea, #d9ded2) !important;
    border: 4px solid #fff !important;
    box-shadow: 0 10px 24px rgba(61,61,61,0.1) !important;
}

.teacher-status-row,
.teacher-card [style*="display:flex;gap:4px"] {
    justify-content: center;
}

.avail-badge,
.verified-badge {
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.tag-skill {
    border-radius: 999px !important;
    color: #4f5846 !important;
    background: rgba(95,103,79,0.1) !important;
}

.kelas-page-intro {
    max-width: 820px;
    margin: 0 auto 1.35rem;
    text-align: center;
}

.kelas-page-kicker {
    display: inline-flex;
    margin-bottom: 0.5rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: rgba(95,103,79,0.1);
    color: var(--dried-sage);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kelas-page-intro h2 {
    margin: 0 0 0.45rem;
    color: var(--charcoal);
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.18;
}

.kelas-page-intro p {
    max-width: 660px;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.7;
}

.kelas-tabs {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.kelas-panel {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.kelas-hero-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(243,239,232,0.8)) !important;
    border: 1px solid rgba(95,103,79,0.16) !important;
    box-shadow: 0 12px 30px rgba(61,61,61,0.055);
}

.kelas-hero-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--dried-sage);
    background: rgba(95,103,79,0.1);
}

.kelas-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.kelas-feature-card {
    min-height: 146px;
    border: 1px solid rgba(95,103,79,0.1) !important;
    border-radius: 14px !important;
}

.kelas-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: var(--dried-sage);
    background: rgba(95,103,79,0.09);
}

.ebook-cover-pro,
.video-thumb-fallback {
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,0.22), transparent 22%),
        linear-gradient(135deg, #596351 0%, #8c735a 100%) !important;
}

.ebook-cover-pro::before,
.video-thumb-fallback::before {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 14px;
    pointer-events: none;
}

.ebook-cover-icon,
.video-thumb-mark {
    background: rgba(255,255,255,0.18) !important;
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 12px 26px rgba(31,34,28,0.16);
}

.ebook-cover-label {
    background: rgba(255,255,255,0.22) !important;
    border: 1px solid rgba(255,255,255,0.24);
}

.sidebar {
    box-shadow: 26px 0 70px rgba(32,36,29,0.16) !important;
}

.sidebar-menu {
    padding-bottom: 1rem !important;
}

.sidebar-cta {
    gap: 0.7rem !important;
    border-top: 1px solid rgba(95,103,79,0.12);
    box-shadow: 0 -10px 24px rgba(61,61,61,0.04);
}

.bottom-nav {
    z-index: 8900 !important;
}

.lang-fab-container {
    bottom: calc(var(--bottom-nav-height) + 16px) !important;
}

@media (min-width: 901px) {
    .teacher-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        max-width: 1200px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .kelas-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .search-header {
        padding: 32px 5% 42px !important;
        border-radius: 0 0 24px 24px !important;
    }

    .search-header h2 {
        font-size: 1.72rem !important;
        line-height: 1.2;
    }

    .search-popular {
        gap: 8px 7px !important;
    }

    .search-popular-tag,
    .filter-chips .chip {
        font-size: 0.76rem !important;
        padding: 6px 11px !important;
    }

    .result-bar {
        padding-top: 1.15rem !important;
    }

    .teacher-card {
        min-height: 360px;
        padding: 1.55rem !important;
    }

    .profile-img {
        width: 82px !important;
        height: 82px !important;
    }

    .kelas-page-intro {
        margin-top: 0.25rem;
        margin-bottom: 1rem;
        padding: 0 0.25rem;
    }

    .kelas-page-intro h2 {
        font-size: 1.45rem;
    }

    .kelas-page-intro p {
        font-size: 0.86rem;
    }

    .kelas-tabs {
        border-radius: 16px !important;
        margin-bottom: 1rem !important;
    }

    .kelas-hero-banner {
        align-items: flex-start;
        border-radius: 16px !important;
        gap: 0.85rem !important;
    }

    .kelas-feature-grid {
        grid-template-columns: 1fr !important;
    }

    .kelas-feature-card {
        min-height: 0;
        display: grid;
        grid-template-columns: 42px 1fr;
        column-gap: 0.85rem;
        align-items: center;
    }

    .kelas-feature-card h4,
    .kelas-feature-card p {
        grid-column: 2;
    }

    .kelas-feature-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0 !important;
    }

    .lang-fab-container {
        bottom: auto !important;
        right: 12px !important;
        top: calc(var(--nav-height) + 10px) !important;
        z-index: 8800 !important;
    }

    .lang-fab-btn {
        width: 46px !important;
        height: 34px !important;
        font-size: 0.7rem !important;
        box-shadow: 0 8px 20px rgba(61,66,52,0.12) !important;
    }

    .lang-fab-menu {
        bottom: auto !important;
        top: 42px !important;
    }
}

.dev-grid .team-card h4 {
    overflow-wrap: anywhere;
}

.blog-card-meta span {
    white-space: normal;
}

@media (max-width: 600px) {
    .content-empty-state {
        min-height: 180px;
        padding: 1.4rem 1rem;
        border-radius: 14px;
    }

    .content-empty-icon {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 1.2rem;
    }
}

/* ==================== PROFESSIONAL VIDEO / MOBILE CLEANUP ==================== */
.video-grid {
    align-items: stretch;
}

.video-card {
    border-radius: 14px !important;
    border: 1px solid rgba(95, 103, 79, 0.14) !important;
    box-shadow: 0 12px 30px rgba(61, 66, 52, 0.07) !important;
    display: block !important;
    height: auto !important;
    justify-content: initial !important;
}

.video-thumb {
    height: auto !important;
    aspect-ratio: 16 / 9;
    position: relative;
}

.video-thumb-fallback {
    align-items: center;
    color: #fff;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.video-thumb-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(255,255,255,0.22), transparent 26%),
        linear-gradient(135deg, rgba(95,103,79,0.92), rgba(144,120,96,0.9));
}

.video-thumb-mark {
    position: relative;
    z-index: 1;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.28);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.video-thumb-mark::before {
    content: 'VIDEO';
}

/* ==================== PROFESSIONAL ELEMENT CLEANUP ROUND 2 ==================== */
.teacher-card > div:last-child > div:first-child {
    color: var(--faded-rust) !important;
    font-size: 0.95rem !important;
    letter-spacing: 0 !important;
}

.ebook-cover-pro {
    background:
        radial-gradient(circle at 72% 22%, rgba(255,255,255,0.2), transparent 28%),
        linear-gradient(135deg, var(--dried-sage), var(--warm-oak)) !important;
    color: #fff !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem;
    min-height: 170px;
}

.ebook-cover-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.22);
}

.ebook-cover-icon svg,
.ebook-meta svg,
.ebook-rating svg,
.ebook-pages svg,
.ebook-download-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ebook-cover-icon svg {
    width: 28px;
    height: 28px;
}

.ebook-cover-label {
    max-width: 80%;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.ebook-meta span,
.ebook-rating,
.ebook-pages,
.ebook-download-btn {
    align-items: center;
    display: inline-flex !important;
    gap: 0.45rem;
}

.ebook-rating {
    color: var(--warm-oak) !important;
    font-weight: 800;
}

.ebook-download-btn {
    justify-content: center;
}

.team-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(122, 129, 108, 0.16);
    width: 100%;
}

.team-social-links a {
    align-items: center;
    display: inline-flex !important;
    gap: 0.28rem;
    margin-right: 0 !important;
    padding: 0.34rem 0.55rem;
    border-radius: 999px;
    background: rgba(95, 103, 79, 0.08);
    font-size: 0.72rem !important;
    font-weight: 800;
}

.kelas-tab {
    gap: 0.45rem;
}

.kelas-tab::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 12h20M12 2a15 15 0 0 1 0 20M12 2a15 15 0 0 0 0 20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

#tab-offline::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 11 9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9Z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 11 9-8 9 8v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1v-9Z' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.kelas-hero-icon,
.kelas-feature-icon {
    font-size: 0 !important;
}

.kelas-hero-icon::before,
.kelas-feature-icon::before {
    content: '';
    display: block;
    width: 30px;
    height: 30px;
    margin: auto;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M12 7v5l3 2' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.kelas-feature-grid .kelas-feature-card:nth-child(2) .kelas-feature-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h18v12H3zM16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M8 12h.01M16 12h.01' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 7h18v12H3zM16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M8 12h.01M16 12h.01' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.kelas-feature-grid .kelas-feature-card:nth-child(3) .kelas-feature-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 18-6 3V6l6-3 6 3 6-3v15l-6 3-6-3ZM9 3v15M15 6v15' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m9 18-6 3V6l6-3 6 3 6-3v15l-6 3-6-3ZM9 3v15M15 6v15' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.kelas-feature-grid .kelas-feature-card:nth-child(4) .kelas-feature-icon::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7M21 3v6h-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7M21 3v6h-6' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.video-overlay {
    align-items: center;
    background: linear-gradient(180deg, rgba(28, 32, 25, 0.04), rgba(28, 32, 25, 0.22));
    display: flex;
    bottom: auto !important;
    height: auto !important;
    inset: 0 0 auto 0 !important;
    justify-content: center;
    pointer-events: none;
    position: absolute;
    aspect-ratio: 16 / 9;
}

.play-button {
    width: 48px !important;
    height: 48px !important;
    padding: 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(95, 103, 79, 0.78);
    box-shadow: 0 12px 28px rgba(24, 28, 20, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.video-body {
    padding: 1rem 1.05rem 1.1rem !important;
    display: block !important;
    flex: none !important;
}

.video-category {
    align-self: flex-start;
    display: inline-flex !important;
    width: auto !important;
    padding: 0.22rem 0.55rem !important;
    border-radius: 999px !important;
    background: rgba(95, 103, 79, 0.1) !important;
    color: var(--dried-sage) !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

.video-title {
    margin-top: 0.65rem !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
}

.video-instructor,
.video-meta span,
.video-level {
    align-items: center;
    display: inline-flex !important;
    gap: 0.45rem;
}

.video-instructor {
    color: var(--text-light) !important;
    font-size: 0.82rem !important;
    margin-top: 0.55rem !important;
}

.video-meta {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem 0.8rem !important;
    margin-top: 0.65rem !important;
}

.video-meta span,
.video-level {
    color: rgba(38, 48, 38, 0.76) !important;
    font-size: 0.78rem !important;
    line-height: 1.4;
}

.video-instructor svg,
.video-meta svg,
.video-level svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.video-level {
    width: auto !important;
    margin-top: 0.75rem !important;
    padding: 0.45rem 0.7rem !important;
    border-radius: 999px !important;
    background: rgba(144, 120, 96, 0.1) !important;
    color: var(--warm-oak) !important;
    font-weight: 800 !important;
}

.filter-chips {
    gap: 0.55rem !important;
}

.filter-chips .chip,
#filterAvailNow,
#filterOnlineOnly {
    min-height: 42px !important;
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    padding: 0.58rem 0.9rem !important;
    line-height: 1.2 !important;
}

.teacher-card .btn,
.teacher-card .btn-sage {
    min-height: 42px !important;
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    padding: 0.64rem 0.9rem !important;
    line-height: 1.15 !important;
}

.td-x-close {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    display: inline-flex !important;
    justify-content: center !important;
    font-size: 1rem !important;
    touch-action: manipulation;
}

.write-review-btn {
    min-height: 44px !important;
    align-items: center !important;
    display: flex !important;
    justify-content: center !important;
    padding: 0.65rem 0.9rem !important;
    line-height: 1.2 !important;
}

.game-promo-img {
    min-height: 128px;
    overflow: visible !important;
}

.game-promo-img img {
    display: block;
}

/* LOGGED-IN PROFILE POLISH 2026-06-10 */
#view-profile .page-content {
    max-width: 860px !important;
    padding-top: 2rem !important;
}

.profile-header-card {
    align-items: center !important;
    background:
        radial-gradient(circle at 14% 12%, rgba(216,182,177,0.14), transparent 30%),
        linear-gradient(135deg, #fff 0%, rgba(248,245,239,0.92) 100%) !important;
    border-color: rgba(95,103,79,0.12) !important;
    box-shadow: 0 14px 34px rgba(61,61,61,0.075) !important;
    overflow: hidden;
}

.profile-avatar-wrap {
    flex: 0 0 auto;
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.profile-avatar-lg,
.profile-avatar-initials {
    width: 92px !important;
    height: 92px !important;
    border: 4px solid #fff !important;
    box-shadow: 0 12px 26px rgba(61,61,61,0.12);
}

.profile-avatar-initials {
    align-items: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.28), transparent 32%),
        linear-gradient(135deg, #596351 0%, #9a6a63 100%);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.55rem;
    font-weight: 900;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    text-transform: uppercase;
}

.profile-avatar-hidden {
    display: none !important;
}

.profile-avatar-badge {
    width: auto !important;
    min-width: 58px;
    height: 28px !important;
    min-height: 28px;
    padding: 0 0.55rem;
    right: -12px !important;
    bottom: -4px !important;
    border-radius: 999px !important;
    color: var(--dried-sage);
    font-size: 0.68rem !important;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(61,61,61,0.1);
}

.profile-header-info h2,
#profileDisplayName {
    line-height: 1.22 !important;
    overflow-wrap: anywhere;
}

#profileEmail {
    overflow-wrap: anywhere;
}

.profile-status-chip {
    align-items: center;
    display: inline-flex !important;
    min-height: 30px;
    border-radius: 999px !important;
    padding: 0.35rem 0.72rem !important;
    line-height: 1.1;
}

.profile-edit-btn,
.profile-tab,
.status-toggle-btn,
.profile-security-item .btn,
.profile-security-item button,
#biodataEdit .btn,
#mentorEdit .btn {
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
}

.profile-edit-btn {
    border-radius: 999px !important;
    padding: 0.58rem 0.95rem !important;
}

.profile-tabs {
    gap: 0.45rem !important;
    padding: 0.42rem !important;
    border-color: rgba(95,103,79,0.11) !important;
    box-shadow: 0 10px 26px rgba(61,61,61,0.045);
}

.profile-tab {
    align-items: center;
    gap: 0.48rem;
    justify-content: center;
    line-height: 1.15;
    white-space: nowrap;
}

.profile-tab:not(#tabMentor),
#tabMentor[style*="block"] {
    display: inline-flex !important;
}

.profile-tab::before {
    content: '';
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background: currentColor;
    opacity: 0.9;
    mask: var(--profile-tab-icon) center / contain no-repeat;
    -webkit-mask: var(--profile-tab-icon) center / contain no-repeat;
}

.profile-tab-biodata {
    --profile-tab-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='3' width='14' height='18' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.profile-tab-security {
    --profile-tab-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='10' width='14' height='10' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.profile-tab-mentor {
    --profile-tab-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0M17 11l3 2-3 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.profile-panel {
    border-color: rgba(95,103,79,0.11) !important;
    box-shadow: 0 12px 28px rgba(61,61,61,0.055) !important;
}

.profile-info-grid {
    gap: 0.85rem !important;
}

.profile-info-item {
    min-width: 0;
    padding: 0.9rem;
    border: 1px solid rgba(95,103,79,0.09);
    border-radius: 14px;
    background: rgba(250,248,244,0.72);
}

.profile-info-item label {
    line-height: 1.3;
}

.profile-info-item span {
    overflow-wrap: anywhere;
}

.profile-empty-value {
    color: rgba(74, 78, 68, 0.48) !important;
    font-style: italic;
    font-weight: 600 !important;
}

.profile-form-group input,
.profile-form-group select {
    min-height: 44px;
}

.profile-form-group textarea {
    min-height: 94px;
}

.profile-form-group input,
.profile-form-group select,
.profile-form-group textarea {
    border-color: rgba(95,103,79,0.14) !important;
    border-radius: 12px !important;
    box-sizing: border-box;
    width: 100%;
}

.profile-security-item {
    border-radius: 14px;
    padding: 1rem !important;
}

.profile-security-item:hover {
    background: rgba(250,248,244,0.72);
}

.profile-verified-chip {
    align-items: center;
    display: inline-flex;
    min-height: 34px;
    border-radius: 999px !important;
}

.mentor-status-toggle {
    border-top-color: rgba(95,103,79,0.1) !important;
}

.mentor-status-toggle > div,
.profile-form-full > div[style*="display:flex"] {
    gap: 0.55rem !important;
}

.status-toggle-btn {
    border-radius: 999px !important;
    padding: 0.65rem 1.05rem !important;
}

.profile-form-full label[style*="cursor:pointer"] {
    min-height: 44px;
    padding: 0.52rem 0.72rem;
    border: 1px solid rgba(95,103,79,0.1);
    border-radius: 999px;
    background: rgba(250,248,244,0.72);
}

.profile-form-full input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--dried-sage);
}

@media (max-width: 767px) {
    #scrollTopBtn {
        display: none !important;
    }

    .filter-chips {
        gap: 0.55rem !important;
    }

    .filter-chips .chip,
    #filterAvailNow,
    #filterOnlineOnly {
        min-height: 44px !important;
        align-items: center !important;
        display: inline-flex !important;
        justify-content: center !important;
        padding: 0.62rem 0.9rem !important;
        line-height: 1.2 !important;
    }

    .teacher-card .btn,
    .teacher-card .btn-sage {
        min-height: 44px !important;
        align-items: center !important;
        display: inline-flex !important;
        justify-content: center !important;
        padding: 0.68rem 0.9rem !important;
        line-height: 1.15 !important;
    }

    footer {
        margin-top: 3rem !important;
        padding: 2.2rem 5% calc(1.2rem + var(--bottom-nav-height)) !important;
    }

    .footer-content {
        gap: 1.2rem !important;
    }

    .footer-column:not(.footer-brand-col):nth-child(2),
    .footer-column:not(.footer-brand-col):nth-child(3) {
        display: none !important;
    }

    .footer-column h4 {
        margin-bottom: 0.35rem !important;
    }

    .footer-column:nth-child(4) {
        gap: 0.55rem !important;
    }

    .footer-column:nth-child(4) .footer-link {
        display: inline-flex;
        font-size: 0.82rem !important;
        margin-right: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .footer-bottom {
        margin: 1.4rem auto 0 !important;
        padding-top: 1rem !important;
        font-size: 0.74rem !important;
    }

    .video-card {
        border-radius: 12px !important;
    }

    .video-thumb {
        aspect-ratio: 21 / 9;
    }

    .play-button {
        width: 42px !important;
        height: 42px !important;
    }

    #view-profile .page-content {
        padding-top: 1rem !important;
    }

    .profile-header-card {
        gap: 0.85rem !important;
        padding: 1.2rem !important;
        text-align: center;
    }

    .profile-avatar-lg,
    .profile-avatar-initials {
        width: 86px !important;
        height: 86px !important;
    }

    .profile-header-info {
        width: 100%;
    }

    #profileDisplayName {
        font-size: 1.2rem !important;
    }

    .profile-tabs {
        flex-direction: row !important;
        overflow-x: auto;
        padding-bottom: 0.5rem !important;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .profile-tab {
        flex: 1 0 auto !important;
        min-width: 108px;
        padding-inline: 0.78rem !important;
        text-align: center !important;
    }

    .profile-panel {
        padding: 1rem !important;
        border-radius: 16px !important;
    }

    .profile-info-item {
        padding: 0.82rem;
    }

    .profile-security-item {
        align-items: stretch !important;
        flex-direction: column;
        gap: 0.75rem !important;
    }

    .profile-security-item .btn,
    .profile-security-item button,
    .profile-verified-chip {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }

    #biodataEdit > div:last-child,
    #mentorEdit > div:last-child {
        flex-direction: column !important;
    }

    #biodataEdit .btn,
    #mentorEdit .btn {
        width: 100%;
    }

    .profile-form-full > div[style*="display:flex"] {
        align-items: stretch;
        flex-direction: column;
    }

    .mentor-status-toggle > div {
        display: grid !important;
        grid-template-columns: 1fr;
    }

    .status-toggle-btn {
        width: 100%;
    }
}

/* AUTH EMOJI CLEANUP 2026-06-10 */
.logo-icon-book {
    font-size: 0 !important;
}

.logo-icon-book::before,
.role-btn-icon,
.auth-pass-toggle::before {
    content: '';
    display: block;
    background: currentColor;
}

.logo-icon-book::before {
    width: 22px;
    height: 22px;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v16H6.5A2.5 2.5 0 0 0 4 21.5v-16Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 8H20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v16H6.5A2.5 2.5 0 0 0 4 21.5v-16Z' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 8H20' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.role-btn-icon {
    width: 28px;
    height: 28px;
    opacity: 0.82;
    mask: var(--role-icon) center / contain no-repeat;
    -webkit-mask: var(--role-icon) center / contain no-repeat;
}

.role-btn-student {
    --role-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m3 8 9-4 9 4-9 4-9-4ZM7 10v5c0 1.7 2.2 3 5 3s5-1.3 5-3v-5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 8v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.role-btn-mentor {
    --role-icon: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='7' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0M17 11l4 2-4 2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.auth-pass-toggle {
    color: var(--text-light);
    font-size: 0 !important;
}

.auth-pass-toggle::before {
    width: 19px;
    height: 19px;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6S2 12 2 12Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.auth-pass-toggle.is-visible::before {
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l18 18M10.6 10.6A3 3 0 0 0 13.4 13.4M8.1 5.5A11 11 0 0 1 12 4c6.5 0 10 8 10 8a16.8 16.8 0 0 1-3.1 4.1M6.1 6.1C3.5 7.8 2 12 2 12s3.5 8 10 8a10.7 10.7 0 0 0 5-1.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3l18 18M10.6 10.6A3 3 0 0 0 13.4 13.4M8.1 5.5A11 11 0 0 1 12 4c6.5 0 10 8 10 8a16.8 16.8 0 0 1-3.1 4.1M6.1 6.1C3.5 7.8 2 12 2 12s3.5 8 10 8a10.7 10.7 0 0 0 5-1.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.auth-close-btn {
    font-size: 0 !important;
}

.auth-close-btn::before {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 6l12 12M18 6 6 18' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* POST-REGRESSION TOUCH CLEANUP 2026-06-10 */
.kelas-tab,
.team-social-links a {
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    touch-action: manipulation;
}

.team-social-links a {
    display: inline-flex !important;
    padding-block: 0.54rem !important;
}

/* PROFILE EMPTY STATE 2026-06-10 */
.profile-login-required {
    display: none;
    padding: 2.2rem 1.4rem;
    text-align: center;
    background:
        radial-gradient(circle at 20% 12%, rgba(216,182,177,0.12), transparent 34%),
        linear-gradient(135deg, #fff 0%, rgba(248,245,239,0.94) 100%);
    border: 1px solid rgba(95,103,79,0.12);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(61,61,61,0.075);
}

.profile-login-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    color: var(--dried-sage);
    background: rgba(95,103,79,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-login-icon::before {
    content: '';
    width: 30px;
    height: 30px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4M10 17l5-5-5-5M15 12H3' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.profile-login-required h2 {
    margin: 0 0 0.5rem;
    color: var(--dried-sage);
    font-size: 1.35rem;
    line-height: 1.25;
}

.profile-login-required p {
    max-width: 440px;
    margin: 0 auto 1.2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
}

.profile-login-actions {
    display: flex;
    gap: 0.65rem;
    justify-content: center;
}

.profile-login-actions .btn {
    min-height: 44px;
    min-width: 112px;
}

.profile-logged-out #view-profile .profile-login-required {
    display: block;
}

.profile-logged-out #view-profile .profile-header-card,
.profile-logged-out #view-profile .profile-tabs,
.profile-logged-out #view-profile .profile-panel {
    display: none !important;
}

@media (max-width: 767px) {
    .profile-login-actions {
        flex-direction: column;
    }

    .profile-login-actions .btn {
        width: 100%;
    }
}
