html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    background-color: #0b0c10;
    overflow-x: hidden;
}

/* --- CINEMATIC FIXED BACKGROUND --- */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -3;
    opacity: 0;
    transform: scale(1);
    transition: opacity 2s ease-in-out, transform 8s cubic-bezier(0.25, 1, 0.5, 1);
}

.dynamic-bg.active-zoom {
    opacity: 1;
    transform: scale(1.06);
}

.bg-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.35); 
    z-index: -2;
    pointer-events: none;
}

.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: -1;
    pointer-events: none;
}

.navbar {
    background: rgba(0, 0, 0, 0.45);      
    backdrop-filter: blur(10px);            
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 65px;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
    position: relative;
}

.logo {
    color: #1900FF;
    font-weight: bold;
    font-size: 26px;
    font-style: italic;
    text-decoration: none;
}

.logo:hover {
    color: #6bb0ff; 
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #4a90e2;
}

.nav-links a.active-btn {
    color: #4a90e2;
    font-weight: bold;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 2px;
}

/* HAMBURGER TOGGLE BUTTON */
.hamburger-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 40px 20px;
    box-sizing: border-box;
    width: 100%;
    position: relative;
    z-index: 2;
}

/* HERO SECTION STYLING */
.hero-card {
    width: 100%;
    max-width: 650px;
    background: rgba(25, 30, 40, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 45px 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    text-align: center;
    margin: 30px auto;
}

.hero-title {
    color: #f3e5ab;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-slogan {
    font-style: italic;
    color: #f3e5ab;
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 500;
}

.hero-desc {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* --- HERO BUTTONS (POLOS DI AWAL, HOVER JADI BIRU) --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover, .btn-secondary:hover {
    background-color: #1900FF;
    border-color: #1900FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 0, 255, 0.4);
}

/* FORM & TERMS CARD STYLING */
.form-card, .terms-card {
    position: relative;
    background: rgba(25, 30, 40, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 40px 45px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    max-width: 750px;
    width: 100%;
    margin: 30px auto;
}

/* MODAL STYLING */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-card {
    width: 100%;
    max-width: 600px;
    background: rgba(25, 30, 40, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    max-height: 80vh;
    overflow-y: auto;
}

.form-card h2 {
    color: #f3e5ab; 
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
}

.input-group {
    display: flex;
    margin-bottom: 12px;
    flex-direction: column;
}

.form-card .input-group label,
.form-card .terms-group label {
    color: #ffffff; 
    font-size: 13px;
    margin-bottom: 4px;
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-sizing: border-box; 
}

.radio-group {
    display: flex;
    gap: 25px;
    margin-top: 5px;
}

.radio-group label {
    cursor: pointer;
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 5px;
    color: white;
}

.terms-group {
    margin: 15px 0;
}

.terms-link {
    color: #4a90e2;
    text-decoration: underline;
}

#submitBtn, 
.form-card button, 
button[type="submit"] {
    width: 100%;
    background-color: #1900FF;
    color: white;
    border: none;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-top: 15px;
}

#submitBtn:hover, 
.form-card button:hover, 
button[type="submit"]:hover {
    background-color: #1400cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 0, 255, 0.4);
}

/* MUSIC CARD */
.absolute-music-card {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 25px auto;
    background: rgba(20, 24, 33, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.music-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.music-art-container {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.album-art {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.absolute-music-card.playing .album-art {
    animation: rotateVinyl 4s linear infinite;
}

@keyframes rotateVinyl {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.music-title {
    display: block;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.music-artist {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

#playPauseBtn {
    background: #ffffff;
    color: #191b22;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

#playPauseBtn:hover {
    background: #f3e5ab;
    transform: scale(1.05);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 14px;
}

.volume-container i {
    cursor: pointer;
    color: rgba(255, 255, 255, 0.85);
}

#volumeSlider {
    width: 80px;
    accent-color: #ffffff;
    cursor: pointer;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
    width: 100%;
    z-index: 10;
    flex-shrink: 0;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-slogan {
    font-style: italic;
    color: #f3e5ab;
    margin: 0;
    font-weight: 500;
}

.footer-brand {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
}

.footer-center {
    display: flex;
    gap: 25px;
}

.footer-center a {
    color: #ffffff;
    text-decoration: none;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.footer-right a {
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    background: rgba(255, 255, 255, 0.15); 
    color: white;
    width: 32px;            
    height: 32px;            
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;        
    border: 1px solid rgba(255, 255, 255, 0.2); 
}

/* ================================================= */
/* RESPONSIVE DESIGN MOBILE & HAMBURGER MENU         */
/* ================================================= */
@media screen and (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .logo {
        font-size: 20px;
    }

    .hamburger-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 20, 30, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        max-height: 250px;
        padding: 20px 0;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 16px;
        width: 100%;
        text-align: center;
    }

    .nav-links a.active-btn {
        border-bottom: none;
        background: rgba(255, 255, 255, 0.08);
    }

    .main-container {
        padding: 20px 15px;
    }

    .hero-card, 
    .form-card,
    .terms-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 25px 18px !important;
        margin: 10px auto !important;
        border-radius: 16px;
    }

    .absolute-music-card {
        padding: 10px 14px;
        gap: 10px;
    }

    .music-controls {
        gap: 12px;
    }

    #volumeSlider {
        width: 55px;
    }

    .footer {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left, .footer-right {
        align-items: center;
    }

    .footer-center {
        gap: 20px;
    }
}

.fa-instagram-color { color: #E1306C; }
.fa-discord-color { color: #5865F2; }
.fa-tiktok-color { color: #ffffff; }

/* --- 3D FLIP CARD --- */
.flip-container {
    perspective: 1000px;
    width: 100%;
    max-width: 650px;
    margin: 20px auto;
}

.flipper {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flip-container.flipped .flipper {
    transform: rotateY(180deg);
}

.front-card, .back-card {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background: rgba(25, 30, 40, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
}

.front-card {
    position: relative;
    z-index: 2;
}

.back-card {
    transform: rotateY(180deg);
    z-index: 1;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    line-height: 1.7;
}

/* --- PASSWORD WRAPPER --- */
.password-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

.password-wrapper input {
    width: 100%;
    padding-right: 45px;
    box-sizing: border-box;
}

.password-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    display: inline-block;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    padding: 0;
    margin: 0;
    line-height: 1;
    z-index: 10;
}

.password-wrapper .toggle-password:hover {
    color: #ffffff;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

/* --- NAVBAR PROFILE AVATAR --- */
.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.nav-avatar:hover {
    transform: scale(1.08);
    border-color: #f3e5ab;
}

.nav-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-default-bg {
    background-color: var(--avatar-bg, #1900FF);
}

/* --- HOVER EFFECT UNTUK FOOTER EMAIL & SOSIAL MEDIA --- */
.footer-right a[href^="mailto:"]:hover {
    color: #6bb0ff !important;
    text-decoration: underline;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: #f3e5ab;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* --- HOVER EFFECT UNTUK NAVIGASI DI FOOTER --- */
.footer-center a:hover {
    color: #f3e5ab !important;
    text-decoration: underline;
}

/* --- MENU HUB / GRID CARDS STYLING --- */
.menu-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.menu-card {
    background: rgba(25, 30, 40, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Hover khusus Card (Ikut keangkat dan bersinar halus) */
.menu-card:hover {
    transform: translateY(-5px);
    border-color: rgba(243, 229, 171, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    background: rgba(30, 36, 48, 0.9);
}

.menu-card-icon {
    font-size: 42px;
    color: #f3e5ab;
    margin-bottom: 20px;
}

.menu-card-title {
    color: #f3e5ab;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.menu-card-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Tombol di dalam Grid Card (Polos transparan di awal, hover jadi biru) */
.menu-card-btn {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Hover khusus Tombol (Berubah jadi biru menyala) */
.menu-card-btn:hover {
    background-color: #1900FF;
    border-color: #1900FF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(25, 0, 255, 0.4);
}

/* --- DASHBOARD WIDGET STYLING (HOME PAGE) --- */
.dashboard-widget {
    background: rgba(25, 30, 40, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 650px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative; 
}

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.2);
    border-radius: 16px 16px 0 0;
    transition: all 0.3s ease;
}

.widget-title {
    color: #f3e5ab;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-toggle-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 12px;
}

.widget-toggle-btn:hover {
    background: #ff6b6b;
    color: white;
}

.widget-body {
    padding: 20px;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out, opacity 0.3s ease;
    max-height: 800px;
    opacity: 1;
    overflow: hidden;
}

/* ========================================= */
/* --- STATE SAAT WIDGET DI-MINIMIZE --- */
/* ========================================= */
/* Bikin widget ilang total dari layar, tanpa sisa tombol bulat */
.dashboard-widget.minimized {
    display: none !important;
}

/* --- FLOATING RESTORE BUTTON (Tampilkan Panel) --- */
.floating-restore-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(25, 30, 40, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(243, 229, 171, 0.4);
    color: #f3e5ab;
    padding: 10px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 99;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.floating-restore-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-restore-btn:hover {
    background: rgba(35, 42, 58, 0.95);
    border-color: #f3e5ab;
    transform: translateY(-2px);
}