            html, body {
        height: 100%;
        margin: 0;
        padding: 0;
    }

    body {
        touch-action: manipulation; 
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background-color: #f9f9f7; /* ← versi elegan dari #f8fafc */
        color: #333; /* pastikan teks tetap gelap tapi tidak hitam pekat */
        font-family: 'Segoe UI', Arial, sans-serif;
        line-height: 1.6;
        padding-top: 70px; /* tetap untuk navbar */
    }

    main.container {
        flex: 1; /* ini kuncinya: dorong footer ke bawah */
        background-color: white;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.03);
        padding: 2rem;
        margin-bottom: 2rem;
    }

    footer-end {
        background-color: #e9ecef;
        font-size: 0.9rem;
        text-align: center;
        padding: 10px 0;
        margin-top: auto; /* biar footer nempel bawah */
    }


.brand {
            font-family: 'Bree Serif', serif;
            letter-spacing: 0.8px;
            text-shadow: 0px 0px 5px rgb(22, 22, 22);
        }
.brand span {
            font-family: 'Bree Serif', serif;
            letter-spacing: 0.8px;
        }

        .navbar-brand {
            font-family: 'Bree Serif', serif;
            font-size: 1.5rem;
            letter-spacing: 0.5px;
        }

                .navbar-brand {
            font-family: 'Bree Serif', serif;
            font-size: 1.6rem;
            letter-spacing: 0.5px;
            color: #fff !important;
            text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
        }
        .navbar-brand span {
            color: #ffeb3b; /* warna aksen pada "Edu" */
        }

        .navbar-brand img {
            height: 38px;
            margin-right: 8px;
        }

.hazlabs{
            font-family: 'Bree Serif', serif;
            letter-spacing: 0.8px;
            text-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}   
        #userDropdown + .wadah {
    transform: translateY(-2px) !important;
}


        .dropdown-menu {
            border: none;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.15);
            padding: 0.5rem 0;
            margin-top: 4px;
            background: white;
        }
        .dropdown-menu-end{
            margin-top: 2px;
            margin-right: 0px;
        }

        .dropdown-item {
            padding: 0.3rem 1.2rem;
            color: #333;
            font-size: 0.95rem;
            transition: background-color 0.2s ease;
        }

        .dropdown-item:hover {
            background-color: #f8f9fa;
            color: #0d47a1;
        }

        .dropdown-item i {
            margin-right: 8px;
            color: #666;
        }

        .navbar-nav .nav-link {
            color: #dadada !important;
            font-weight: 500;
            transition: color 0.3s ease, border-bottom 0.3s ease;
            padding: 0.5rem 0.8rem;
            border-bottom: 2px solid transparent;
        }

        .navbar-nav .nav-link:hover,
        .navbar-nav .nav-link.active {
            color: #ffffff !important;
            border-bottom: 2px solid #ffffff;
            background-color: #4088f4;
            border-radius: 1rem;
            transition: all 0.2s ease;
        }


        .footer-link {
  color: #cccccc;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
}

.footer-link:hover {
  color: #ffffff;
}

.social-icon {
  font-size: 1.5rem;
  color: white;
  text-decoration: none;
}

.social-icon:hover {
  color: #dddddd;
}


.custom-sparkle {
    display: inline-block;
    position: relative;
    font-size: inherit;
    animation: sparkleSpin 3s linear infinite;
}

    .custom-sparkle::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 150%;
        height: 150%;
        background: radial-gradient(circle, 
            var(--sparkle-color) 0%, 
            transparent 70%);
        opacity: 0.3;
        transform: translate(-50%, -50%);
        animation: sparklePulse 1s ease-in-out infinite;
        border-radius: 50%;
        pointer-events: none;
    }

    @keyframes sparklePulse {
        0%, 100% { opacity: 0.2; transform: translate(-50%, -50%) scale(0.8); }
        50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
    }

    .custom-toggler .navbar-toggler-icon {
            filter: invert(79%) sepia(85%) saturate(508%) hue-rotate(3deg) brightness(107%) contrast(185%);
            font-weight: bold;
            color:#ffeb3b
        }
    .navbar {
            background: linear-gradient(135deg, #0d47a1 0%, #1a5fcf 100%);
            background-color: rgba(26, 95, 207, 0.95); /* fallback untuk kompatibilitas */
            backdrop-filter: blur(8px); /* efek kabut halus — sangat elegan */
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
        .custom-toggler:focus {
            box-shadow: rgb(42, 42, 255); 
        }

    #fotoPreview {
            width: 30px;
            height: 30px;
            object-fit: cover;
            border-radius: 50%;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }

    #fotoPreview:hover {
            transform: scale(1.08);
            box-shadow: 0 0 10px rgba(13, 71, 161, 0.3);
        }

/* --- EFEK HOVER: HANYA UNTUK DESKTOP --- */
@media (min-width: 992px) {
    .nav-item.dropdown .dropdown-menu {
        display: block !important; /* Penting agar tetap muncul saat hover */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        transform: translateY(5px);
        pointer-events: none; /* Agar dropdown tidak bisa di-interact saat hidden */
    }

    .nav-item.dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto; /* Dropdown bisa di-interact saat visible */
    }
}

    /* ========== PREMIUM STYLES ========== */

.premium-teaser-card {
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.bg-gradient-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Blur Overlay */
.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1021;
    border-radius: 0.25rem;
}

.blurred-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
    z-index: 1020;
}

.blurred-dikit {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    z-index: 1020;
}

.tombol-overlay{
      position: absolute;
 top:0; bottom:0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.tombol-overlay a{
  pointer-events: auto;
}

.btn-upgrade{
    box-shadow: 2px 2px 4px gray;
}

@media (max-width: 768px) {

}

.blur-text {
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    height: 20px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Unlock Prompt */
.unlock-prompt {
    max-width: 600px;
    padding: 40px 20px;
}

.lock-icon {
    animation: lockPulse 2s infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Premium Button */
.btn-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    color: white;
}

/* Pricing Box */
.pricing-box {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe4b3 100%);
    padding: 20px;
    border-radius: 15px;
    display: inline-block;
}



.pricing-box h2 {
    font-size: 3rem;
    font-weight: 800;
    margin: 0;
}

/* Premium Features List */
.premium-features ul li {
    text-align: left;
    font-size: 1rem;
    padding: 5px 0;
}

.premium-features ul li i {
    margin-right: 10px;
}


.stars {
    color: #ffc107;
    font-size: 1.1rem;
}



/* --- MOBILE: GUNAKAN LOGIKA BOOTSTRAP BAWAAN --- */
@media (max-width: 991.98px) {
    .navbar-nav .dropdown-menu {
        min-width: 160px !important; /* Minimal lebar yang nyaman di mobile */
        /*width: auto !important;      /* Biarkan menyesuaikan konten */
        /*max-width: 240px !important; /* Batas maksimal agar tidak terlalu lebar */
        padding: 0.5rem 0 !important;
        border-radius: 0.75rem !important;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1) !important;
        margin-top: 0.25rem !important;
        right: 0 !important;
        left: auto !important;
        transform: none !important;
        display: none !important;
        transition: background-color 0.3s ease;
    }

    h2{
       font-size: calc(1rem + .8vw) !important;
}
    /* Bootstrap menambahkan kelas .show saat dropdown dibuka */
    .navbar-nav .dropdown-menu.show {
        display: block !important; /* Tampilkan saat kelas show aktif */
    }

    .navbar-nav .dropdown-item {
        padding: 0.6rem 1rem !important;
        font-size: 0.9rem !important;
        white-space: nowrap; /* Hindari teks pindah baris */
    }

        .navbar-nav .dropdown-item {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    .navbar-nav .dropdown-toggle {
        padding: 0.5rem 0.75rem !important;
    }
}