:root {
    --primary: #0f0f0f;
    --secondary: #1f1f1f;
    --card-bg: #2a2a2a;
    --accent: #f39c12; 
    --accent-hover: #d35400;
    --text: #ffffff;
    --text-muted: #aaaaaa;
    --success: #27ae60;
    --danger: #c0392b;
    --border: #444;
    --nav-height: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Roboto', sans-serif; -webkit-tap-highlight-color: transparent; }

body {
    background-color: var(--primary);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content-wrapper {
    flex: 1;
    width: 100%;
    padding-bottom: 80px; /* Space for mobile nav */
}

.site-footer {
    text-align: center; 
    padding: 20px; 
    color: #666; 
    font-size: 0.8rem; 
    background: var(--secondary);
    border-top: 1px solid #333;
    margin-top: auto; 
    position: relative;
    z-index: 10;
    padding-bottom: calc(20px + var(--nav-height)); 
}

/* --- PERUBAHAN REQ 2: STYLE KHUSUS PROVIDER DI FOOTER --- */
.footer-guest-preview {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px dashed #333 !important;
    padding: 10px 0;
    margin-bottom: 20px;
}

.footer-guest-preview .bank-status-label {
    margin-bottom: 15px !important;
    transform: scale(0.95); /* Sedikit diperkecil agar pas di footer */
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(50, 50, 50, 0.5) 50%, rgba(0,0,0,0) 100%);
}
/* --------------------------------------------------------- */

/* --- HEADER STYLE --- */
header {
    background: var(--secondary);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--accent);
    min-height: 60px;
}

.logo-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
}

.logo-img { max-height: 40px; width: auto; object-fit: contain; }
.logo-text { font-size: 1.2rem; font-weight: 900; color: var(--accent); letter-spacing: 1px; }

.user-bar { display: flex; align-items: center; gap: 10px; }
.user-balance { 
    background: #000; padding: 5px 10px; border-radius: 5px; 
    border: 1px solid var(--accent); color: var(--accent); font-weight: bold; font-size: 0.9rem;
}
.btn-logout { background: var(--danger); color: white; border: none; padding: 8px 12px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; }

.mobile-balance {
    font-size: 0.9rem; font-weight: bold; color: #f1c40f; margin-top: 5px;
    background: rgba(0,0,0,0.5); padding: 2px 8px; border-radius: 4px; border: 1px solid #f1c40f;
}

/* INBOX / MEMO BUTTON */
.inbox-btn {
    background: #34495e; color: #fff; border: 1px solid #555;
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative;
    transition: 0.2s;
}
.inbox-btn:hover { background: #444; }
.badge-count {
    position: absolute; top: -5px; right: -5px;
    background: var(--danger); color: #fff;
    font-size: 0.7rem; padding: 2px 5px; border-radius: 10px;
    font-weight: bold; border: 1px solid #fff;
}

/* HEADER LOGIN FORM */
.header-login-form { display: flex; gap: 5px; align-items: center; margin-right: 5px; }
.header-login-form input { padding: 6px 10px; border-radius: 4px; border: 1px solid #444; background: #000; color: #fff; font-size: 0.85rem; width: 130px; }
.header-login-form input:focus { border-color: var(--accent); outline: none; }
.btn-login-header { padding: 6px 12px; background: #2c3e50; border: 1px solid #444; color: #fff; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: bold; }
.btn-login-header:hover { background: #34495e; }

.auth-buttons { display: flex; align-items: center; }
.auth-buttons button.btn-fill { background: var(--accent); color: #000; border: none; padding: 7px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; }
.auth-buttons button.btn-promo { background: #e74c3c; color: white; border: none; padding: 7px 15px; border-radius: 4px; font-weight: bold; cursor: pointer; margin-right: 10px; }
.auth-buttons button:hover { transform: scale(1.05); transition: 0.2s; }

/* --- RUNNING TEXT --- */
.running-text-container { background: #000; border-bottom: 1px solid #333; display: flex; align-items: center; height: 35px; overflow: hidden; }
.running-icon { background: var(--accent); color: #000; padding: 0 15px; height: 100%; display: flex; align-items: center; font-weight: bold; font-size: 0.8rem; z-index: 2; }
.marquee { flex-grow: 1; overflow: hidden; white-space: nowrap; position: relative; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 15s linear infinite; color: #fff; font-size: 0.9rem; }
@keyframes marquee { 0% { transform: translate(0, 0); } 100% { transform: translate(-100%, 0); } }

/* --- BANNER & SLIDESHOW --- */
.banner-container { width: 100%; overflow: hidden; background: #000; position: relative; min-height: 100px; }
.slide-wrapper { display: none; width: 100%; }
.slide-wrapper img { width: 100%; height: auto; display: block; animation: fade 1.5s; }
@keyframes fade { from {opacity: .4} to {opacity: 1} }

/* --- DESKTOP SUB NAVIGATION --- */
.desktop-sub-menu {
    display: none; 
    background: var(--secondary);
    border-bottom: 1px solid #333;
    padding: 10px 0;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
}

@media (min-width: 769px) {
    .desktop-sub-menu {
        display: flex;           
        flex-direction: row;     
        justify-content: center; 
        align-items: center;
    }
}

.desktop-nav-btn {
    background: #111;
    color: #aaa;
    border: 1px solid #333;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    width: 140px;
    justify-content: center;
}
.desktop-nav-btn:hover, .desktop-nav-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}
.desktop-nav-btn i { font-size: 1rem; }

/* --- UTILITY CLASSES & MOBILE ADJUSTMENTS --- */
.desktop-only { display: block; }
.mobile-only { display: none; }
.desktop-only-flex { display: flex; }

.mobile-inbox-pos { display: none; }

@media (max-width: 768px) { 
    .desktop-only { display: none !important; } 
    .desktop-only-flex { display: none !important; }
    .mobile-only { display: block !important; } 
    
    header { position: relative; justify-content: center; min-height: 70px; }
    
    .mobile-inbox-pos {
        display: flex !important;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 110;
    }

    .logo-container { align-items: center; }
    .logo-img { max-height: 35px; }
    .user-bar { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); }
    .btn-register-mobile { background: var(--danger) !important; animation: pulse 2s infinite; }
    .mt-15 { margin-top: 15px; }

    /* --- PERUBAHAN REQ 1: FONT KECIL & JARAK RAPAT DI MOBILE --- */
    .banner-container {
        margin-bottom: 0 !important; /* Hilangkan margin bawah banner */
    }
    
    .bank-status-container {
        padding-top: 5px !important;    /* Kurangi padding atas */
        padding-bottom: 5px !important; /* Kurangi padding bawah */
        margin-top: 0 !important;
    }

    .bank-status-label {
        font-size: 0.8rem !important;   /* Ukuran font diperkecil */
        padding: 4px 15px !important;   /* Padding tombol diperkecil */
        margin: 5px auto !important;    /* Margin diperkecil */
        letter-spacing: 1px !important; 
        min-width: 150px !important;    /* Lebar minimum diperkecil */
    }

    .bank-list-wrapper {
        padding: 5px 10px !important;
        gap: 5px !important;
    }

    .bank-pill {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
    }
    /* ------------------------------------------------------------- */
}

@keyframes pulse { 0% {transform: scale(1);} 50% {transform: scale(1.02);} 100% {transform: scale(1);} }

/* --- BANK STATUS & GUEST PREVIEW --- */
.bank-status-container, .guest-preview-container { 
    background: #1a1a1a; 
    padding: 15px 0; 
    border-bottom: 1px solid #333; 
    text-align: center; 
    overflow: hidden;
}

.bank-status-label { 
    display: inline-block;
    width: auto;
    min-width: 200px;
    text-align: center;
    font-size: 1.0rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #f1c40f;
    background: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(241, 196, 15, 0.05) 50%, rgba(0,0,0,0) 100%);
    border-top: 1px solid #f1c40f;
    border-bottom: 1px solid #f1c40f;
    padding: 8px 30px;
    margin: 10px auto;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.3);
    box-shadow: none;
}

@media (min-width: 769px) {
    .guest-center-wrapper {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .force-center-flex {
        justify-content: center !important; 
        padding-left: 0 !important;
    }
}

.bank-list-wrapper, .guest-preview-scroll { 
    display: flex; 
    flex-wrap: nowrap; 
    overflow-x: auto; 
    justify-content: flex-start; 
    gap: 10px; 
    padding: 5px 15px; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}

@media (min-width: 769px) {
    .bank-list-wrapper, .guest-preview-scroll {
        justify-content: center;
    }
}

.bank-list-wrapper::-webkit-scrollbar, .guest-preview-scroll::-webkit-scrollbar { display: none; }

.bank-pill { 
    flex: 0 0 auto; 
    background: linear-gradient(145deg, #2b2b2b, #1f1f1f); 
    border: 1px solid #444; 
    padding: 6px 15px; 
    border-radius: 30px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 0.8rem; 
    font-weight: bold; 
    color: #fff; 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3); 
    white-space: nowrap; 
}

.led-green { width: 10px; height: 10px; background-color: #27ae60; border-radius: 50%; box-shadow: 0 0 5px #27ae60; animation: blink 1.5s infinite; }
@keyframes blink { 0% { opacity: 1; box-shadow: 0 0 5px #27ae60; } 50% { opacity: 0.3; box-shadow: none; } 100% { opacity: 1; box-shadow: 0 0 5px #27ae60; } }

/* Guest Preview Item */
.guest-prev-item {
    flex: 0 0 100px;
    text-align: center;
    background: #222;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px;
    transition: 0.2s;
}
.guest-prev-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.guest-prev-item img { width: 100%; height: 60px; object-fit: contain; border-radius: 4px; background: #000; }
.guest-prev-name { font-size: 0.7rem; margin-top: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }


/* --- TOGEL RESULT SECTION --- */
.togel-res-section {
    padding: 15px;
    background: #111;
    border-bottom: 1px solid #333;
    text-align: center;
}
.togel-scroll-wrapper {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 769px) {
    .togel-scroll-wrapper {
        justify-content: center;
    }
}
.togel-scroll-wrapper::-webkit-scrollbar { height: 5px; }
.togel-scroll-wrapper::-webkit-scrollbar-thumb { background: #444; border-radius: 5px; }

.togel-res-card {
    flex: 0 0 auto;
    background: linear-gradient(145deg, #252525, #1a1a1a);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px;
    width: 130px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    display: flex;           
    flex-direction: column;  
    align-items: center;     
    justify-content: center;
}
.togel-market-name { font-size: 0.75rem; font-weight: bold; color: #fff; text-transform: uppercase; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;}
.togel-res-num { 
    font-size: 1.2rem; font-weight: 900; color: #f1c40f; 
    letter-spacing: 2px; margin: 5px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    background: #000; border: 1px solid #333; border-radius: 4px;
    width: 100%;
}
.togel-res-date { font-size: 0.65rem; color: #888; margin-top: auto; }
.togel-logo-mini { width: 30px; height: 30px; object-fit: contain; margin-bottom: 5px; }

/* Mobile Grid for Togel (2 Items) */
.togel-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

/* --- FORMS & CONTAINERS --- */
.container-center { max-width: 500px; margin: 20px auto; padding: 15px; }
.auth-box, .trans-box { background: var(--secondary); padding: 25px; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
h2 { text-align: center; margin-bottom: 20px; color: var(--accent); text-transform: uppercase; font-size: 1.4rem; }

.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: var(--text-muted); font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 12px; background: #111; border: 1px solid var(--border); color: #fff; border-radius: 6px; font-size: 1rem; }
.form-group input:focus { border-color: var(--accent); outline: none; }

.bank-detail-box { background: rgba(243, 156, 18, 0.1); border: 1px dashed var(--accent); padding: 15px; border-radius: 8px; margin-top: 10px; text-align: center; }
.bank-text-highlight { font-size: 1.1rem; font-weight: bold; color: #fff; margin: 8px 0; word-break: break-all; }
.copy-helper { font-size: 0.75rem; color: var(--accent); font-style: italic; }

.btn-submit { width: 100%; padding: 14px; background: linear-gradient(45deg, var(--accent), var(--accent-hover)); color: #fff; border: none; border-radius: 6px; font-size: 1rem; font-weight: bold; cursor: pointer; margin-top: 10px; text-transform: uppercase; letter-spacing: 1px; }
.toggle-link { text-align: center; margin-top: 15px; font-size: 0.9rem; color: var(--text-muted); }
.toggle-link a { color: var(--accent); text-decoration: none; cursor: pointer; }

/* --- MENU GRID --- */
.menu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.menu-item { 
    background: var(--card-bg); padding: 20px; border-radius: 10px; 
    text-align: center; border: 1px solid var(--border); cursor: pointer; 
    transition: 0.3s; position: relative; 
}
.menu-item:hover { border-color: var(--accent); background: #333; transform: translateY(-3px); }
.menu-icon { font-size: 2.5rem; margin-bottom: 10px; display: block; }
.menu-title { font-weight: bold; color: #fff; font-size: 0.9rem; letter-spacing: 1px; }

.badge-maintenance {
    position: absolute; top: 0; right: 0;
    background: #e74c3c; color: #fff;
    font-size: 0.6rem; padding: 3px 8px; border-radius: 0 8px 0 8px;
    font-weight: bold; box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
    z-index: 2;
}
.maint-overlay { position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.6); z-index:1; border-radius: 8px; pointer-events:none; }

.btn-back-cool {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white; border: none; padding: 8px 15px;
    border-radius: 20px; font-size: 0.8rem; font-weight: bold;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease; cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
}
.btn-back-cool:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* --- PROVIDER GRID --- */
.provider-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.provider-card { 
    background: #1a1a1a; border: 1px solid #333; border-radius: 8px; padding: 10px;
    text-align: center; cursor: pointer; transition: 0.2s; overflow: hidden; position: relative;
}
.provider-card:hover { border-color: var(--accent); background: #252525; transform: translateY(-3px); }
.provider-img { width: 100%; max-height: 60px; object-fit: contain; margin-bottom: 8px; }
.provider-name { font-size: 0.8rem; font-weight: bold; color: #fff; }

/* --- GAME LIST GRID --- */
.game-list-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 10px 0;
}
@media (min-width: 769px) {
    .game-list-grid { grid-template-columns: repeat(5, 1fr); }
}
.game-card-item {
    cursor: pointer; transition: 0.2s; border-radius: 8px;
    overflow: hidden; border: 1px solid #333; background: #000; position: relative;
}
.game-card-item:hover { transform: scale(1.05); border-color: var(--accent); }
.game-card-item img { width: 100%; display: block; height: auto; }

/* Icon Gradients */
.icon-gold { background: -webkit-linear-gradient(#f1c40f, #d35400); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-silver { background: -webkit-linear-gradient(#bdc3c7, #2c3e50); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-bronze { background: -webkit-linear-gradient(#e67e22, #8e44ad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.icon-fire { background: -webkit-linear-gradient(#e74c3c, #f1c40f); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* --- HISTORY --- */
.history-filters { display: flex; gap: 5px; margin-bottom: 15px; justify-content: center; flex-wrap: wrap;}
.filter-btn { 
    background: #111; border: 1px solid #444; color: #aaa; 
    padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; cursor: pointer; 
}
.filter-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: bold; }

.history-list { margin-top: 20px; }
.history-item { background: var(--card-bg); padding: 15px; border-radius: 8px; margin-bottom: 10px; border-left: 4px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.history-item.MENUNGGU { border-left-color: #f39c12; }
.history-item.DIBAYAR, .history-item.WIN { border-left-color: #27ae60; }
.history-item.DITOLAK, .history-item.LOSE { border-left-color: #c0392b; }
.history-item.ACCESS { border-left-color: #3498db; }

.hist-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.hist-info small { color: var(--text-muted); font-size: 0.8rem; }
.hist-status { font-size: 0.75rem; padding: 3px 8px; border-radius: 4px; font-weight: bold; }
.bg-MENUNGGU { background: rgba(243, 156, 18, 0.2); color: #f39c12; }
.bg-DIBAYAR, .bg-WIN { background: rgba(39, 174, 96, 0.2); color: #27ae60; }
.bg-DITOLAK, .bg-LOSE { background: rgba(192, 57, 43, 0.2); color: #c0392b; }
.bg-ACCESS { background: rgba(52, 152, 219, 0.2); color: #3498db; }

.pagination-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin-top: 20px; padding: 10px 0; border-top: 1px dashed #444; }
.page-btn { background: #333; border: 1px solid #555; color: #fff; width: 35px; height: 35px; border-radius: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.page-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.page-btn:disabled { background: #222; border-color: #333; color: #555; cursor: not-allowed; }
.page-indicator { font-weight: bold; color: var(--accent); font-size: 1rem; }

/* --- MODAL --- */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.popup-content { position: relative; width: 90%; max-width: 400px; animation: popUpAnim 0.4s ease-out; }
.popup-content img { width: 100%; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
.close-popup { position: absolute; top: -15px; right: -15px; background: #fff; color: #000; border: none; width: 30px; height: 30px; border-radius: 50%; font-weight: bold; cursor: pointer; font-size: 1.2rem; }
@keyframes popUpAnim { from {transform: scale(0.5); opacity: 0;} to {transform: scale(1); opacity: 1;} }

.promo-box { background: #fff; color: #000; width: 95%; max-width: 600px; border-radius: 8px; overflow: hidden; max-height: 80vh; display: flex; flex-direction: column; }
.promo-header { background: var(--accent); padding: 15px; display: flex; justify-content: space-between; align-items: center; }
.promo-header h3 { margin: 0; color: #000; font-size: 1.1rem; text-align: left; }
.promo-header button { background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.promo-scroll { padding: 15px; overflow-y: auto; background: #f5f5f5; }
.promo-item { background: #fff; margin-bottom: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); overflow: hidden; }
.promo-item img { width: 100%; display: block; }
.promo-desc { padding: 15px; font-size: 0.9rem; color: #333; }

.msg-item {
    background: #fff; border-bottom: 1px solid #eee; padding: 12px; 
    margin-bottom: 8px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    cursor: pointer; transition: 0.2s;
}
.msg-item:hover { background: #f9f9f9; }
.msg-header { display: flex; justify-content: space-between; margin-bottom: 5px; font-size: 0.8rem; color: #666; }
.msg-subject { font-weight: bold; color: #2c3e50; font-size: 0.95rem; }
.msg-subject::before { content: '\f078'; font-family: "Font Awesome 6 Free"; font-weight: 900; float: right; transition: 0.3s; color: #999; }
.msg-item.open .msg-subject::before { transform: rotate(180deg); color: var(--accent); }
.msg-body { 
    display: none; 
    font-size: 0.9rem; color: #333; line-height: 1.4; 
    margin-top: 10px; padding-top: 10px; border-top: 1px dashed #ddd; 
    animation: slideDown 0.3s ease-out;
}
.msg-item.open .msg-body { display: block; }
.msg-item.open .msg-subject { color: var(--accent); }
@keyframes slideDown { from {opacity: 0; transform: translateY(-5px);} to {opacity: 1; transform: translateY(0);} }

/* --- PROFILE TAB STYLE --- */
.profile-tabs {
    display: flex; background: #111; border-bottom: 1px solid #333;
    border-radius: 5px 5px 0 0;
}
.p-tab-btn {
    flex: 1; padding: 12px 10px; border: none; background: none;
    font-weight: bold; color: #aaa; cursor: pointer; border-bottom: 3px solid transparent;
    transition: 0.2s;
}
.p-tab-btn:hover { background: #222; color: #fff; }
.p-tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); background: #222; }

.profile-section-title {
    font-size: 0.8rem; color: var(--accent); font-weight: bold; margin-bottom: 5px; text-transform: uppercase;
    margin-top: 15px; border-bottom: 1px solid #333; padding-bottom: 5px;
}
.profile-info-box {
    background: #111; padding: 15px; border-radius: 5px; border: 1px solid #333; margin-bottom: 15px;
    color: #ddd;
}
.profile-info-box p { margin-bottom: 5px; font-size: 0.9rem; }
.profile-info-box strong { color: #fff; }

.ref-box {
    text-align: center; background: rgba(243, 156, 18, 0.1); 
    border: 1px dashed var(--accent); padding: 15px; border-radius: 8px; margin-bottom: 15px;
}
.ref-link-display {
    background: #000; border: 1px solid #444; padding: 8px; 
    margin-top: 5px; font-family: monospace; font-size: 1rem; color: #fff; 
    word-break: break-all; border-radius: 4px;
}

/* --- NOTIFICATION POP-UP STYLE --- */
.notif-box {
    background: #fff; color: #333;
    padding: 30px 20px; border-radius: 12px;
    width: 85%; max-width: 350px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    border: 3px solid #eee;
}
.bounce-in { animation: bounceIn 0.6s cubic-bezier(0.215, 0.610, 0.355, 1.000); }
@keyframes bounceIn {
    0% { opacity: 0; transform: scale3d(.3, .3, .3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(.9, .9, .9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(.97, .97, .97); }
    to { opacity: 1; transform: scale3d(1, 1, 1); }
}
.notif-icon-area { font-size: 4rem; margin-bottom: 15px; }
.notif-success { color: #27ae60; }
.notif-fail { color: #c0392b; }
.notif-box h3 { margin: 10px 0; color: #000; text-transform: uppercase; letter-spacing: 1px; }
.notif-box p { color: #555; font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }


.hidden { display: none !important; }
#toast { visibility: hidden; min-width: 250px; background: #333; color: #fff; text-align: center; border-radius: 5px; padding: 16px; position: fixed; z-index: 3000; bottom: 80px; left: 50%; transform: translateX(-50%); box-shadow: 0 5px 15px rgba(0,0,0,0.5); }
#toast.show { visibility: visible; animation: fadein 0.5s, fadeout 0.5s 2.5s; }

/* --- BOTTOM NAVIGATION --- */
.bottom-nav { 
    position: fixed; bottom: 0; left: 0; width: 100%; background: #f39c12; 
    border-top: 1px solid #333; z-index: 9999; height: var(--nav-height); 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.5); display: none;
}
.nav-item { 
    text-align: center; color: #000000; cursor: pointer; flex: 1; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; transition: 0.2s; 
}
.nav-item:active { transform: scale(0.95); }
.nav-item.active { color: #535151; }
.nav-item i { font-size: 1.2rem; margin-bottom: 4px; }
.nav-item span { font-size: 0.7rem; }

@media (max-width: 768px) { 
    #guestMobileNav, #memberBottomNav { display: flex !important; justify-content: space-around; align-items: center; }
    #guestMobileNav.hidden, #memberBottomNav.hidden { display: none !important; }
}
@media (min-width: 769px) { .bottom-nav { display: none !important; } }

/* --- INFO & ADVANTAGES SECTION --- */
.info-features-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: linear-gradient(145deg, #1e1e1e, #252525);
    border: 1px solid #444;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.2);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.info-card h3 {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 1px dashed #555;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.info-card h3 i {
    font-size: 1.3rem;
    animation: pulseIcon 2s infinite;
}

@keyframes pulseIcon {
    0% { text-shadow: 0 0 0 rgba(243, 156, 18, 0.4); }
    50% { text-shadow: 0 0 10px rgba(243, 156, 18, 0.8); }
    100% { text-shadow: 0 0 0 rgba(243, 156, 18, 0.4); }
}

/* Limit Rows */
.limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.3);
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid var(--accent);
}

.limit-row span { color: #aaa; font-size: 0.9rem; }
.limit-row strong { color: #fff; font-size: 1.1rem; font-family: monospace; }

/* Advantages Rows */
.adv-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.adv-row i {
    background: linear-gradient(45deg, var(--accent), #d35400);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.adv-row div {
    display: flex;
    flex-direction: column;
}

.adv-row span { font-size: 0.85rem; color: #aaa; }
.adv-row strong { font-size: 1rem; color: #2ecc71; font-weight: bold; }

.adv-note {
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 10px;
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    .info-features-section {
        padding: 10px;
    }
}

/* --- FOOTER BADGES --- */
.footer-badges-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px; 
    margin: 20px 0; 
    width: 100%;
    padding: 0 15px;
}

.footer-badge-img {
    max-width: 100%;
    width: 929px;    
    height: auto;    
    display: block;
    object-fit: contain;
}

/* --- DYNAMIC POPULAR GAMES --- */
.pop-game-card {
    flex: 0 0 auto;
    width: 140px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}

.pop-game-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.pop-game-thumb {
    width: 100%;
    height: 100px;
    object-fit: cover;
    background: #000;
    border-bottom: 1px solid #333;
}

.pop-game-info {
    padding: 8px;
    text-align: center;
}

.pop-game-name {
    font-size: 0.75rem;
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.pop-game-provider {
    font-size: 0.65rem;
    color: var(--accent);
    text-transform: uppercase;
}

/* --- FITUR BARU: GUEST GAME NAV (DESKTOP) --- */
.guest-nav-container {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Tambah jarak ke tombol login */
    height: 100%;
}

.guest-nav-item {
    position: relative;
    margin: 0 5px; /* Jarak antar menu */
    padding: 0 15px; /* Padding kiri-kanan agar area klik luas */
    cursor: pointer;
    height: 60px; /* Samakan dengan tinggi header */
    display: flex;
    align-items: center;
    justify-content: center; /* Pastikan teks di tengah */
    
    /* PERUBAHAN UKURAN: */
    font-weight: 900; /* Lebih tebal */
    font-size: 1.1rem; /* Ukuran font diperbesar (sebelumnya 0.85rem) */
    color: #fff;
    transition: 0.2s;
    letter-spacing: 0.5px; /* Sedikit renggang agar elegan */
    font-family: 'Orbitron', sans-serif; /* Opsional: pakai font game jika mau */
}

/* PERBESAR IKON */
.guest-nav-item i {
    font-size: 1.4rem; /* Ikon diperbesar */
    margin-right: 10px; /* Jarak ikon ke teks */
    color: var(--accent); /* Warna emas/accent agar kontras */
    filter: drop-shadow(0 0 5px rgba(243, 156, 18, 0.5)); /* Efek glow dikit */
}

.guest-nav-item:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05); /* Efek highlight background saat hover */
}

.guest-nav-item:hover .guest-dropdown {
    display: grid;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.guest-dropdown {
    display: none; /* Hidden by default */
    position: absolute;
    top: 60px; /* Tepat dibawah header */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid var(--accent);
    border-top: 3px solid var(--accent);
    border-radius: 0 0 8px 8px;
    padding: 15px;
    min-width: 320px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    backdrop-filter: blur(10px);
    
    /* Grid layout untuk logo */
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.guest-drop-prov {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 6px;
    transition: 0.2s;
}

.guest-drop-prov:hover {
    border-color: var(--accent);
    transform: scale(1.05);
    background: #222;
}

.guest-drop-prov img {
    width: 100%;
    height: 35px;
    object-fit: contain;
    margin-bottom: 5px;
}

.guest-drop-prov span {
    font-size: 0.65rem;
    color: #aaa;
    text-transform: uppercase;
}

/* --- FITUR BARU: GUEST GAME NAV (MOBILE) - UPDATED CAROUSEL STYLE --- */
.guest-mobile-cat-section {
    background: #0f0f0f; /* Latar belakang gelap menyatu dengan body */
    padding: 10px 0;     /* Padding atas bawah yang pas */
    border-bottom: 1px solid #333;
    position: relative;
    z-index: 50;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5); /* Efek bayangan agar terlihat mengambang */
}

.mobile-cat-scroll {
    display: flex;
    flex-wrap: nowrap;       /* Memastikan item memanjang ke samping (tidak turun) */
    overflow-x: auto;        /* Scroll horizontal aktif */
    gap: 10px;               /* Jarak antar tombol */
    padding: 5px 15px;       /* Padding kiri kanan agar tombol pertama tidak mepet layar */
    -webkit-overflow-scrolling: touch; /* Scroll smooth di iPhone */
    scrollbar-width: none;   /* Hilangkan scrollbar di Firefox */
    align-items: center;
}

/* Hilangkan scrollbar di Chrome/Safari */
.mobile-cat-scroll::-webkit-scrollbar { display: none; }

.mob-cat-btn {
    flex: 0 0 auto;             /* Mencegah tombol mengecil/penyok */
    background: #1a1a1a;        /* Warna dasar tombol */
    color: #888;                /* Warna teks tidak aktif */
    border: 1px solid #333;
    padding: 8px 16px;          /* Ukuran tombol proporsional */
    border-radius: 50px;        /* Bentuk Pill (Bulat lonjong) */
    font-size: 0.75rem;
    font-weight: 700;           /* Font tebal agar terbaca */
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mob-cat-btn i {
    font-size: 0.9rem;
}

/* State Aktif (Saat diklik) */
.mob-cat-btn.active {
    background: linear-gradient(45deg, var(--accent), #d35400); /* Warna Emas/Orange */
    color: #fff;                /* Teks putih */
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.4);
    transform: translateY(-1px); /* Efek naik sedikit */
}

/* State Hover (Opsional di mobile, tapi bagus jika disentuh) */
.mob-cat-btn:active {
    transform: scale(0.95);
}

/* Grid Provider yang muncul dibawahnya */
.mobile-prov-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Kolom agar icon kecil-kecil rapi */
    gap: 10px;
    padding: 15px;
    background: #151515; /* Sedikit lebih terang dari background utama */
    border-top: 1px solid #333;
    animation: slideDown 0.3s ease-out;
}

/* Styling item provider di dalam grid */
.mobile-prov-grid .guest-drop-prov {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px;
    transition: 0.2s;
}

.mobile-prov-grid .guest-drop-prov img {
    width: 100%;
    height: 30px; 
    object-fit: contain;
    margin-bottom: 5px;
}

.mobile-prov-grid .guest-drop-prov span {
    font-size: 0.6rem;
    color: #aaa;
    text-align: center;
    line-height: 1.2;
}

@keyframes slideDown { 
    from {opacity: 0; transform: translateY(-10px);} 
    to {opacity: 1; transform: translateY(0);} 
}
/* --- STYLE BARU: MOBILE GAME NAVIGATION BAR --- */
.mobile-nav-bar-container {
    position: relative;
    width: 100%;
    height: 70px;
    background: linear-gradient(90deg, #1a1a1a 0%, #000 50%, #1a1a1a 100%);
    border-top: 2px solid var(--accent);    /* Garis Emas Atas */
    border-bottom: 2px solid var(--accent); /* Garis Emas Bawah */
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Tombol Panah Kiri/Kanan */
.nav-scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    background: var(--accent); /* Warna Emas */
    color: #000;
    display: grid;
    place-items: center;
    z-index: 10;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.nav-scroll-btn.left { left: 0; }
.nav-scroll-btn.right { right: 0; }

/* Area Scroll di Tengah */
.mobile-nav-scroll {
    flex: 1;
    height: 100%;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    margin: 0 30px; /* Memberi ruang untuk panah */
    display: flex;
    align-items: center;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
    scroll-behavior: smooth;
}
.mobile-nav-scroll::-webkit-scrollbar { display: none; /* Chrome/Safari */ }

/* Item Menu Individual */
.nav-bar-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 80px; /* Lebar per item */
    padding: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.nav-bar-item:hover, .nav-bar-item.active {
    background: rgba(243, 156, 18, 0.2); /* Highlight Emas transparan */
}

/* Garis bawah aktif */
.nav-bar-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    animation: glow 1s infinite alternate;
}

/* Ikon dan Teks */
.nav-item-icon {
    font-size: 1.4rem;
    margin-bottom: 5px;
    /* Efek Gradient pada Icon agar mewah */
    background: -webkit-linear-gradient(#fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-bar-item.active .nav-item-icon {
    background: -webkit-linear-gradient(#fff, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1);
}

.nav-item-label {
    font-size: 0.65rem;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nav-bar-item.active .nav-item-label {
    color: var(--accent);
}

@keyframes glow { from {box-shadow: 0 0 2px #fff;} to {box-shadow: 0 0 8px #f1c40f;} }

/* --- SIDENAV WIDGET (DESKTOP GUEST) --- */
.sidenav-wrapper {
    position: fixed;
    right: -160px; /* Sembunyikan konten, sisakan tombol tab */
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    transition: right 0.3s ease-in-out;
}

/* Munculkan saat di-hover */
.sidenav-wrapper:hover {
    right: 0;
}

.sidenav-tab {
    width: 50px;
    height: auto;
    min-height: 140px; /* Sedikit diperpanjang agar lega */
    background: linear-gradient(180deg, var(--accent), #d35400);
    border-radius: 8px 0 0 8px;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.3);
    
    /* PENGATURAN POSISI (FLEX COLUMN = ATAS KE BAWAH) */
    display: flex;
    flex-direction: column; 
    align-items: center;     /* Tengah secara horizontal */
    justify-content: center; /* Tengah secara vertikal */
    gap: 15px;               /* Jarak antara Icon dan Teks */
    
    padding: 15px 0;
    cursor: pointer;
    color: #000;
    transition: background 0.3s;
    z-index: 20; /* Pastikan tab selalu diatas konten saat slide */
    position: relative; 
}

.sidenav-tab i {
    font-size: 1.8rem; /* Ukuran icon diperbesar */
    color: #000;
    filter: drop-shadow(0 1px 0 rgba(255,255,255,0.3)); /* Efek timbul dikit */
    margin: 0;
    transform: none; /* Reset rotasi jika ada */
}

.sidenav-content {
    width: 160px;
    background: #fff;
    border-radius: 0 0 0 5px;
    box-shadow: -5px 5px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidenav-header {
    background: #eee;
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.sidenav-header img {
    width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidenav-body {
    display: flex;
    flex-direction: column;
    padding: 5px 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    text-decoration: none;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}

.contact-link:hover {
    background: #f9f9f9;
    color: var(--accent);
}

.contact-link img {
    width: 20px;
    height: 20px;
}

.sidenav-footer {
    padding: 10px;
    background: #fff;
}

.btn-sidenav-reg {
    width: 100%;
    background: #000;
    color: var(--accent);
    border: 1px solid #000;
    padding: 8px;
    font-weight: bold;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-sidenav-reg:hover {
    background: var(--accent);
    color: #000;
}
/* Style Teks CONTACT */
.sidenav-tab span {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 2px;
    
    /* MEMBUAT TEKS VERTIKAL */
    writing-mode: vertical-rl; 
    text-orientation: mixed;   
    transform: rotate(180deg); /* Putar agar bacaannya dari Bawah ke Atas (Opsional, hapus jika ingin Atas ke Bawah) */
}
/* --- STYLE NAVIGASI BARU (MY NAVBAR) --- */
.my-navbar-container {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    pointer-events: none; /* Supaya area transparan tidak menghalangi klik */
}

.my-navbar {
    height: 50px; /* Sedikit lebih tinggi agar nyaman */
    padding: 0;
    width: 100%;
    /* Gradient Background sesuai request + Theme Color */
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(10,10,10,0.95) 100%);
    border-top: 2px solid #f39c12; /* Aksen Emas di atas */
    position: fixed;
    bottom: 0;
    left: 0;
    color: white;
    z-index: 1100;
    display: flex;
    justify-content: space-between;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.8);
    pointer-events: auto; /* Aktifkan klik kembali */
}

.navbar-item {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Icon menempel ke bawah container */
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.nav-separator {
    height: 30px;
    width: 1px;
    background: #333;
    margin: auto 0;
}

.navbar-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 5px; /* Posisi default */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Efek Pop-Out (Muncul keluar bar) */
.navbar-item-content {
    bottom: 10px; /* Naikkan sedikit agar keluar dari bar */
}

.navbar-item-content > img {
    height: 32px;
    width: 32px;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
    transition: 0.2s;
}

.navbar-item:active .navbar-item-content > img {
    transform: scale(0.9);
}

.navbar-item-content > label {
    white-space: nowrap;
    margin-top: 2px;
    font-weight: bold;
    font-size: 0.6rem;
    color: #fff;
    text-shadow: 0 1px 2px #000;
}

/* --- SPEED DIAL (Tombol Chat Melayang) --- */
.speed-dial-item {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.5);
    transition: all 0.3s ease;
    height: 40px;
    width: 40px;
    background: #fff; /* Background putih untuk icon WA */
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    z-index: -1; /* Di belakang tombol utama saat tertutup */
}

/* State Aktif (Saat diklik) */
.speed-dial-active .speed-dial-item {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    z-index: 10;
}

.speed-dial-active .navbar-item-content.speed-dial-btn > img {
    transform: rotate(45deg); /* Efek putar tombol chat saat aktif */
}

/* Delay animasi agar muncul berurutan */
.speed-dial-active .speed-dial-item:nth-of-type(1) { transition-delay: 0.05s; }
.speed-dial-active .speed-dial-item:nth-of-type(2) { transition-delay: 0.1s; }

/* --- TAMBAHAN KHUSUS MEMBER NAV --- */

/* Efek saat Tab Aktif (Icon tetap terangkat ke atas) */
.navbar-item.active .navbar-item-content {
    bottom: 12px; /* Posisi naik permanen saat aktif */
}

/* Mengubah warna teks label saat aktif (Opsional, agar lebih jelas) */
.navbar-item.active .navbar-item-content > label {
    color: #f39c12; /* Warna Emas/Accent */
    text-shadow: 0 0 5px rgba(243, 156, 18, 0.5);
}

/* Memastikan gambar pada tab aktif sedikit lebih besar/terang */
.navbar-item.active .navbar-item-content > img {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    transform: scale(1.1);
}

/* --- CUSTOM REGISTER LAYOUT DESKTOP --- */
@media (min-width: 769px) {
    
    /* 1. Perlebar Wadah Utama (Auth Section) */
    /* Kita perlu memperlebar wadah agar 4 kolom muat dan tidak sempit */
    #authSection.container-center {
        max-width: 950px !important; 
        width: 95%;
        transition: max-width 0.3s ease;
    }

    /* 2. Kembalikan Login Box ke Ukuran Kecil */
    /* Karena wadah diperlebar, Login Box harus kita paksa tetap kecil di tengah */
    #loginBox {
        max-width: 450px;
        margin: 0 auto; 
    }

    /* 3. Atur Grid pada Form Register */
    #registerForm {
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* Membagi menjadi 4 kolom sama besar */
        column-gap: 20px; /* Jarak antar kolom (kiri-kanan) */
        row-gap: 15px;    /* Jarak antar baris (atas-bawah) */
        align-items: end; /* Meratakan posisi input agar sejajar bawah */
    }

    /* 4. Setting Form Group (Wadah Input) */
    #registerForm .form-group {
        margin-bottom: 0; /* Reset margin bawaan agar diatur oleh Grid Gap */
        width: 100%;
    }

    /* 5. USERNAME (Input Pertama) -> Full Width paling atas */
    #registerForm .form-group:nth-child(1) {
        grid-column: span 4; /* Mengambil lebar 4 kolom (Full) */
    }

    /* 6. Tombol Daftar -> Full Width paling bawah */
    #btnRegister {
        grid-column: span 4; /* Tombol memanjang penuh */
        margin-top: 20px;
        width: 100%;
    }

    /* 7. Link Login (Sudah punya akun?) -> Full Width di bawah tombol */
    #registerBox .toggle-link {
        grid-column: span 4;
        margin-top: 15px;
    }
}