/* Gaya kanvas pelajaran LMS virtual (diekstrak dari lms-virtual-pages.php agar bisa di-cache browser) */
/* ═══════════════════════════════════════════════════════════
   ISOLASI TOTAL LMS: ELIMINASI HEADER & FOOTER WEBSITE
   Menjamin kanvas belajar LMS 100% murni tampilan plugin saja.
   Header & footer website tetap tampil normal di pricing & checkout.
   ═══════════════════════════════════════════════════════════ */
header.nk-topbar,
.nk-topbar:not(.nk-v-topbar):not(#nk-app *),
.nk-brand:not(.nk-v-brand-wrap),
.nk-home-root > header,
.nk-pass-banner,
footer.nk-footer,
.nk-footer,
#masthead,
.site-header,
#site-header,
header.site-header,
header[role="banner"]:not(.nk-v-topbar):not(.nk-o-topbar),
#colophon,
.site-footer,
#site-footer,
footer.site-footer,
footer[role="contentinfo"],
.elementor-location-header,
.elementor-location-footer,
.fl-builder-header,
.fl-builder-footer,
.wp-block-template-part:has(header),
.wp-block-template-part:has(footer),
body.nk-virtual-page > header:not(.nk-v-topbar),
body.nk-virtual-page > footer,
body.nk-virtual-overview > header:not(.nk-o-topbar),
body.nk-virtual-overview > footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

/* ═══════════════════════════════════════════════════════════
   UI/UX PRO MAX — LMS VIRTUAL LESSON CANVAS DESIGN SYSTEM
   Styles: Bento Box Grid, Glassmorphism, Adaptive Themes
   ═══════════════════════════════════════════════════════════ */
:root {
    --nk-font-sans: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --nk-font-jp: 'Noto Sans JP', sans-serif;
    --nk-radius-sm: 8px;
    --nk-radius-md: 14px;
    --nk-radius-lg: 20px;
    --nk-radius-xl: 26px;
    --nk-radius-pill: 9999px;
    --nk-transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Default Fallback Tokens (Adaptive Theme 1: Cyber Indigo) */
    --v-bg: #0b0d14;
    --v-bg-pattern: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.18), transparent 75%), #0b0d14;
    --v-topbar-bg: rgba(11, 13, 20, 0.85);
    --v-topbar-border: rgba(108, 92, 231, 0.22);
    --v-card-bg: rgba(19, 22, 33, 0.78);
    --v-card-border: rgba(108, 92, 231, 0.2);
    --v-card-hover: rgba(26, 30, 45, 0.88);
    --v-text: #f8fafc;
    --v-text-muted: #94a3b8;
    --v-text-dim: #64748b;
    --v-primary: #6c5ce7;
    --v-primary-hover: #5b4bc4;
    --v-primary-soft: rgba(108, 92, 231, 0.16);
    --v-accent: #00cec9;
    --v-accent-soft: rgba(0, 206, 201, 0.14);
    --v-gold: #fdcb6e;
    --v-success: #10b981;
    --v-danger: #ef4444;
    --v-shadow: 0 12px 36px -4px rgba(0, 0, 0, 0.45);
    --v-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.25);
}

/* Theme 2: Kyoto Zen & Washi Paper (Tradisi Klasik Otentik) */
body.nk-theme-2 {
    --v-bg: #fbf8f3;
    --v-bg-pattern: radial-gradient(circle at 12% 15%, rgba(192, 57, 43, 0.05), transparent 40%), #fbf8f3;
    --v-topbar-bg: rgba(251, 248, 243, 0.9);
    --v-topbar-border: rgba(192, 57, 43, 0.2);
    --v-card-bg: rgba(255, 255, 255, 0.92);
    --v-card-border: rgba(192, 57, 43, 0.16);
    --v-card-hover: #ffffff;
    --v-text: #24211e;
    --v-text-muted: #59524c;
    --v-text-dim: #8c827a;
    --v-primary: #c0392b;
    --v-primary-hover: #a93226;
    --v-primary-soft: rgba(192, 57, 43, 0.1);
    --v-accent: #2d6a4f;
    --v-accent-soft: rgba(45, 106, 79, 0.12);
    --v-gold: #b8860b;
    --v-shadow: 0 10px 32px rgba(80, 50, 20, 0.07);
    --v-shadow-sm: 0 2px 10px rgba(80, 50, 20, 0.04);
}

/* Theme 3: Tokyo Pop Arcade (Neo-Brutalist & Enerjik 3D) */
body.nk-theme-3 {
    --v-bg: #f0f4ff;
    --v-bg-pattern: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    --v-topbar-bg: rgba(255, 255, 255, 0.95);
    --v-topbar-border: #1e293b;
    --v-card-bg: #ffffff;
    --v-card-border: #1e293b;
    --v-card-hover: #ffffff;
    --v-text: #0f172a;
    --v-text-muted: #475569;
    --v-text-dim: #64748b;
    --v-primary: #2563eb;
    --v-primary-hover: #1d4ed8;
    --v-primary-soft: rgba(37, 99, 235, 0.12);
    --v-accent: #f59e0b;
    --v-accent-soft: rgba(245, 158, 11, 0.16);
    --v-gold: #f59e0b;
    --v-shadow: 4px 4px 0px #1e293b;
    --v-shadow-sm: 2px 2px 0px #1e293b;
}

/* Theme 4: Sakura Minimalist (Soft Pastel Editorial Clean) */
body.nk-theme-4 {
    --v-bg: #fffbfb;
    --v-bg-pattern: radial-gradient(#fecdd3 0.9px, transparent 0.9px), #fffbfb;
    --v-topbar-bg: rgba(255, 251, 251, 0.88);
    --v-topbar-border: #fecdd3;
    --v-card-bg: rgba(255, 255, 255, 0.94);
    --v-card-border: #fecdd3;
    --v-card-hover: #fff7f8;
    --v-text: #1e293b;
    --v-text-muted: #64748b;
    --v-text-dim: #94a3b8;
    --v-primary: #e11d48;
    --v-primary-hover: #be123c;
    --v-primary-soft: rgba(225, 29, 72, 0.08);
    --v-accent: #0284c7;
    --v-accent-soft: rgba(2, 132, 199, 0.1);
    --v-gold: #d97706;
    --v-shadow: 0 10px 32px -4px rgba(225, 29, 72, 0.08);
    --v-shadow-sm: 0 3px 12px rgba(225, 29, 72, 0.05);
}

/* Theme 5: Mori Forest & Zen Matcha (Botanical Nature & Study Focus) */
body.nk-theme-5 {
    --v-bg: #f4f9f4;
    --v-bg-pattern: radial-gradient(circle at 85% 15%, rgba(64, 145, 108, 0.09), transparent 45%), #f4f9f4;
    --v-topbar-bg: rgba(244, 249, 244, 0.9);
    --v-topbar-border: rgba(64, 145, 108, 0.22);
    --v-card-bg: rgba(255, 255, 255, 0.92);
    --v-card-border: rgba(64, 145, 108, 0.18);
    --v-card-hover: #ffffff;
    --v-text: #1b4332;
    --v-text-muted: #2d6a4f;
    --v-text-dim: #52b788;
    --v-primary: #2d6a4f;
    --v-primary-hover: #1b4332;
    --v-primary-soft: rgba(45, 106, 79, 0.1);
    --v-accent: #d97706;
    --v-accent-soft: rgba(217, 119, 6, 0.12);
    --v-gold: #d97706;
    --v-shadow: 0 10px 32px rgba(27, 67, 50, 0.07);
    --v-shadow-sm: 0 3px 12px rgba(27, 67, 50, 0.04);
}

/* Theme 6: Shinkansen Neo-Glass (Tokyo Night Cyberpunk & Frosted Glass) */
body.nk-theme-6 {
    --v-bg: #070913;
    --v-bg-pattern: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.16), transparent 60%), #070913;
    --v-topbar-bg: rgba(7, 9, 19, 0.82);
    --v-topbar-border: rgba(0, 242, 254, 0.25);
    --v-card-bg: rgba(13, 17, 34, 0.72);
    --v-card-border: rgba(0, 242, 254, 0.22);
    --v-card-hover: rgba(19, 25, 48, 0.82);
    --v-text: #f8fafc;
    --v-text-muted: #94a3b8;
    --v-text-dim: #64748b;
    --v-primary: #00f2fe;
    --v-primary-hover: #4facfe;
    --v-primary-soft: rgba(0, 242, 254, 0.16);
    --v-accent: #c084fc;
    --v-accent-soft: rgba(192, 132, 252, 0.16);
    --v-gold: #fbbf24;
    --v-shadow: 0 12px 36px 0 rgba(0, 242, 254, 0.14);
    --v-shadow-sm: 0 4px 16px rgba(0, 242, 254, 0.08);
}

/* ─── Mode Overrides: Theme 1 & Global Light Mode ─── */
body.nk-mode-light,
body.nk-theme-1.nk-mode-light {
    --v-bg: #f5f6fa;
    --v-bg-pattern: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(108, 92, 231, 0.12), transparent 75%), #f5f6fa;
    --v-topbar-bg: rgba(255, 255, 255, 0.92);
    --v-topbar-border: rgba(108, 92, 231, 0.16);
    --v-card-bg: rgba(255, 255, 255, 0.95);
    --v-card-border: rgba(108, 92, 231, 0.14);
    --v-card-hover: #ffffff;
    --v-text: #1a1a2e;
    --v-text-muted: #555770;
    --v-text-dim: #8e90a6;
    --v-shadow: 0 10px 32px rgba(108, 92, 231, 0.08);
    --v-shadow-sm: 0 2px 10px rgba(108, 92, 231, 0.04);
}

/* Theme 2 Dark Mode (Sumi Dark) */
body.nk-theme-2.nk-mode-dark {
    --v-bg: #161412;
    --v-bg-pattern: radial-gradient(circle at 12% 15%, rgba(192, 57, 43, 0.15), transparent 40%), #161412;
    --v-topbar-bg: rgba(22, 20, 18, 0.92);
    --v-topbar-border: rgba(192, 57, 43, 0.3);
    --v-card-bg: rgba(30, 27, 24, 0.88);
    --v-card-border: rgba(192, 57, 43, 0.24);
    --v-card-hover: rgba(38, 34, 30, 0.96);
    --v-text: #f5f0eb;
    --v-text-muted: #c2b8ad;
    --v-text-dim: #8c827a;
    --v-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    --v-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Theme 3 Dark Mode (Arcade Midnight) */
body.nk-theme-3.nk-mode-dark {
    --v-bg: #0f172a;
    --v-bg-pattern: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --v-topbar-bg: rgba(15, 23, 42, 0.94);
    --v-topbar-border: rgba(59, 130, 246, 0.4);
    --v-card-bg: rgba(30, 41, 59, 0.88);
    --v-card-border: rgba(59, 130, 246, 0.3);
    --v-card-hover: rgba(51, 65, 85, 0.95);
    --v-text: #f8fafc;
    --v-text-muted: #94a3b8;
    --v-text-dim: #64748b;
    --v-shadow: 4px 4px 0px rgba(59, 130, 246, 0.4);
    --v-shadow-sm: 2px 2px 0px rgba(59, 130, 246, 0.4);
}

/* Theme 4 Dark Mode (Sakura Twilight) */
body.nk-theme-4.nk-mode-dark {
    --v-bg: #190f14;
    --v-bg-pattern: radial-gradient(rgba(244, 63, 94, 0.16) 1px, transparent 1px), #190f14;
    --v-topbar-bg: rgba(255, 255, 255, 0.92);
    --v-topbar-border: rgba(244, 63, 94, 0.3);
    --v-card-bg: rgba(38, 20, 29, 0.88);
    --v-card-border: rgba(244, 63, 94, 0.24);
    --v-card-hover: rgba(52, 28, 40, 0.95);
    --v-text: #fff1f2;
    --v-text-muted: #fda4af;
    --v-text-dim: #fb7185;
    --v-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    --v-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Theme 5 Dark Mode (Mori Night Forest) */
body.nk-theme-5.nk-mode-dark {
    --v-bg: #0d1b14;
    --v-bg-pattern: radial-gradient(circle at 85% 15%, rgba(64, 145, 108, 0.2), transparent 45%), #0d1b14;
    --v-topbar-bg: rgba(13, 27, 20, 0.92);
    --v-topbar-border: rgba(64, 145, 108, 0.3);
    --v-card-bg: rgba(19, 39, 29, 0.88);
    --v-card-border: rgba(64, 145, 108, 0.24);
    --v-card-hover: rgba(26, 54, 40, 0.96);
    --v-text: #e8f5e9;
    --v-text-muted: #a3d9a5;
    --v-text-dim: #66bb6a;
    --v-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
    --v-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Theme 6 Light Mode (Neo-Tokyo Frost Light) */
body.nk-theme-6.nk-mode-light {
    --v-bg: #f0f7ff;
    --v-bg-pattern: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12), transparent 60%), #f0f7ff;
    --v-topbar-bg: rgba(255, 255, 255, 0.92);
    --v-topbar-border: rgba(6, 182, 212, 0.25);
    --v-card-bg: rgba(255, 255, 255, 0.92);
    --v-card-border: rgba(6, 182, 212, 0.2);
    --v-card-hover: #ffffff;
    --v-text: #0f172a;
    --v-text-muted: #475569;
    --v-text-dim: #94a3b8;
    --v-shadow: 0 10px 32px 0 rgba(6, 182, 212, 0.1);
    --v-shadow-sm: 0 3px 12px rgba(6, 182, 212, 0.05);
}

/* Base Reset & Page Canvas */
* { box-sizing: border-box; }
body.nk-virtual-page {
    margin: 0;
    padding: 0;
    background-color: var(--v-bg);
    background-image: var(--v-bg-pattern);
    background-size: cover;
    background-attachment: fixed;
    color: var(--v-text);
    font-family: var(--nk-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─── STICKY GLASSMORPHIC TOPBAR ─── */
.nk-v-topbar {
    background: var(--v-topbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--v-topbar-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: var(--v-shadow-sm);
    transition: var(--nk-transition);
}
.nk-v-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--v-text);
    min-width: 0;
}
.nk-v-brand-icon {
    width: 38px;
    height: 38px;
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border: 1px solid var(--v-topbar-border);
    border-radius: var(--nk-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--nk-transition);
}
.nk-v-brand-wrap:hover .nk-v-brand-icon {
    transform: scale(1.05);
    box-shadow: 0 0 16px var(--v-primary-soft);
}
.nk-v-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.nk-v-brand-title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--v-text);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-v-brand-sub {
    font-size: 12px;
    color: var(--v-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-v-topbar-center {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nk-v-curriculum-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    color: var(--v-text);
    padding: 7px 16px;
    border-radius: var(--nk-radius-pill);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--nk-transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nk-v-curriculum-trigger:hover {
    background: var(--v-primary-soft);
    border-color: var(--v-primary);
    color: var(--v-primary);
    transform: translateY(-1px);
}
.nk-v-badge-pill {
    background: var(--v-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--nk-radius-pill);
    letter-spacing: 0.02em;
}
body.nk-theme-mode-dark .nk-v-badge-pill {
    color: #0b0d14;
}
.nk-v-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Theme Picker Dropdown in Topbar */
.nk-v-theme-dropdown-wrap {
    position: relative;
}
.nk-v-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    color: var(--v-text);
    padding: 7px 12px;
    border-radius: var(--nk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--nk-transition);
}
.nk-v-theme-btn:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
}
/* Light / Dark Mode Toggle Pill */
.nk-v-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    color: var(--v-text);
    padding: 7px 12px;
    border-radius: var(--nk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--nk-transition);
    user-select: none;
}
.nk-v-mode-btn:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
    transform: translateY(-1px);
}
.nk-v-mode-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--v-primary);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nk-v-mode-btn:hover .nk-v-mode-icon {
    transform: rotate(18deg) scale(1.12);
}
/* PDF Download Button in Virtual Topbar & Chips */
.nk-v-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
    padding: 7px 12px;
    border-radius: var(--nk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: var(--nk-transition);
}
.nk-v-pdf-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}
.nk-v-chip-pdf {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #ef4444 !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    text-decoration: none !important;
    transition: var(--nk-transition);
}
.nk-v-chip-pdf:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
}
@media (max-width: 480px) {
    .nk-v-mode-label {
        display: none;
    }
    .nk-v-mode-btn {
        padding: 7px 10px;
    }
    .nk-v-pdf-btn span {
        display: none;
    }
    .nk-v-pdf-btn {
        padding: 7px 10px;
    }
}
.nk-v-theme-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    border-radius: var(--nk-radius-md);
    padding: 8px;
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1002;
}
.nk-v-theme-menu.is-open { display: block; }
.nk-v-theme-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--nk-radius-sm);
    color: var(--v-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--nk-transition);
    border: 1px solid transparent;
}
.nk-v-theme-opt:hover {
    background: var(--v-primary-soft);
    color: var(--v-primary);
}
.nk-v-theme-opt.is-active {
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border-color: var(--v-primary);
    font-weight: 800;
}
.nk-v-theme-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.2);
}

/* User Pill / Login */
.nk-v-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    border-radius: var(--nk-radius-pill);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v-text);
}
.nk-v-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v-primary);
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--nk-radius-pill);
    border: 1px solid var(--v-topbar-border);
    background: var(--v-card-bg);
    transition: var(--nk-transition);
}
.nk-v-login-btn:hover {
    background: var(--v-primary-soft);
    border-color: var(--v-primary);
}

/* ─── MAIN CONTAINER & BENTO LAYOUT ─── */
.nk-v-container {
    max-width: 1120px;
    width: 100%;
    margin: 24px auto 60px;
    padding: 0 20px;
    flex: 1;
}

/* BENTO HEADER CARD */
.nk-v-bento-hero {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}
.nk-v-bento-tile {
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: var(--nk-radius-lg);
    padding: 24px 26px;
    box-shadow: var(--v-shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: var(--nk-transition);
    position: relative;
    overflow: hidden;
}
.nk-v-bento-tile:hover {
    border-color: var(--v-primary);
    box-shadow: var(--v-shadow);
}
.nk-v-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.nk-v-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--nk-radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.nk-v-chip-level {
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border: 1px solid var(--v-primary);
}
.nk-v-chip-unlock {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.28);
}
.nk-v-chip-lock {
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.nk-v-title {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    color: var(--v-text);
    line-height: 1.25;
}
.nk-v-sub {
    font-size: 14px;
    color: var(--v-text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Side Bento Stats Card */
.nk-v-bento-stats {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
}
.nk-v-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: var(--v-card-hover);
    border-radius: var(--nk-radius-md);
    border: 1px solid var(--v-card-border);
}
.nk-v-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--v-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nk-v-stat-val {
    font-size: 13px;
    font-weight: 800;
    color: var(--v-text);
}
.nk-v-bento-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: var(--v-primary);
    color: #ffffff !important;
    padding: 10px 16px;
    border-radius: var(--nk-radius-md);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: var(--nk-transition);
}
body.nk-theme-mode-dark .nk-v-bento-cta {
    color: #0b0d14 !important;
}
.nk-v-bento-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--v-primary-soft);
}

/* ─── LESSON CONTENT CARD WRAPPER ─── */
.nk-v-content-card {
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: var(--nk-radius-xl);
    padding: 24px;
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    position: relative;
    min-height: 400px;
    overflow: visible !important;
}

/* Seamless LMS Unit Embedding (Menghapus bingkai hitam & duplikasi header) */
.nk-v-content-card .nk-wrap.nk-lms-standalone,
.nk-v-content-card .nk-wrap {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
/* The outer course card owns the reading width in normal lesson mode.
   A second 900px/880px cap with margin:0 left an empty strip on the right. */
.nk-v-content-card #nk-app.nk-wrap:not(.nk-fullscreen):not(.fsk-fullscreen):not(:fullscreen),
.nk-v-content-card .nk-wrap.nk-lms-standalone:not(.nk-fullscreen):not(.fsk-fullscreen):not(:fullscreen),
.nk-v-content-card .nk-wrap:not(.nk-fullscreen):not(.fsk-fullscreen):not(:fullscreen) {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    min-height: 0;
}

.nk-v-content-card .nk-lms-card {
    width: 100% !important;
    max-width: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: var(--v-text) !important;
}
.nk-v-content-card .nk-lms-header {
    display: none !important; /* Header unit sudah ditampilkan di hero bento paling atas */
}

/* Paywall Bento Card */
.nk-v-paywall-card {
    text-align: center;
    padding: 48px 24px;
    max-width: 600px;
    margin: 0 auto;
}
.nk-v-paywall-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--v-primary-soft);
    color: var(--v-primary);
    border: 1.5px solid var(--v-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px var(--v-primary-soft);
}
.nk-v-paywall-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
    color: var(--v-text);
}
.nk-v-paywall-desc {
    font-size: 15px;
    color: var(--v-text-muted);
    line-height: 1.6;
    margin: 0 0 24px;
}
.nk-v-paywall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}
.nk-v-paywall-item {
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    border-radius: var(--nk-radius-md);
    padding: 14px 10px;
    text-align: center;
}
.nk-v-paywall-item-icon {
    color: var(--v-accent);
    margin-bottom: 6px;
}
.nk-v-paywall-item-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--v-text);
    line-height: 1.35;
}
.nk-v-paywall-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--v-primary);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 800;
    padding: 14px 32px;
    min-height: 48px;
    border-radius: var(--nk-radius-md);
    text-decoration: none !important;
    box-shadow: 0 8px 26px var(--v-primary-soft);
    transition: var(--nk-transition);
    cursor: pointer;
}
body.nk-theme-mode-dark .nk-v-paywall-cta {
    color: #0b0d14 !important;
}
.nk-v-paywall-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--v-primary-soft);
}

/* ─── BOTTOM NAVIGATION BAR ─── */
.nk-v-nav-bar {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
}
.nk-v-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    color: var(--v-text);
    padding: 12px 20px;
    min-height: 48px;
    border-radius: var(--nk-radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--nk-transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nk-v-nav-btn:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
    transform: translateY(-2px);
    box-shadow: var(--v-shadow-sm);
}
.nk-v-nav-btn-next {
    background: var(--v-primary);
    border-color: var(--v-primary);
    color: #ffffff !important;
    justify-content: flex-end;
}
body.nk-theme-mode-dark .nk-v-nav-btn-next {
    color: #0b0d14 !important;
}
.nk-v-nav-btn-next:hover {
    background: var(--v-primary-hover);
    border-color: var(--v-primary-hover);
    color: #ffffff !important;
}
.nk-v-nav-btn-center {
    justify-content: center;
}

/* ─── INTERACTIVE OFF-CANVAS CURRICULUM DRAWER ─── */
.nk-v-drawer-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99998;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nk-v-drawer-backdrop.is-open {
    display: block;
    opacity: 1;
}
.nk-v-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--v-card-bg);
    border-left: 1px solid var(--v-card-border);
    box-shadow: var(--v-shadow);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nk-v-drawer.is-open {
    right: 0;
}
.nk-v-drawer-header {
    padding: 18px 20px;
    border-bottom: 1px solid var(--v-card-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.nk-v-drawer-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    color: var(--v-text);
}
.nk-v-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--nk-radius-sm);
    background: transparent;
    border: 1px solid var(--v-card-border);
    color: var(--v-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--nk-transition);
}
.nk-v-drawer-close:hover {
    color: var(--v-text);
    border-color: var(--v-primary);
}
.nk-v-drawer-search-wrap {
    padding: 14px 20px;
    border-bottom: 1px solid var(--v-card-border);
}
.nk-v-drawer-search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    border-radius: var(--nk-radius-pill);
    padding: 8px 14px;
}
.nk-v-drawer-search-box input {
    border: none;
    background: transparent;
    color: var(--v-text);
    font-size: 13px;
    outline: none;
    width: 100%;
    font-family: inherit;
}
.nk-v-drawer-filters {
    display: flex;
    gap: 6px;
    padding: 10px 20px;
    border-bottom: 1px solid var(--v-card-border);
    overflow-x: auto;
}
.nk-v-filter-chip {
    background: transparent;
    border: 1px solid var(--v-card-border);
    color: var(--v-text-muted);
    padding: 5px 12px;
    border-radius: var(--nk-radius-pill);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--nk-transition);
}
.nk-v-filter-chip.is-active,
.nk-v-filter-chip:hover {
    background: var(--v-primary-soft);
    border-color: var(--v-primary);
    color: var(--v-primary);
}
.nk-v-drawer-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nk-v-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--nk-radius-md);
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    color: var(--v-text);
    text-decoration: none;
    transition: var(--nk-transition);
}
.nk-v-drawer-item:hover {
    border-color: var(--v-primary);
    transform: translateX(3px);
}
.nk-v-drawer-item.is-current {
    border-color: var(--v-primary);
    background: var(--v-primary-soft);
    box-shadow: 0 0 14px var(--v-primary-soft);
}
.nk-v-drawer-item-num {
    width: 32px;
    height: 32px;
    border-radius: var(--nk-radius-sm);
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    color: var(--v-primary);
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nk-v-drawer-item-info {
    flex: 1;
    min-width: 0;
}
.nk-v-drawer-item-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--v-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-v-drawer-item-sub {
    font-size: 11px;
    color: var(--v-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nk-v-drawer-item-status {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE HAMBURGER BUTTON & GLASSMORPHIC DROPDOWN MENU
   ═══════════════════════════════════════════════════════════ */
.nk-v-burger-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--nk-radius-pill);
    background: var(--v-card-bg);
    border: 1px solid var(--v-topbar-border);
    color: var(--v-text);
    cursor: pointer;
    padding: 0;
    transition: var(--nk-transition);
    flex-shrink: 0;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.nk-v-burger-btn:hover {
    border-color: var(--v-primary);
    color: var(--v-primary);
}
.nk-v-burger-btn.is-active {
    background: var(--v-primary-soft);
    border-color: var(--v-primary);
    color: var(--v-primary);
}
.nk-v-burger-box {
    width: 18px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nk-v-burger-inner,
.nk-v-burger-box::before,
.nk-v-burger-box::after {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.22s ease;
}
.nk-v-burger-btn.is-active .nk-v-burger-box::before {
    transform: translateY(6px) rotate(45deg);
}
.nk-v-burger-btn.is-active .nk-v-burger-inner {
    opacity: 0;
}
.nk-v-burger-btn.is-active .nk-v-burger-box::after {
    transform: translateY(-6px) rotate(-45deg);
}

.nk-v-mobile-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nk-v-mobile-menu-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.nk-v-mobile-menu {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    border-radius: var(--nk-radius-xl);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    z-index: 1002;
    padding: 18px;
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}
.nk-v-mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.nk-v-mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--v-card-border);
}
.nk-v-mobile-menu-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--v-text);
    letter-spacing: -0.01em;
}
.nk-v-mobile-menu-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    color: var(--v-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
}
.nk-v-mobile-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--v-card-hover);
    border-radius: var(--nk-radius-md);
    border: 1px solid var(--v-card-border);
    margin-bottom: 10px;
    cursor: pointer;
    transition: var(--nk-transition);
}
.nk-v-mobile-menu-row:hover {
    border-color: var(--v-primary);
}
.nk-v-mobile-menu-row-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v-text);
}
.nk-v-mobile-menu-icon {
    color: var(--v-primary);
    display: flex;
    align-items: center;
}
.nk-v-mobile-menu-section {
    padding: 12px 14px;
    background: var(--v-card-hover);
    border-radius: var(--nk-radius-md);
    border: 1px solid var(--v-card-border);
    margin-bottom: 10px;
}
.nk-v-mobile-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    color: var(--v-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}
.nk-v-mobile-themes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.nk-v-m-theme-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--nk-radius-sm);
    background: var(--v-card-bg);
    border: 1px solid var(--v-card-border);
    color: var(--v-text);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: var(--nk-transition);
}
.nk-v-m-theme-chip.is-active,
.nk-v-m-theme-chip:hover {
    border-color: var(--v-primary);
    background: var(--v-primary-soft);
    color: var(--v-primary);
}
.nk-v-mobile-menu-footer {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--v-card-border);
}

/* ─── DEDICATED MOBILE LANGUAGE PICKER BOTTOM SHEET ─── */
.nk-v-m-lang-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10008;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.nk-v-m-lang-backdrop.is-open {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
.nk-v-m-lang-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    background: var(--v-card-bg);
    border-top: 1.5px solid var(--v-card-border);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    z-index: 10010;
    padding: 12px 16px max(24px, env(safe-area-inset-bottom));
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none;
}
.nk-v-m-lang-sheet.is-open {
    transform: translateY(0);
    pointer-events: auto;
}
.nk-v-m-lang-handle {
    width: 44px;
    height: 4px;
    background: var(--v-card-border);
    border-radius: 999px;
    margin: 0 auto 12px auto;
    opacity: 0.8;
    flex-shrink: 0;
}
.nk-v-m-lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.nk-v-m-lang-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--v-text);
    letter-spacing: -0.01em;
}
.nk-v-m-lang-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    color: var(--v-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.nk-v-m-lang-close:active {
    transform: scale(0.92);
}
.nk-v-m-lang-search {
    position: relative;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.nk-v-m-lang-search input {
    width: 100%;
    box-sizing: border-box;
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    font-size: 13px;
    font-weight: 600;
    color: var(--v-text);
    outline: none;
    transition: border-color 0.2s ease;
}
.nk-v-m-lang-search input:focus {
    border-color: var(--v-primary);
}
.nk-v-m-lang-search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--v-text-muted);
    pointer-events: none;
}
.nk-v-m-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    overflow-y: auto;
    max-height: calc(85vh - 160px);
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 380px) {
    .nk-v-m-lang-grid { grid-template-columns: 1fr; }
}
.nk-v-m-lang-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--v-card-hover);
    border: 1.5px solid var(--v-card-border);
    color: var(--v-text);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}
.nk-v-m-lang-item:active {
    transform: scale(0.97);
}
.nk-v-m-lang-item.is-active {
    border-color: var(--v-primary);
    background: rgba(99, 102, 241, 0.14);
    color: var(--v-primary);
    font-weight: 700;
}
.nk-v-m-lang-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}
.nk-v-m-lang-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nk-v-m-lang-check {
    color: var(--v-primary);
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.nk-v-mobile-lang-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--v-card-hover);
    border: 1px solid var(--v-card-border);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--v-text);
}
.nk-v-m-chip-flag { font-size: 14px; line-height: 1; }
.nk-v-m-chip-arrow { font-size: 14px; color: var(--v-text-muted); font-weight: 800; }

/* ═══════════════════════════════════════════════════════════
   UNIVERSAL FULLSCREEN IMMERSION (100% Edge-to-Edge)
   ═══════════════════════════════════════════════════════════ */
body.nk-lms-fullscreen-active {
    overflow: hidden !important;
}

body.nk-lms-fullscreen-active .nk-v-topbar,
body.nk-lms-fullscreen-active .nk-v-bento-hero,
body.nk-lms-fullscreen-active .nk-v-nav-bar,
body.nk-lms-fullscreen-active .nk-v-mobile-menu,
body.nk-lms-fullscreen-active .nk-v-mobile-menu-backdrop,
body.nk-lms-fullscreen-active .nk-v-m-lang-sheet,
body.nk-lms-fullscreen-active .nk-v-m-lang-backdrop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

body.nk-lms-fullscreen-active .nk-v-container {
    max-width: 100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.nk-lms-fullscreen-active .nk-v-content-card {
    position: static !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    filter: none !important;
    perspective: none !important;
    contain: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    width: 100vw !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
}

body.nk-lms-fullscreen-active .nk-wrap.nk-fullscreen,
body.nk-lms-fullscreen-active .fsk-fullscreen,
body.nk-lms-fullscreen-active .nk-v-content-card > .nk-fullscreen,
body.nk-lms-fullscreen-active .nk-v-content-card > .fsk-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ─── FULLSCREEN COLOR PALETTE & LIGHT MODE FIX ─── */
:fullscreen,
:-webkit-full-screen {
    background: var(--v-bg, #0c0e14);
}
body.nk-mode-light :fullscreen,
body.nk-mode-light :-webkit-full-screen,
body.nk-theme-mode-light :fullscreen,
body.nk-theme-mode-light :-webkit-full-screen,
html.nk-mode-light :fullscreen,
html.nk-mode-light :-webkit-full-screen,
html[data-nk-mode="light"] :fullscreen,
html[data-nk-mode="light"] :-webkit-full-screen,
:fullscreen.nk-light,
:-webkit-full-screen.nk-light,
:fullscreen:has(.nk-light),
:-webkit-full-screen:has(.nk-light) {
    background: #f8fafc !important;
}

::backdrop {
    background: var(--v-bg, #0c0e14);
}
body.nk-mode-light ::backdrop,
body.nk-theme-mode-light ::backdrop,
html.nk-mode-light ::backdrop,
html[data-nk-mode="light"] ::backdrop,
:fullscreen.nk-light::backdrop,
:-webkit-full-screen.nk-light::backdrop,
:fullscreen:has(.nk-light)::backdrop,
:-webkit-full-screen:has(.nk-light)::backdrop,
#nk-app.nk-light::backdrop,
#nk-app.nk-light:fullscreen::backdrop,
#nk-app.nk-light:-webkit-full-screen::backdrop {
    background: #f8fafc !important;
}

body.nk-lms-fullscreen-active .nk-wrap.nk-fullscreen,
body.nk-lms-fullscreen-active .fsk-fullscreen,
body.nk-lms-fullscreen-active #nk-app.nk-fullscreen,
body.nk-lms-fullscreen-active #nk-app.fsk-fullscreen {
    background: var(--bg, #0c0e14) !important;
    color: var(--text, #eef0f6) !important;
}

body.nk-mode-light.nk-lms-fullscreen-active,
body.nk-theme-mode-light.nk-lms-fullscreen-active,
html.nk-mode-light.nk-lms-fullscreen-active body,
html[data-nk-mode="light"].nk-lms-fullscreen-active body {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    color: #1a1a2e !important;
}

body.nk-mode-light.nk-lms-fullscreen-active .nk-wrap.nk-fullscreen,
body.nk-mode-light.nk-lms-fullscreen-active .fsk-fullscreen,
body.nk-mode-light.nk-lms-fullscreen-active #nk-app,
body.nk-mode-light.nk-lms-fullscreen-active #nk-app.nk-fullscreen,
body.nk-mode-light .fsk-fullscreen,
body.nk-theme-mode-light .fsk-fullscreen,
html.nk-mode-light #nk-app:fullscreen,
html.nk-mode-light #nk-app.nk-fullscreen,
html[data-nk-mode="light"] #nk-app:fullscreen,
html[data-nk-mode="light"] #nk-app.nk-fullscreen,
#nk-app.nk-light,
#nk-app.nk-light.fsk-fullscreen,
#nk-app.nk-light.nk-fullscreen,
#nk-app.nk-light:fullscreen,
#nk-app.nk-light:-webkit-full-screen,
.nk-wrap.nk-light.nk-fullscreen,
.nk-wrap.nk-light:fullscreen,
.nk-wrap.nk-light:-webkit-full-screen {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    --bg: #f8fafc !important;
    --surface: #ffffff !important;
    --card: #ffffff !important;
    --card-hover: #f0f2f8 !important;
    --border: rgba(0, 0, 0, 0.08) !important;
    --border-strong: rgba(0, 0, 0, 0.15) !important;
    --text: #1a1a2e !important;
    --text-dim: #555770 !important;
    --text-muted: #8e90a6 !important;
    color: #1a1a2e !important;
}

/* Seamless Shortcode Responsiveness & Touch Scroll */
.nk-lms-shortcode-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-x pan-y !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    position: relative;
}
body.nk-mode-light .nk-lms-shortcode-wrap,
#nk-app.nk-light .nk-lms-shortcode-wrap,
html.nk-mode-light .nk-lms-shortcode-wrap,
html[data-nk-mode="light"] .nk-lms-shortcode-wrap {
    background: rgba(248, 250, 252, 0.95) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}
/* Inside virtual lesson .nk-v-content-card, remove redundant inner shortcode frame & margin so embedded quizzes align 100% left-to-right */
.nk-v-content-card .nk-lms-has-shortcode .nk-lms-shortcode-wrap,
body.nk-mode-light .nk-v-content-card .nk-lms-has-shortcode .nk-lms-shortcode-wrap,
html.nk-mode-light .nk-v-content-card .nk-lms-has-shortcode .nk-lms-shortcode-wrap,
html[data-nk-mode="light"] .nk-v-content-card .nk-lms-has-shortcode .nk-lms-shortcode-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}
.nk-lms-shortcode-wrap table,
.nk-lms-shortcode-wrap iframe,
.nk-lms-shortcode-wrap embed,
.nk-lms-shortcode-wrap object {
    max-width: 100% !important;
}

/* Responsive Breakpoints */
/* Pengaman global: tidak ada geser-samping (overflow-x: clip tidak merusak sticky topbar) */
html, body.nk-virtual-page { max-width: 100%; overflow-x: clip; }
.nk-v-container img, .nk-v-container video, .nk-v-container iframe { max-width: 100%; }
.nk-v-container { min-width: 0; }
.nk-v-bento-hero > * { min-width: 0; }
.nk-v-brand-wrap { flex: 0 1 auto; }
.nk-v-topbar-actions { flex-wrap: nowrap; }
/* Laptop kecil & tablet landscape (901–1180px): topbar ringkas agar tidak berdesakan */
@media (max-width: 1180px) {
    .nk-v-topbar { padding: 10px 16px; gap: 10px; }
    .nk-v-topbar-actions { gap: 6px; }
    .nk-v-brand-sub { display: none; }
    .nk-v-brand-title { max-width: 220px; }
    .nk-v-mode-label { display: none; }
    .nk-v-mode-btn, .nk-v-theme-btn { padding: 7px 10px; }
    .nk-v-container { padding: 0 16px; }
}
/* Tablet portrait (iPad 768–900px): pakai menu burger seperti HP */
@media (max-width: 900px) {
    .nk-v-topbar-actions { display: none !important; }
    .nk-v-burger-btn { display: inline-flex !important; }
    .nk-v-brand-title { max-width: 40vw; }
}
@media (max-width: 860px) {
    .nk-v-bento-hero { grid-template-columns: 1fr; }
    .nk-v-nav-bar { grid-template-columns: 1fr 1fr; }
    .nk-v-nav-btn-center { grid-column: span 2; order: 3; }
    .nk-v-paywall-grid { grid-template-columns: 1fr; }
    .nk-v-bento-tile { padding: 20px; }
}
@media (max-width: 768px) {
    .nk-v-topbar-actions { display: none !important; }
    .nk-v-burger-btn { display: inline-flex !important; }
    .nk-v-brand-sub { display: none; }
    .nk-v-topbar { padding: 8px 12px; gap: 8px; }
    .nk-v-curriculum-trigger { padding: 6px 12px; font-size: 12px; }
    .nk-v-container { margin: 10px auto 30px; padding: 0 10px; }
    /* Sembunyikan Bento Hero Header di Mobile Sesuai Permintaan Siswa (Hanya sisakan Topbar & Burger) */
    .nk-v-bento-hero {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }
    .nk-v-content-card { padding: 12px 10px; border-radius: var(--nk-radius-md); }
}
@media (max-width: 600px) {
    .nk-v-topbar { padding: 8px 10px; }
    .nk-v-brand-icon { width: 32px; height: 32px; }
    .nk-v-brand-title { font-size: 13px; max-width: 34vw; }
    .nk-v-curriculum-trigger span:not(.nk-v-badge-pill) { display: none; }
    .nk-v-nav-bar { grid-template-columns: 1fr; }
    .nk-v-nav-btn-center { grid-column: span 1; order: 2; }
    .nk-v-nav-btn { justify-content: center; width: 100%; min-height: 46px; }
    .nk-video-locked-card, .nk-content-locked-card { margin: 12px auto !important; padding: 28px 16px !important; }
    .nk-locked-features { flex-direction: column; align-items: stretch; }
    .nk-locked-cta-btn { width: 100%; justify-content: center; box-sizing: border-box; }
}
@media (max-width: 380px) {
    .nk-v-container { padding: 0 6px; }
    .nk-v-content-card { padding: 10px 6px; }
}

/* The virtual lesson already provides previous/next and a curriculum drawer. */
.nk-v-content-card .nk-lms-standalone > .nk-lms-card > .nk-lms-nav-bar {
    display: none;
}

/* JLPT/JFT and other embedded units use the full canvas on touch-sized screens. */
@media (max-width: 1180px), (max-width: 1366px) and (pointer: coarse) {
    body.nk-virtual-page .nk-v-container--embed {
        width: 100%;
        max-width: none;
        padding-inline: 0;
        margin-top: 0;
    }

    .nk-v-container--embed > .nk-v-content-card,
    .nk-v-container--embed .nk-wrap.nk-lms-standalone,
    .nk-v-container--embed .nk-lms-shortcode-wrap {
        width: 100% !important;
        max-width: none !important;
        min-width: 0;
        min-height: 0;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nk-v-container--embed > :is(.nk-v-bento-hero, .nk-v-nav-bar) {
        margin-inline: 16px;
    }
    .nk-v-container--embed > .nk-v-nav-bar {
        margin-top: 20px;
    }
}

/* 4.184.1: remove the outer course frame around a normal mobile chapter. */
@media (max-width: 600px) {
    html:not(.nk-lms-fullscreen-active) .nk-v-content-card:not(.nk-fullscreen):not(.fsk-fullscreen):not(:fullscreen):not(:-webkit-full-screen):not(.nk-fullscreen *):not(.fsk-fullscreen *):not(:fullscreen *):has(#nk-app.nk-wrap:not(.nk-fullscreen):not(.fsk-fullscreen):not(:fullscreen):not(:-webkit-full-screen)) {
        border: 0;
        border-radius: 0;
        padding-inline: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}
