.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: #0a0a0f;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-header-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Logo Styling (Memastikan Admin Panel selaras dengan brand Joell Hoki) */
.logo-brand {
    background: linear-gradient(135deg, #60efff 0%, #0088ff 100%);
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    display: inline-flex;
    align-items: center;
}

.logo-brand span {
    color: #ffffff;
    -webkit-text-fill-color: white;
    margin-left: 2px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.datetime-container {
    flex: 1;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #fff;
}

/* Navigasi Horizontal (User & Admin) */
.user-nav, .app-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-nav a, .app-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: 600;
}

.user-nav a:hover, .app-nav a:hover {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Theme Toggle Button Style */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Hamburger Sidebar Toggle */
.sidebar-toggle-btn { 
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin-right: 15px;
    padding: 0;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0088ff;
    transform: translateY(-2px);
}

.hamburger-box {
    width: 18px;
    height: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-box span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

/* Logika Ikon Tema via CSS untuk mencegah flicker ikon */
.moon-icon { display: none; }
.sun-icon { display: block; }

body.light-theme .moon-icon { display: block; }
body.light-theme .sun-icon { display: none; }

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #0088ff;
    color: #0088ff;
}

/* --- NEW: Admin Link Badge Style (SaaS Modern) --- */
.admin-link-badge {
    display: flex;
    align-items: center;
    background: rgba(0, 136, 255, 0.1);
    border: 1.5px solid #0088ff;
    padding: 4px 12px 4px 4px !important;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.badge-icon-container {
    width: 28px;
    height: 28px;
    background: #0088ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-right: 10px;
    box-shadow: 0 2px 6px rgba(0, 136, 255, 0.3);
}

.badge-text {
    color: #0088ff !important;
    font-weight: 700;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-link-badge:hover {
    background: rgba(0, 136, 255, 0.2);
    border-color: #0051ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 136, 255, 0.2);
}

body.light-theme .admin-link-badge {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Profile Dropdown Styles */
.user-profile-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 50px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0088ff, #60efff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 136, 255, 0.3);
}

.settings-icon-mobile { display: none; }

.user-name-text {
    font-size: 0.85rem;
    font-weight: 600;
}

.chevron-icon {
    opacity: 0.5;
    transition: transform 0.3s;
}

.user-profile-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: #0a0a0f;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1000;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-menu.show {
    display: block;
}

@keyframes slideDown {
    from { opacity: 0; margin-top: -10px; }
    to { opacity: 1; margin-top: 0; }
}

.dropdown-info {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
}

body.light-theme .dropdown-info {
    border-bottom-color: #f1f5f9;
}

body.light-theme .user-name-mobile {
    color: #0f172a;
}

.status-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2ed573;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #2ed573;
    border-radius: 50%;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 12px;
    transition: all 0.2s;
    background: transparent !important;
}

body.light-theme .dropdown-menu a {
    color: #475569 !important;
}

body.light-theme .dropdown-menu a:hover {
    background: #f1f5f9 !important;
    color: #0088ff !important;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

.logout-link:hover {
    color: #ff4757 !important;
    background: rgba(255, 71, 87, 0.05) !important;
}

/* --- Sidebar Styling --- */
.app-sidebar {
    position: fixed;
    top: 70px; /* Di bawah header */
    left: 0;
    bottom: 0;
    width: 260px;
    background: rgba(10, 10, 15, 0.98);
    border-right: 1px solid rgba(255, 215, 0, 0.1);
    z-index: 900;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer dan Edge */
}
.app-sidebar::-webkit-scrollbar { display: none; } /* Chrome, Safari, dan Opera */

/* Geser konten utama saat sidebar ada */
body.app-body main, body.admin-body main { 
    margin-left: 260px; 
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 !important;
    display: block; /* Override flex centering */
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.sidebar-inner { padding: 30px 15px; }
.sidebar-group { margin-bottom: 30px; }
.sidebar-label { 
    display: block; 
    font-size: 0.65rem; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1.5px; 
    color: rgba(255, 255, 255, 0.3); 
    margin-bottom: 15px; 
    margin-left: 15px; 
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.6) !important;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: transform 0.2s ease, background-color 0.2s ease;
    margin-bottom: 5px;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
}

.sidebar-link.active {
    background: linear-gradient(135deg, rgba(0, 136, 255, 0.15) 0%, rgba(0, 97, 255, 0.05) 100%);
    color: #0088ff !important;
    border: 1px solid rgba(0, 136, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-link.active svg { color: #0088ff; }

/* --- Submenu Styles --- */
.sidebar-dropdown { position: relative; }
.dropdown-chevron { margin-left: auto; transition: transform 0.3s ease; opacity: 0.5; }
.sidebar-link.active .dropdown-chevron { transform: rotate(180deg); }

.sidebar-submenu {
    display: none !important;
    padding-left: 45px;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 5px;
}
.sidebar-submenu.show { display: flex !important; }

.sidebar-submenu a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 0;
}
.sidebar-submenu a:hover { color: #0088ff; }
.sidebar-submenu a.active { color: #0088ff; font-weight: 700; }

/* --- OVERRIDES LIGHT THEME UNTUK SIDEBAR --- */
body.light-theme .app-sidebar {
    background: #ffffff;
    border-right-color: rgba(0, 0, 0, 0.05);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
}
body.light-theme .sidebar-label { color: #94a3b8; }
body.light-theme .sidebar-link { color: #64748b !important; }
body.light-theme .sidebar-link:hover { background: #f8fafc; color: #0f172a !important; }
body.light-theme .sidebar-link.active {
    background: #f0f7ff;
    color: #0088ff !important;
    border-color: #cce3ff;
}
body.light-theme .sidebar-submenu a { color: #64748b; }
body.light-theme .sidebar-submenu a:hover { color: #0088ff; }

/* Responsivitas Mobile */
@media (max-width: 992px) {
    .app-sidebar { 
        transform: translateX(-100%); 
        width: 280px; top: 0; height: 100%; padding-top: 0; 
        z-index: 1100 !important; /* Sidebar berada di atas segalanya */
    }
    .sidebar-toggle-btn { display: flex; } /* Tampilkan hanya di layar kecil */
    body.sidebar-open .app-sidebar { transform: translateX(0); }
    body.app-body main, body.admin-body main { margin-left: 0; padding: 10px !important; }
    
    /* Sidebar Logo Mobile */
    .sidebar-logo-mobile {
        display: flex;
        align-items: center;
        padding: 0 20px;
        height: 64px;
        background: #0a0a0f;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Menyesuaikan border header utama */
        position: sticky; /* Agar logo tetap di atas saat sidebar di-scroll */
        top: 0;
        z-index: 100;
    }

    .sidebar-logo-mobile .logo-brand {
        font-size: 1.6rem !important;
        font-weight: 900 !important;
        text-decoration: none !important;
        letter-spacing: -1.5px !important;
        display: flex !important;
        align-items: center !important;
        background: linear-gradient(135deg, #60efff 0%, #0088ff 100%);
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        visibility: visible !important;
    }

    .sidebar-logo-mobile .logo-brand span {
        color: #ffffff; /* Default untuk dark theme */
        -webkit-text-fill-color: white;
        margin-left: 2px;
        transition: color 0.3s ease;
    }

    body.light-theme .sidebar-logo-mobile {
        background: rgba(255, 255, 255, 0.85); /* Light theme header background */
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.light-theme .sidebar-logo-mobile .logo-brand {
        background: none !important;
        -webkit-text-fill-color: #0055ff !important;
        background-clip: unset !important;
        filter: none !important;
    }

    body.light-theme .sidebar-logo-mobile .logo-brand span {
        color: #0f172a; /* Light theme header logo span color */
        -webkit-text-fill-color: #0f172a;
    }

    .app-sidebar .sidebar-inner {
        padding-top: 10px; /* Memberikan padding di bawah logo */
    }

    /* Overlay saat sidebar terbuka di mobile (tidak meredup) */
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 850;
    }
}

/* --- Landing Page Logged In Buttons --- */
.btn-dashboard-landing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0088ff 0%, #0061ff 100%);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.85rem;
    box-shadow: 0 10px 20px rgba(0, 136, 255, 0.2);
    transition: all 0.3s ease;
    margin-right: 10px;
}

.btn-dashboard-landing:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 136, 255, 0.3);
    filter: brightness(1.1);
}

/* --- OVERRIDES UNTUK TEMA TERANG (LIGHT THEME) --- */
body.light-theme .app-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.light-theme .logo-brand {
    /* Menghapus gradien (latar belakang teks) dan bayangan untuk tampilan flat yang lebih kontras */
    background: none !important;
    -webkit-text-fill-color: #0055ff !important; /* Biru solid kontras tinggi */
    background-clip: unset !important;
    filter: none !important;
}

body.light-theme .logo-brand span {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

body.light-theme .logo-brand::after {
    background: #d97706 !important; /* Warna Amber/Emas pekat agar terlihat mewah */
    box-shadow: none !important;
}

body.light-theme .user-nav a, 
body.light-theme .app-nav a {
    color: #475569;
}

body.light-theme .user-nav a:hover, 
body.light-theme .app-nav a:hover {
    color: #0088ff;
    background: rgba(0, 136, 255, 0.05);
}

body.light-theme .sidebar-toggle-btn {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

body.light-theme .theme-toggle-btn,
body.light-theme .dropdown-trigger,
body.light-theme .dropdown-menu {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #1e293b;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Sidebar Logo Mobile (Hidden by default on desktop) */
.sidebar-logo-mobile {
    display: none;
}

@media (max-width: 992px) {
    .app-header { 
        flex-direction: row; 
        justify-content: space-between; 
        padding: 12px 20px; 
    }

    /* Sidebar Logo Mobile */
    .sidebar-logo-mobile {
        display: flex; /* Tampilkan logo di sidebar saat mobile */
        align-items: center;
        padding: 0 20px;
        height: 64px;
        background: #0a0a0f;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2); /* Menyesuaikan border header utama */
        position: sticky; /* Agar logo tetap di atas saat sidebar di-scroll */
        top: 0;
        z-index: 100;
    }
    .app-header-logo {
        width: auto;
        justify-content: flex-start;
    }
    .app-header-logo .logo-brand { 
        display: none;
        font-size: 1.4rem;
    }

    /* Sembunyikan Jam di Mobile Top Bar agar tidak sesak */
    .datetime-container { display: none; }

    .app-header .user-profile-dropdown .dropdown-trigger {
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
    }

    /* Optimasi khusus untuk layar sangat kecil (di bawah 350px) */
    @media (max-width: 350px) {
        .app-header { padding: 10px 8px; }
        .sidebar-toggle-btn { margin-right: 5px; width: 34px; height: 34px; }
        .user-nav { gap: 5px; }
        .theme-toggle-btn { width: 34px; height: 34px; }
        
        /* Sembunyikan teks "Admin Panel" dan sisakan ikon saja agar hemat ruang */
        .admin-link-badge { padding: 4px !important; }
        .admin-link-badge .badge-text { display: none; }
        .badge-icon-container { margin-right: 0; }
        
        .user-avatar { width: 30px; height: 30px; font-size: 0.8rem; }
        .dropdown-trigger { padding: 4px; gap: 0; }
    }

    .user-nav, .app-nav { 
        justify-content: flex-end; 
        flex-wrap: nowrap; 
        gap: 8px; /* Jarak antar ikon yang pas */
    }
        .dropdown-menu { 
            right: 0; 
            transform: none; 
        }
}

/* --- Landing Page Mobile Menu --- */
.landing-header .navbar-toggler {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px; /* Padding yang lebih seimbang */
    z-index: 1001;
    margin-top: 15px; /* Menurunkan posisi untuk menyeimbangkan jarak atas dan bawah */
    align-items: center;
}

.landing-header .navbar-toggle-icon {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Jarak antar garis sedikit lebih lebar */
    width: 28px; /* Perbesar lebar dari 22px ke 28px */
}

.landing-header .navbar-toggle-icon span {
    display: block;
    width: 100%;
    height: 3.5px; /* Garis lebih tebal dan kokoh */
    background-color: #0f172a;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body:not(.light-theme) .landing-header .navbar-toggle-icon span {
    background-color: #ffffff;
}

/* 3-Span Animation Logic */
.landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 992px) {
    .landing-header .navbar-toggler { display: flex; }
    
    /* Push Animation Core - Khusus Dashboard Sidebar (App Body Only) */
    .app-header,
    main,
    footer,
    .app-sidebar {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: transform;
    }

    /* --- Landing Page Mobile Menu Styling --- */
    .landing-header .navbar-toggler {
        display: flex;
        cursor: pointer;
        background: none;
        border: none;
        padding: 6px;
        z-index: 1001;
        order: 2;
    }

    .landing-header .navbar-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 28px;
    }

    .landing-header .navbar-toggle-icon span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #0f172a;
        border-radius: 10px;
        transition: none !important;
    }

    body:not(.light-theme) .landing-header .navbar-toggle-icon span {
        background-color: #ffffff;
    }

    /* Animasi Toggler Hamburger (3 Baris) */
    .landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
    .landing-header .navbar-toggler.active .navbar-toggle-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* State saat Sidebar Terbuka (Push Type) */
    body.sidebar-open {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        overflow: hidden; /* Mencegah scroll saat menu terbuka */
    }

    body.sidebar-open .app-header,
    body.sidebar-open main,
    body.sidebar-open footer {
        transform: translateX(280px) !important; /* Menggeser halaman ke kanan sejauh lebar sidebar */
    }
    
    body.sidebar-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 999;
    }

    header.landing-header.scrolled {
        width: 90% !important;
        max-width: 1100px;
        padding: 12px 5px 12px 20px !important;
        top: 15px;
        border-radius: 20px;
    }

    header.landing-header .landing-logo {
        flex: 1;
        margin-top: 0;
        order: 1;
    }

    header.landing-header {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 15px 5px 15px 20px !important;
        transition: none !important;
        column-gap: 200px; /* Jarak horizontal tetap ada */
        row-gap: 0; /* Menghilangkan jarak vertikal antar baris (logo ke menu) */
    }

    .landing-header .landing-menu-wrapper {
        order: 3; 
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        display: flex !important;
        flex-direction: column;
        padding: 0 !important;
        transition: none !important;
    }

    /* Efek Melebar ke Bawah saat Aktif */
    .landing-header .landing-menu-wrapper.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        padding: 10px 0 10px !important; /* Dikurangi dari 20px */
        border-top: none !important;
        margin-top: 5px; /* Dikurangi dari 15px */
        overflow: visible !important;
    }

    body:not(.light-theme) .landing-header .landing-menu-wrapper.active {
        border-top: none !important;
    }

    .landing-header .landing-links, 
    .landing-header .landing-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        width: 100% !important;
    }

    .landing-header .landing-nav {
        flex-direction: row !important;
        border-top: none !important;
        padding-top: 20px !important;
        margin-top: 10px;
    }
    
    body:not(.light-theme) .landing-header .landing-nav {
        border-top: none !important;
    }

    .landing-header .landing-nav a { flex: 1; text-align: center; }

    body:not(.light-theme) header.landing-header .landing-menu-wrapper.active {
        border-top-color: rgba(255, 255, 255, 0.05);
    }

    header.landing-header .landing-menu-wrapper.active {
        max-height: 100vh;
        opacity: 1;
        visibility: visible;
        padding: 10px 0 10px !important;
        border-top: none !important;
        margin-top: 5px;
        overflow: visible !important; /* Paksa agar tidak ada scroll internal */
    }

    /* Reset struktur link di dalam drawer */
    header.landing-header .landing-links, 
    header.landing-header .landing-nav {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        display: flex !important;
        width: 100% !important;
        flex: none !important;
        justify-content: flex-start !important;
    }

    header.landing-header .landing-links { order: 1; margin-bottom: 15px; }
    header.landing-header .landing-nav { 
        order: 2; 
        border-top: none !important; 
        padding-top: 15px;
        margin-top: 10px;
        gap: 5px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    
    body:not(.light-theme) header.landing-header .landing-nav { 
        border-top: none !important; 
    }

    .landing-nav .admin-link-badge { 
        width: auto; 
        flex: 1; /* Mengisi sisa ruang agar tombol lebih panjang dan mendorong profil ke kanan */
        justify-content: center; 
        height: 48px; 
    }
    .landing-nav .user-profile-dropdown { width: auto; flex: 0 0 auto; }
    .landing-nav .dropdown-trigger { 
        width: auto; 
        background: transparent !important; 
        border: none !important; 
        padding: 0 !important; 
        box-shadow: none !important; 
        margin: 0;
        height: 48px;
        display: flex;
        align-items: center;
    }
    .landing-nav .dropdown-trigger .chevron-icon { display: none !important; }
    .landing-nav .user-name-text { display: none; } /* Sembunyikan nama agar tombol profil tetap ringkas di sebelah admin */
    
    /* Membuat Avatar lebih besar di mode mobile landing page */
    .landing-nav .user-avatar {
        width: 44px !important;
        height: 44px !important;
        font-size: 1.1rem !important;
    }
    
    /* Tampilkan menu link navigasi di dalam drawer */
    header.landing-header .landing-links { 
        display: flex !important; 
        width: 100%;
        flex-direction: column;
        gap: 5px;
    }

    header.landing-header .landing-links a:not(.dropdown-item-pro),
    header.landing-header .nav-dropdown-trigger {
        width: 100%;
        padding: 16px 10px;
        font-size: 1rem;
        color: #0f172a;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: 700;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 0;
    }

    body:not(.light-theme) header.landing-header .landing-links a:not(.dropdown-item-pro),
    body:not(.light-theme) header.landing-header .nav-dropdown-trigger {
        color: #ffffff;
        border-bottom-color: rgba(255, 255, 255, 0.05);
    }

    /* Hilangkan garis pada item terakhir di grup link */
    header.landing-header .landing-links a:last-child {
        border-bottom: none;
    }

    /* Dropdown tetap sebagai Overlay (Absolute) agar melayang di luar aliran menu */
    .nav-dropdown-menu,
    .landing-nav .dropdown-menu {
        position: absolute !important;
        top: calc(100% + 5px) !important;
        left: 0 !important;
        right: auto !important;
        width: 280px !important;
        max-width: 85vw;
        background: #0a0a0f !important; 
        border: 1px solid rgba(0, 136, 255, 0.3) !important;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6) !important;
        padding: 15px !important;
        border-radius: 20px !important;
        z-index: 9999 !important;
        opacity: 0;
        visibility: hidden;
        display: none;
        transform: translateY(5px) !important;
        transition: all 0.25s ease-out;
    }

    /* Memastikan container bertindak sebagai anchor untuk dropdown absolute */
    .nav-dropdown-container, 
    .user-profile-dropdown {
        position: relative !important;
    }

    /* Aturan khusus untuk Dropdown Profil agar muncul tepat di bawah profil */
    .landing-nav .user-profile-dropdown .dropdown-menu {
        top: auto !important;
        left: auto !important;
        right: 0 !important;
        width: 250px !important;
    }

    .nav-dropdown-menu.show,
    .landing-nav .dropdown-menu.show { 
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

    /* Penyesuaian item di dalam dropdown mobile (Profil, Solutions, Resources) */
    .nav-dropdown-menu a,
    .nav-dropdown-menu .dropdown-item-pro,
    .landing-nav .dropdown-menu a,
    .landing-nav .dropdown-menu .dropdown-item-switch {
        padding: 14px 18px !important;
        margin: 4px 0;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        border-radius: 14px !important;
        display: flex !important;
        align-items: center;
        gap: 12px;
    }

    /* Tema Gelap (Dark Mode) - Kontras Tinggi untuk semua dropdown mobile */
    body:not(.light-theme) .nav-dropdown-menu a,
    body:not(.light-theme) .nav-dropdown-menu .dropdown-item-pro,
    body:not(.light-theme) .landing-nav .dropdown-menu a,
    body:not(.light-theme) .landing-nav .dropdown-menu .dropdown-item-switch {
        color: rgba(255, 255, 255, 0.95) !important;
    }
    body:not(.light-theme) .nav-dropdown-menu a:hover,
    body:not(.light-theme) .nav-dropdown-menu .dropdown-item-pro:hover,
    body:not(.light-theme) .landing-nav .dropdown-menu a:hover,
    body:not(.light-theme) .landing-nav .dropdown-menu .dropdown-item-switch:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #60efff !important; /* Biru elektrik untuk highlight */
    }
    body:not(.light-theme) .dropdown-item-pro .item-title { color: #fff !important; }

    /* Tema Terang (Light Mode) - Kontras Tinggi untuk semua dropdown mobile */
    body.light-theme .nav-dropdown-menu a,
    body.light-theme .nav-dropdown-menu .dropdown-item-pro,
    body.light-theme .landing-nav .dropdown-menu a,
    body.light-theme .landing-nav .dropdown-menu .dropdown-item-switch {
        color: #1e293b !important;
    }
    body.light-theme .nav-dropdown-menu a:hover,
    body.light-theme .nav-dropdown-menu .dropdown-item-pro:hover,
    body.light-theme .landing-nav .dropdown-menu a:hover,
    body.light-theme .landing-nav .dropdown-menu .dropdown-item-switch:hover {
        background: #f1f5f9 !important;
        color: #0088ff !important;
    }
    body.light-theme .dropdown-item-pro .item-title { color: #0f172a !important; }
    body.light-theme .dropdown-item-pro .item-desc { color: #64748b !important; }

    body.light-theme .nav-dropdown-menu,
    body.light-theme .landing-nav .dropdown-menu {
        background: #ffffff !important;
        border-color: #e2e8f0 !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }

    .dropdown-item-pro { 
        padding: 12px !important; 
        background: transparent !important;
    }
    .dropdown-item-pro .item-title { font-size: 0.85rem !important; }
    .dropdown-footer-link { display: none; } /* Sembunyikan link tambahan agar ringkas */

    /* Penyesuaian Tombol Login & Start di Drawer */
    header.landing-header .btn-login {
        flex: 1;
        width: auto;
        padding: 14px 10px !important;
        text-align: center;
        color: #0f172a !important;
        font-weight: 700;
        background: rgba(0,0,0,0.05);
        border-radius: 50px;
    }
    body:not(.light-theme) header.landing-header .btn-login { color: #ffffff !important; background: rgba(255,255,255,0.05); }

    header.landing-header .btn-get-started { 
        flex: 1;
        text-align: center; 
        margin-top: 0 !important;
        padding: 14px 10px !important;
    }
}

/* --- Dropdown Switch Component --- */
.dropdown-item-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.2s;
    color: rgba(255, 255, 255, 0.8);
}

.dropdown-item-switch:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
}

.theme-switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute; content: "";
    height: 12px; width: 12px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider { background-color: #0088ff; }
input:checked + .slider:before { transform: translateX(16px); }

body.light-theme .dropdown-item-switch { color: #475569; }
body.light-theme .dropdown-item-switch:hover { background: rgba(0, 0, 0, 0.03) !important; }
body.light-theme .slider { background-color: #cbd5e1; }

@media (max-width: 380px){
    header.landing-header {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 15px 5px 15px 20px !important;
        transition: none !important;
        column-gap: 100px; /* Jarak horizontal tetap ada */
        row-gap: 0; /* Menghilangkan jarak vertikal antar baris (logo ke menu) */
    }

}