/* MOBILE-02B — Landing page mobile only.
   Scope sengaja hanya body.elok-landing-body agar login dan dashboard tidak ikut berubah. */
@media (max-width: 767px) {
    html:not(.elok-landing-modal-lock),
    html:not(.elok-landing-modal-lock) body.elok-landing-body {
        height: auto !important;
        min-height: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: auto !important;
    }

    body.elok-landing-body {
        position: static !important;
        width: 100% !important;
        max-width: 100vw !important;
    }

    body.elok-landing-body .elok-landing-main {
        display: block !important;
        height: auto !important;
        min-height: 100dvh !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding-bottom: calc(5.8rem + env(safe-area-inset-bottom)) !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-y !important;
    }

    body.elok-landing-body .elok-landing-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 80 !important;
        width: 100% !important;
    }

    body.elok-landing-body #home {
        padding-top: 1.35rem !important;
        scroll-margin-top: 5.6rem !important;
    }

    body.elok-landing-body [data-spa-section] {
        scroll-margin-top: 5.6rem !important;
    }

    body.elok-landing-body .elok-landing-menu-switch {
        position: fixed !important;
        width: 1px !important;
        height: 1px !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.elok-landing-body [data-landing-menu-trigger] {
        position: relative !important;
        z-index: 95 !important;
        min-width: 2.75rem !important;
        min-height: 2.75rem !important;
        user-select: none !important;
        -webkit-tap-highlight-color: transparent !important;
        touch-action: manipulation !important;
    }

    body.elok-landing-body [data-landing-menu-panel] {
        display: none !important;
        position: absolute !important;
        left: .75rem !important;
        right: .75rem !important;
        top: calc(100% + .55rem) !important;
        z-index: 90 !important;
        max-height: calc(100dvh - 7rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 1px solid rgba(125, 211, 252, .22) !important;
        border-radius: 1.25rem !important;
        background: rgba(2, 6, 23, .98) !important;
        box-shadow: 0 24px 70px rgba(2, 6, 23, .55), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
        -webkit-overflow-scrolling: touch !important;
    }

    body.elok-landing-body #elokLandingMenuSwitch:checked ~ .elok-landing-header [data-landing-menu-panel] {
        display: block !important;
    }

    body.elok-landing-body #elokLandingMenuSwitch:checked ~ .elok-landing-header [data-landing-menu-trigger] {
        border-color: rgba(125, 211, 252, .48) !important;
        background: rgba(14, 165, 233, .16) !important;
        color: #e0f2fe !important;
    }

    body.elok-landing-body [data-landing-menu-panel] nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .55rem !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link,
    body.elok-landing-body [data-landing-menu-panel] .elok-btn-primary {
        min-height: 2.85rem !important;
        border-radius: 1rem !important;
        justify-content: center !important;
        text-align: center !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-btn-primary {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 380px) {
    body.elok-landing-body [data-landing-menu-panel] nav {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* MOBILE-02B-R1 — Landing only: hamburger menu clean + no floating CTA cover. */
@media (max-width: 767px) {
    body.elok-landing-body .elok-landing-navbar {
        min-height: 4.25rem !important;
        padding: .62rem .85rem !important;
        gap: .65rem !important;
    }

    body.elok-landing-body .elok-landing-navbar > a[aria-label="E-LOK Home"] {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }

    body.elok-landing-body .elok-landing-navbar > a[aria-label="E-LOK Home"] .elok-brand-mark {
        height: 2.35rem !important;
        width: 2.35rem !important;
        border-radius: .95rem !important;
    }

    body.elok-landing-body .elok-landing-navbar > a[aria-label="E-LOK Home"] p:first-child {
        font-size: .94rem !important;
        line-height: 1rem !important;
    }

    body.elok-landing-body .elok-landing-navbar > a[aria-label="E-LOK Home"] p:last-child {
        max-width: 11rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Landing mobile cukup hamburger. Semua aksi/menu masuk ke panel. */
    body.elok-landing-body .elok-landing-actions > :not([data-landing-menu-trigger]) {
        display: none !important;
    }

    body.elok-landing-body .elok-landing-mobile-cta {
        display: none !important;
    }

    body.elok-landing-body .elok-landing-main {
        padding-bottom: 2rem !important;
    }

    body.elok-landing-body #home {
        padding-top: 2.2rem !important;
        scroll-margin-top: 5.2rem !important;
    }

    body.elok-landing-body [data-spa-section] {
        scroll-margin-top: 5.2rem !important;
    }

    body.elok-landing-body [data-landing-menu-trigger] {
        display: grid !important;
        position: relative !important;
        z-index: 110 !important;
        flex: 0 0 auto !important;
        min-width: 2.7rem !important;
        min-height: 2.7rem !important;
        border-color: rgba(125, 211, 252, .24) !important;
        background: rgba(15, 23, 42, .86) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 34px rgba(2,6,23,.32) !important;
        cursor: pointer !important;
        pointer-events: auto !important;
    }

    body.elok-landing-body [data-landing-menu-panel] {
        display: block !important;
        position: fixed !important;
        left: .85rem !important;
        right: .85rem !important;
        top: calc(4.45rem + env(safe-area-inset-top)) !important;
        z-index: 105 !important;
        max-height: min(76dvh, 34rem) !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        border: 1px solid rgba(125, 211, 252, .22) !important;
        border-radius: 1.35rem !important;
        background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98)) !important;
        box-shadow: 0 28px 80px rgba(2, 6, 23, .65), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateY(-10px) scale(.98) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform .18s ease, opacity .18s ease, visibility .18s ease !important;
    }

    body.elok-landing-body #elokLandingMenuSwitch:checked ~ .elok-landing-header [data-landing-menu-panel],
    html[data-landing-menu="open"] body.elok-landing-body [data-landing-menu-panel] {
        transform: translateY(0) scale(1) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    body.elok-landing-body [data-landing-menu-panel] nav {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: .65rem !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link {
        min-height: 3rem !important;
        border-radius: 1rem !important;
        justify-content: center !important;
        text-align: center !important;
        border: 1px solid rgba(148, 163, 184, .16) !important;
        background: rgba(15, 23, 42, .72) !important;
        color: #dbeafe !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    body.elok-landing-body .elok-landing-menu-primary,
    body.elok-landing-body .elok-landing-menu-secondary {
        display: inline-flex !important;
        min-height: 3rem !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 1rem !important;
        padding: .75rem .9rem !important;
        font-size: .82rem !important;
        font-weight: 900 !important;
        text-align: center !important;
        text-decoration: none !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    body.elok-landing-body .elok-landing-menu-primary {
        background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
        color: #fff !important;
        box-shadow: 0 16px 34px rgba(37, 99, 235, .25) !important;
    }

    body.elok-landing-body .elok-landing-menu-secondary {
        border: 1px solid rgba(125, 211, 252, .25) !important;
        background: rgba(14, 165, 233, .10) !important;
        color: #bae6fd !important;
    }
}

@media (max-width: 380px) {
    body.elok-landing-body .elok-landing-navbar > a[aria-label="E-LOK Home"] p:last-child {
        max-width: 8.4rem !important;
    }

    body.elok-landing-body [data-landing-menu-panel] nav,
    body.elok-landing-body [data-landing-menu-panel] .mb-3.grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* MOBILE-02C — Landing only: theme and accent controls inside hamburger menu. */
@media (max-width: 767px) {
    body.elok-landing-body .elok-landing-menu-settings {
        display: grid !important;
        gap: .78rem !important;
        margin: .72rem 0 .86rem !important;
        padding: .86rem !important;
        border: 1px solid rgba(125, 211, 252, .22) !important;
        border-radius: 1.15rem !important;
        background: linear-gradient(135deg, rgba(14, 165, 233, .13), rgba(30, 41, 59, .72)) !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
    }

    body.elok-landing-body .elok-landing-menu-settings-kicker {
        margin: 0 !important;
        font-size: .64rem !important;
        font-weight: 950 !important;
        letter-spacing: .22em !important;
        text-transform: uppercase !important;
        color: #7dd3fc !important;
    }

    body.elok-landing-body .elok-landing-menu-settings-title {
        margin: .2rem 0 0 !important;
        font-size: .9rem !important;
        font-weight: 950 !important;
        color: #f8fafc !important;
    }

    body.elok-landing-body .elok-landing-menu-settings-controls {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: .62rem !important;
        align-items: stretch !important;
    }

    body.elok-landing-body .elok-landing-menu-settings .elok-theme-switch,
    body.elok-landing-body .elok-landing-menu-settings .elok-accent-summary {
        width: 100% !important;
        min-height: 3rem !important;
        border-radius: 1rem !important;
        border: 1px solid rgba(125, 211, 252, .24) !important;
        background: rgba(2, 6, 23, .58) !important;
        color: #e0f2fe !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(2,6,23,.2) !important;
        justify-content: center !important;
    }

    body.elok-landing-body .elok-landing-menu-settings .elok-theme-switch {
        display: inline-flex !important;
        gap: .6rem !important;
        padding: .48rem .62rem !important;
    }

    body.elok-landing-body .elok-landing-menu-settings .elok-theme-switch-text,
    body.elok-landing-body .elok-landing-menu-settings .elok-accent-summary-text {
        display: inline !important;
        font-size: .76rem !important;
        font-weight: 950 !important;
        letter-spacing: .02em !important;
    }

    body.elok-landing-body .elok-landing-menu-settings .elok-accent-picker {
        width: 100% !important;
        position: relative !important;
    }

    body.elok-landing-body .elok-landing-menu-settings .elok-accent-dropdown {
        left: auto !important;
        right: 0 !important;
        width: min(17.5rem, calc(100vw - 2.8rem)) !important;
        max-height: 18rem !important;
        overflow-y: auto !important;
        z-index: 160 !important;
    }

    html[data-theme="light"] body.elok-landing-body .elok-landing-menu-settings {
        background: linear-gradient(135deg, rgba(240, 249, 255, .94), rgba(239, 246, 255, .88)) !important;
        border-color: rgba(14, 165, 233, .22) !important;
    }

    html[data-theme="light"] body.elok-landing-body .elok-landing-menu-settings-title {
        color: #0f172a !important;
    }

    html[data-theme="light"] body.elok-landing-body .elok-landing-menu-settings .elok-theme-switch,
    html[data-theme="light"] body.elok-landing-body .elok-landing-menu-settings .elok-accent-summary {
        background: rgba(255,255,255,.86) !important;
        color: #0f172a !important;
        border-color: rgba(14, 165, 233, .24) !important;
    }
}

@media (max-width: 380px) {
    body.elok-landing-body .elok-landing-menu-settings-controls {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* MOBILE-02C-R1 — Landing only: clean hamburger contrast and readable menu items. */
@media (max-width: 767px) {
    body.elok-landing-body [data-landing-menu-panel] {
        color: #eaf6ff !important;
    }

    body.elok-landing-body [data-landing-menu-panel] p,
    body.elok-landing-body [data-landing-menu-panel] span,
    body.elok-landing-body [data-landing-menu-panel] a,
    body.elok-landing-body [data-landing-menu-panel] button,
    body.elok-landing-body [data-landing-menu-panel] label {
        text-shadow: none !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link,
    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:visited,
    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link.active,
    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link[aria-current="page"] {
        min-height: 3.08rem !important;
        border: 1px solid rgba(125, 211, 252, .20) !important;
        background: rgba(15, 23, 42, .78) !important;
        color: #e0f2fe !important;
        opacity: 1 !important;
        font-weight: 900 !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06) !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:hover,
    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:focus-visible {
        border-color: rgba(56, 189, 248, .48) !important;
        background: rgba(14, 165, 233, .18) !important;
        color: #ffffff !important;
        outline: none !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:first-child {
        background: rgba(14, 165, 233, .16) !important;
        color: #f8fafc !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-primary,
    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-secondary {
        color: #ffffff !important;
        opacity: 1 !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-secondary {
        color: #dff7ff !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings {
        color: #f8fafc !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings .elok-theme-switch-track {
        flex-shrink: 0 !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings .elok-accent-summary,
    body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings .elok-theme-switch {
        overflow: hidden !important;
    }

    body.elok-landing-body [data-landing-menu-panel] .elok-accent-dropdown {
        color: #0f172a !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] {
        background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98)) !important;
        color: #eaf6ff !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-white,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-slate-100,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-sky-300 {
        color: inherit !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:visited,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link.active,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link[aria-current="page"] {
        background: rgba(15, 23, 42, .84) !important;
        color: #e0f2fe !important;
        border-color: rgba(125, 211, 252, .22) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:first-child {
        background: rgba(14, 165, 233, .18) !important;
        color: #ffffff !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings-kicker {
        color: #0369a1 !important;
    }
}

/* MOBILE-02C-R2 — Landing only: hamburger panel follows light/dark theme. */
@media (max-width: 767px) {
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] {
        background: linear-gradient(180deg, rgba(248, 250, 252, .98), rgba(239, 246, 255, .98)) !important;
        border-color: rgba(14, 165, 233, .24) !important;
        color: #0f172a !important;
        box-shadow: 0 24px 70px rgba(15, 23, 42, .18), inset 0 1px 0 rgba(255, 255, 255, .88) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-white,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-slate-100,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-slate-200,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-slate-300 {
        color: #0f172a !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-sky-300,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .text-sky-400 {
        color: #0284c7 !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] [data-landing-menu-close] {
        border-color: rgba(14, 165, 233, .20) !important;
        background: rgba(255, 255, 255, .92) !important;
        color: #0f172a !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .10), inset 0 1px 0 rgba(255, 255, 255, .92) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-secondary {
        border-color: rgba(14, 165, 233, .20) !important;
        background: rgba(255, 255, 255, .82) !important;
        color: #0f172a !important;
        box-shadow: inset 0 1px 0 rgba(255,255,255,.82) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings {
        background: linear-gradient(135deg, rgba(240, 249, 255, .96), rgba(219, 234, 254, .88)) !important;
        border-color: rgba(14, 165, 233, .22) !important;
        color: #0f172a !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings-kicker {
        color: #0284c7 !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings-title {
        color: #0f172a !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings .elok-theme-switch,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-landing-menu-settings .elok-accent-summary {
        background: rgba(255, 255, 255, .92) !important;
        color: #0f172a !important;
        border-color: rgba(14, 165, 233, .22) !important;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .08), inset 0 1px 0 rgba(255,255,255,.92) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:visited,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link.active,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link[aria-current="page"] {
        border-color: rgba(14, 165, 233, .18) !important;
        background: rgba(255, 255, 255, .80) !important;
        color: #0f172a !important;
        box-shadow: 0 8px 22px rgba(15, 23, 42, .06), inset 0 1px 0 rgba(255,255,255,.84) !important;
    }

    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:first-child,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:hover,
    html[data-theme="light"] body.elok-landing-body [data-landing-menu-panel] .elok-spa-nav-link:focus-visible {
        border-color: rgba(14, 165, 233, .32) !important;
        background: rgba(224, 242, 254, .92) !important;
        color: #075985 !important;
        outline: none !important;
    }

    html[data-theme="dark"] body.elok-landing-body [data-landing-menu-panel] {
        background: linear-gradient(180deg, rgba(15, 23, 42, .98), rgba(2, 6, 23, .98)) !important;
        color: #eaf6ff !important;
    }
}
