:root {
    --primary-red: #D80032;
    --dark-red: #8B0000;
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --sidebar-bg: linear-gradient(145deg, #161616, #0a0a0a);
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --input-bg: #151515;
    --border-color: #333;
    --shadow-color: rgba(0,0,0,0.8);
    --sidebar-width: 280px;
    --transition: all 0.3s ease;
    --header-height: 70px;
}

body.light-mode {
    --primary-red: #D80032;
    --dark-red: #ff3333;
    --bg-color: #f4f4f4;
    --card-bg: #ffffff;
    --sidebar-bg: linear-gradient(145deg, #ffffff, #e6e6e6);
    --text-white: #1a1a1a;
    --text-gray: #555555;
    --input-bg: #ffffff;
    --border-color: #ddd;
    --shadow-color: rgba(0,0,0,0.1);
}

html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; text-decoration: none; list-style: none; }

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* BANNED ACCOUNT SCREEN */
.banned-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #000000, #2c0000);
    z-index: 9999999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.banned-screen.active { display: flex; }

.banned-icon {
    font-size: 6rem;
    color: #ff0000;
    margin-bottom: 30px;
    animation: bannedPulse 2s infinite;
}

@keyframes bannedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); text-shadow: 0 0 30px #ff0000; }
    100% { transform: scale(1); }
}

.banned-title {
    font-size: 3rem;
    color: #ff0000;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.banned-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.6;
}

.banned-reason {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    border-radius: 15px;
    padding: 20px 30px;
    margin: 30px 0;
    max-width: 600px;
    width: 90%;
}

.banned-reason-title { color: #ff6b6b; font-weight: 700; margin-bottom: 10px; font-size: 1.3rem; }
.banned-reason-text { color: #fff; font-size: 1.1rem; line-height: 1.5; }
.banned-info { color: #aaa; font-size: 0.9rem; margin-top: 20px; max-width: 600px; line-height: 1.4; }

/* ===== LOGIN MODAL - MULTI PROVIDER ===== */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(216,0,50,0.95), rgba(0,0,0,0.98));
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.login-modal {
    background: var(--card-bg);
    border: 3px solid var(--primary-red);
    border-radius: 25px;
    width: 90%;
    max-width: 480px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(216, 0, 50, 0.4);
    transform: scale(0.9);
    animation: modalAppear 0.5s ease forwards;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalAppear { to { transform: scale(1); } }

.login-header { margin-bottom: 25px; }

.login-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    margin: 0 auto 15px;
    object-fit: cover;
    animation: pulseLogo 2s infinite;
}

@keyframes pulseLogo {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.login-title {
    font-size: 2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 5px;
    font-family: 'Orbitron', sans-serif;
}

.login-subtitle {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Provider Buttons */
.btn-provider-login {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    background: var(--input-bg);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-provider-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-provider-login.google:hover {
    background: #4285F4;
    color: white;
    border-color: #4285F4;
}

.btn-provider-login.github:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.btn-provider-login.guest:hover {
    background: #6c757d;
    color: white;
    border-color: #6c757d;
}

.provider-icon-wrapper {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: rgba(255,255,255,0.1);
}

.login-note {
    margin-top: 25px;
    padding: 15px;
    background: rgba(216,0,50,0.1);
    border-radius: 12px;
    border: 1px solid rgba(216,0,50,0.3);
}

.login-note p {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-note i { color: var(--primary-red); }

/* USER AVATAR DI SIDEBAR */
.sidebar-user-section {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-sidebar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-red);
    object-fit: cover;
    margin-bottom: 10px;
    animation: profileBreath 3s ease-in-out infinite alternate;
}

@keyframes profileBreath {
    0% { transform: scale(1); box-shadow: 0 0 0px var(--primary-red); }
    100% { transform: scale(1.08); box-shadow: 0 0 15px var(--primary-red); }
}

.user-name-sidebar { font-weight: 700; color: var(--text-white); font-size: 1.1rem; margin-bottom: 5px; }
.user-email-sidebar { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 15px; }

.btn-logout {
    background: var(--primary-red);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: #ff0040;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(216, 0, 50, 0.4);
}

/* PRELOADER */
#preloader {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url('https://i.ibb.co.com/Kx0GFWfc/1000235540.png');
    background-position: center; background-repeat: no-repeat; background-size: cover;
    z-index: 99999;
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s;
}

#preloader::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(8px); z-index: -1;
}

.loader-content { text-align: center; position: relative; z-index: 10; display: flex; flex-direction: column; align-items: center; }

.loader-logo-img {
    width: 120px; height: 120px; border-radius: 50%;
    border: 4px solid var(--primary-red);
    box-shadow: 0 0 30px var(--primary-red);
    object-fit: cover; margin-bottom: 25px;
    animation: pulseLogo 1.5s infinite ease-in-out;
}

.loader-text {
    font-size: 1.8rem; font-weight: 700; color: #fff;
    letter-spacing: 3px; text-shadow: 0 0 10px rgba(0,0,0,1);
    animation: glowingText 1.5s infinite;
}

@keyframes glowingText {
    0% { text-shadow: 0 0 5px #D80032; }
    50% { text-shadow: 0 0 20px #ff0040; }
    100% { text-shadow: 0 0 5px #D80032; }
}

/* CUSTOM ALERT */
.custom-alert-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 100000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.custom-alert-overlay.active { opacity: 1; visibility: visible; }

.custom-alert-box {
    background: var(--card-bg); border: 2px solid var(--primary-red);
    width: 90%; max-width: 400px; padding: 30px; border-radius: 20px;
    text-align: center; transform: scale(0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 40px rgba(216, 0, 50, 0.4);
}

.custom-alert-overlay.active .custom-alert-box { transform: scale(1); }
.alert-icon { font-size: 3rem; color: var(--primary-red); margin-bottom: 15px; }
.alert-title { font-size: 1.5rem; color: var(--text-white); font-weight: 700; margin-bottom: 10px; }
.alert-message { color: var(--text-gray); font-size: 1rem; margin-bottom: 25px; line-height: 1.5; }
.alert-btn { background: var(--primary-red); color: white; border: none; padding: 12px 30px; border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: 0.3s; width: 100%; }
.alert-btn:hover { background: #ff0040; box-shadow: 0 0 15px var(--primary-red); }

/* CLOCK */
.clock-widget {
    background: rgba(0, 0, 0, 0.4); border: 1px solid var(--primary-red);
    border-radius: 15px; padding: 15px; text-align: center; margin: 0 15px 30px 15px;
}
body.light-mode .clock-widget { background: rgba(255, 255, 255, 0.5); }
.live-time { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--text-white); }
.live-date { font-size: 0.8rem; color: var(--text-gray); font-weight: 500; text-transform: uppercase; }

/* HEADER */
header {
    background: var(--bg-color); padding: 0 20px; height: var(--header-height);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    border-bottom: 2px solid var(--primary-red);
    display: flex; justify-content: space-between; align-items: center; transition: background 0.3s;
}
.site-title { font-size: 1.2rem; font-weight: 700; color: var(--primary-red); letter-spacing: 1px; }
.logo-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary-red); }
.logo-container { display: flex; align-items: center; gap: 12px; }
.hamburger { font-size: 1.5rem; cursor: pointer; color: var(--text-white); background: none; border: none; }

/* NOTIFICATION ICON */
.header-notification {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-white);
    transition: all 0.3s;
    margin-right: 15px;
}

.header-notification:hover {
    color: var(--primary-red);
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 10px rgba(216, 0, 50, 0.5);
}

/* NOTIFICATION PANEL */
.notification-panel {
    position: fixed;
    top: var(--header-height);
    right: 20px;
    width: 350px;
    max-width: calc(100% - 40px);
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    border-radius: 15px;
    z-index: 1005;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.notification-panel.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.notification-panel-header {
    background: var(--primary-red);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    border-radius: 13px 13px 0 0;
}

.notification-panel-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-panel-close,
.mark-all-read-btn,
.clear-all-notif-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.notification-panel-close:hover,
.mark-all-read-btn:hover,
.clear-all-notif-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.clear-all-notif-btn:hover { color: #ff6b6b; }

.notification-panel-body {
    max-height: 400px;
    overflow-y: auto;
    padding: 15px;
}

.notification-item {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
    position: relative;
    cursor: pointer;
}

.notification-item:hover { background: rgba(216, 0, 50, 0.05); }

.notification-item.unread {
    background: rgba(216, 0, 50, 0.1);
    border-left: 3px solid var(--primary-red);
}

.notification-item:last-child { border-bottom: none; }

.notification-item-title {
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.notification-item-message {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.4;
}

.notification-item-time {
    font-size: 0.7rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-loading,
.notification-empty {
    text-align: center;
    color: var(--text-gray);
    padding: 30px 20px;
    font-size: 0.9rem;
}

/* CLEAR ALL CONFIRM MODAL */
.clear-all-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10020;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.clear-all-confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.clear-all-confirm-box {
    background: var(--card-bg);
    border: 2px solid #dc3545;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(220, 53, 69, 0.5);
}

.clear-all-confirm-overlay.active .clear-all-confirm-box { transform: scale(1); }

.clear-all-confirm-header {
    background: #dc3545;
    padding: 20px;
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.clear-all-confirm-body {
    padding: 25px;
    text-align: center;
}

.clear-all-confirm-message {
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.6;
}

.clear-all-confirm-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.clear-all-confirm-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    flex: 1;
}

.btn-cancel {
    background: var(--input-bg);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-cancel:hover { background: var(--border-color); }

.btn-delete {
    background: #dc3545;
    color: white;
}

.btn-delete:hover {
    background: #c82333;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.5);
}

/* QUOTA INFO */
.quota-info {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.quota-info i { font-size: 1.3rem; }

/* NGL SENDER BUTTON */
.ngl-sender-toggle-btn {
    background: rgba(216, 0, 50, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.ngl-sender-toggle-btn:hover {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(216, 0, 50, 0.4);
}

/* SIDEBAR */
.sidebar {
    position: fixed; top: 0; left: -100%; width: var(--sidebar-width); height: 100vh;
    background: var(--sidebar-bg); border-right: 1px solid var(--border-color); z-index: 1001;
    transition: var(--transition); display: flex; flex-direction: column; padding: 25px;
    box-shadow: 10px 0 30px var(--shadow-color); overflow-y: auto;
}
.sidebar.active { left: 0; }
.sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.sidebar-title { color: var(--text-white); font-weight: 700; }
.close-btn { background: none; border: none; color: var(--text-gray); font-size: 1.5rem; cursor: pointer; }

.sidebar-menu a { color: var(--text-gray); display: flex; align-items: center; gap: 15px; padding: 12px 15px; border-radius: 8px; transition: var(--transition); }
.sidebar-menu a:hover { background: rgba(216, 0, 50, 0.1); color: var(--text-white); }
.theme-toggle-btn { background: var(--input-bg); border: 1px solid var(--border-color); color: var(--text-white); padding: 10px; width: 100%; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; font-weight: 600; transition: var(--transition); }
.theme-toggle-btn:hover { border-color: var(--primary-red); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; opacity: 0; visibility: hidden; transition: var(--transition); }
.overlay.active { opacity: 1; visibility: visible; }

/* MAIN CONTENT */
.main-content {
    padding: 20px;
    min-height: calc(100vh - var(--header-height));
    max-width: 1200px;
    margin: 0 auto;
    padding-top: calc(var(--header-height) + 20px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.main-content.loaded {
    opacity: 1;
    transform: translateY(0);
}

.hero-card {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)), url('https://i.ibb.co.com/Kx0GFWfc/1000235540.png');
    background-size: cover; border-radius: 20px; padding: 60px 20px;
    text-align: center; border: 2px solid var(--primary-red); margin-bottom: 30px; color: #fff;
}

.hero-logo-img {
    width: 100px; height: 100px; border-radius: 50%; border: 3px solid #fff;
    object-fit: cover; margin-bottom: 20px; box-shadow: 0 0 20px rgba(216, 0, 50, 0.8);
    animation: heroFloat 4s ease-in-out infinite;
}

@keyframes heroFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 10px; color: #fff; }
.hero-title span { color: var(--primary-red); }
.hero-subtitle { color: #eee; margin-bottom: 20px; }
.badge-update { background: rgba(216, 0, 50, 0.6); color: #fff; padding: 8px 16px; border-radius: 30px; font-size: 0.9rem; display: inline-block; }

.about-card {
    background: var(--card-bg);
    border-radius: 20px;
    border: 2px solid var(--border-color);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

@media(min-width: 768px) {
    .about-card { flex-direction: row; align-items: center; }
}

.about-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid var(--primary-red);
    object-fit: cover;
}

.about-content h2 {
    color: var(--primary-red);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-content p {
    color: var(--text-white);
    opacity: 0.9;
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-content strong { font-weight: 600; }
.about-content strong[style] { font-weight: 700; }

.search-input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-white);
    font-size: 1.1rem;
    outline: none;
    margin-bottom: 40px;
}

.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 20px;
    color: var(--text-gray);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-7px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(216, 0, 50, 0.2);
}

.card-img-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card:hover .card-img { transform: scale(1.1); }

.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-red);
    backdrop-filter: blur(3px);
}

.card-content {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-white);
}

.card-author {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-visit {
    display: block;
    width: 100%;
    padding: 10px;
    background: var(--primary-red);
    color: #fff;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-visit:hover {
    background: #ff0040;
    box-shadow: 0 0 10px rgba(216, 0, 50, 0.5);
}

.locked-btn {
    background: #6c757d;
    cursor: pointer;
    opacity: 0.9;
}

.locked-btn:hover {
    background: #5a6268;
    box-shadow: none;
    transform: none;
}

footer {
    text-align: center;
    padding: 40px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* CHATBOT */
.chat-toggle-btn {
    background: rgba(216, 0, 50, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.chat-toggle-btn:hover {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 15px rgba(216, 0, 50, 0.4);
}

#bintangChatBox {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border: 1px solid var(--primary-red);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    box-shadow: 0 10px 30px var(--shadow-color);
    transform: translateY(120%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    font-size: 0.9rem;
    font-weight: 700;
}

#bintangChatBox.active { transform: translateY(0); }

.chat-header {
    background: var(--primary-red);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-title {
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.chat-status {
    font-size: 0.7rem;
    opacity: 0.9;
}

.chat-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-icon-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.chat-icon-btn:hover {
    transform: scale(1.2);
    text-shadow: 0 0 5px #fff;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-msg.ai {
    align-self: flex-start;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 2px;
    color: var(--text-white);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary-red);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background: var(--card-bg);
    padding: 10px 15px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--text-gray);
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 1; }
}

.chat-footer {
    padding: 15px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 25px;
    outline: none;
    font-weight: 700;
}

.chat-send-btn {
    background: var(--primary-red);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px var(--primary-red);
}

@media (max-width: 480px) {
    #bintangChatBox {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }
}

/* MODAL NGL */
.modal-ngl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.modal-ngl-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-ngl-box {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(216, 0, 50, 0.5);
}

.modal-ngl-overlay.active .modal-ngl-box { transform: scale(1); }

.modal-ngl-header {
    background: var(--primary-red);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.modal-ngl-title {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-ngl-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.modal-ngl-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-ngl-body { padding: 25px; }

.modal-ngl-input-group { margin-bottom: 20px; }

.modal-ngl-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-white);
}

.modal-ngl-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.modal-ngl-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(216, 0, 50, 0.2);
}

.modal-ngl-button {
    width: 100%;
    padding: 14px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-top: 10px;
}

.modal-ngl-button:hover {
    background: #ff0040;
    box-shadow: 0 0 20px rgba(216, 0, 50, 0.5);
}

.modal-ngl-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.4;
}

.message-toggle-btn {
    background: rgba(32, 201, 151, 0.1);
    border: 1px solid #20c997;
    color: #20c997;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.message-toggle-btn:hover {
    background: #20c997;
    color: #fff;
    box-shadow: 0 0 15px rgba(32, 201, 151, 0.4);
}

/* ADMIN MODAL */
.modal-admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10004;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-admin-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-admin-box {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    width: 95%;
    max-width: 800px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(216, 0, 50, 0.5);
}

.modal-admin-overlay.active .modal-admin-box { transform: scale(1); }

.modal-admin-header {
    background: var(--primary-red);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-admin-title {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-admin-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.modal-admin-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-admin-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
    flex-wrap: wrap;
}

.admin-tab {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-gray);
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    flex: 1;
    text-align: center;
    border-bottom: none;
    min-width: 120px;
}

.admin-tab:hover {
    background: rgba(216, 0, 50, 0.1);
    color: var(--text-white);
}

.admin-tab.active {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}

.admin-tab-content { display: none; }
.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Admin Input Groups */
.admin-input-group { margin-bottom: 20px; }
.admin-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-white);
}
.admin-input,
.admin-select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.admin-input:focus,
.admin-select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 2px rgba(216, 0, 50, 0.2);
}

/* Admin Buttons */
.admin-button {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-top: 10px;
}

.ban-btn {
    background: #dc3545;
    color: white;
}
.ban-btn:hover {
    background: #c82333;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

.unban-btn {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.unban-btn:hover {
    background: #218838;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.ban-user-btn {
    background: #ffc107;
    color: #212529;
    padding: 6px 12px;
    font-size: 0.8rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}
.ban-user-btn:hover { background: #e0a800; }

/* Admin Action Buttons */
.admin-action-buttons {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.admin-action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.3s;
    min-width: 120px;
}
.gift-quota-btn {
    background: #28a745;
    color: white;
}
.gift-quota-btn:hover {
    background: #218838;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}
.send-notif-btn {
    background: #dc3545;
    color: white;
}
.send-notif-btn:hover {
    background: #c82333;
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
    margin-top: 20px;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--input-bg);
    border-radius: 10px;
    overflow: hidden;
}
.admin-table th {
    background: var(--primary-red);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border: none;
}
.admin-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-white);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover { background: rgba(216, 0, 50, 0.05); }

.email-banned { color: #ff6b6b; font-weight: bold; }
.email-active { color: #51cf66; font-weight: bold; }

.status-badge {
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}
.status-banned { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; }
.status-active { background: rgba(40, 167, 69, 0.2); color: #51cf66; }

.admin-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-gray);
    text-align: center;
    line-height: 1.4;
    padding: 10px;
    background: rgba(216, 0, 50, 0.1);
    border-radius: 8px;
    border: 1px solid var(--primary-red);
}

/* GIFT QUOTA MODAL */
.modal-gift-quota-overlay,
.modal-send-notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10010;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.modal-gift-quota-overlay.active,
.modal-send-notif-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-gift-quota-box,
.modal-send-notif-box {
    background: var(--card-bg);
    border: 2px solid var(--primary-red);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(216, 0, 50, 0.5);
}
.modal-gift-quota-overlay.active .modal-gift-quota-box,
.modal-send-notif-overlay.active .modal-send-notif-box { transform: scale(1); }
.modal-gift-quota-header,
.modal-send-notif-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.modal-gift-quota-close,
.modal-send-notif-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.modal-gift-quota-close:hover,
.modal-send-notif-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.modal-gift-quota-body,
.modal-send-notif-body { padding: 25px; }

/* MEMBERS SYSTEM */
.members-section {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.members-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.members-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    background: var(--input-bg);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
}
.member-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(216, 0, 50, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(216, 0, 50, 0.3);
}
.member-name {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.9rem;
}
.member-date {
    color: var(--text-gray);
    font-size: 0.7rem;
}
.no-members {
    text-align: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding: 20px;
}
.btn-view-members {
    background: rgba(66, 133, 244, 0.1);
    border: 1px solid #4285F4;
    color: #4285F4;
    padding: 10px;
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-view-members:hover {
    background: #4285F4;
    color: #fff;
    box-shadow: 0 0 15px rgba(66, 133, 244, 0.4);
}

/* Modal Members */
.modal-members-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10003;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.modal-members-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-members-box {
    background: var(--card-bg);
    border: 2px solid #4285F4;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(66, 133, 244, 0.5);
}
.modal-members-overlay.active .modal-members-box { transform: scale(1); }
.modal-members-header {
    background: #4285F4;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.modal-members-title {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.modal-members-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.modal-members-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}
.modal-members-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
}
.member-form-group { margin-bottom: 20px; }
.member-input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
.member-input:focus {
    border-color: #4285F4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}
.btn-add-member {
    background: #4285F4;
    color: white;
    border: none;
    padding: 14px;
    width: 100%;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-add-member:hover {
    background: #3367D6;
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.5);
}
.members-management-list { margin-top: 25px; }
.member-management-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: rgba(66, 133, 244, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(66, 133, 244, 0.3);
}
.member-info { flex: 1; }
.member-management-name {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 5px;
}
.member-management-date {
    color: var(--text-gray);
    font-size: 0.8rem;
}
.btn-remove-member {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-remove-member:hover {
    background: #dc3545;
    color: white;
}

/* Admin only */
.non-admin .btn-remove-member,
.non-admin .btn-add-member,
.non-admin .member-input { display: none !important; }
.non-admin .members-management-list { margin-top: 0; }
.admin-only { display: none; }
.is-admin .admin-only { display: block; }

/* AI CHAT */
.chat-context-indicator {
    font-size: 0.7rem;
    color: var(--text-gray);
    padding: 5px 10px;
    background: rgba(216, 0, 50, 0.1);
    border-radius: 10px;
    margin-bottom: 5px;
    display: none;
    text-align: center;
}
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.chat-option-btn {
    background: rgba(216, 0, 50, 0.1);
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}
.chat-option-btn:hover {
    background: var(--primary-red);
    color: white;
}

/* Guest Avatar */
.guest-avatar-sidebar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #6c757d;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 117, 125, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track { background: var(--input-bg); }
::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #ff0040; }