/* =========================================
   1. GLOBAL & BACKGROUND STYLES (BLUE DARK AESTHETIC)
   ========================================= */
:root {
    --bg-dark: #050a14;
    --bg-panel: #0b162c;
    --primary-blue: #00f2ff; /* Neon Cyan */
    --secondary-blue: #007bff;
    --text-main: #e0f7ff;
    --text-muted: #8ba4b6;
    --glass-border: rgba(0, 242, 255, 0.1);
    --glass-bg: rgba(11, 22, 44, 0.85);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Deep Dark Blue Gradient */
    background: radial-gradient(circle at top center, #102a4e 0%, #02040a 100%);
    background-attachment: fixed;
    color: var(--text-main); 
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; 
}

/* --- GALAXY STAR ANIMATION --- */
#star-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none;
}
.star {
    position: absolute; background-color: var(--primary-blue); border-radius: 50%;
    opacity: 0; animation: twinkle infinite ease-in-out;
    box-shadow: 0 0 4px var(--primary-blue);
}
@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(0.5); }
}

/* =========================================
   2. LOADING OVERLAY
   ========================================= */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #02040a; display: none; 
    flex-direction: column; justify-content: center; align-items: center;
    z-index: 9999;
}
.loading-content-container {
    position: relative; width: 80px; height: 80px; 
    display: flex; justify-content: center; align-items: center; margin-bottom: 20px; 
}
.loading-spinner {
    width: 80px; height: 80px; border: 3px solid rgba(0, 242, 255, 0.1); 
    border-top: 3px solid var(--primary-blue); border-radius: 50%;
    animation: loadingSpin 1s linear infinite; box-sizing: border-box; 
    box-shadow: 0 0 15px var(--primary-blue);
}
.loading-profile-pic {
    position: absolute; width: 50px; height: 50px; border-radius: 50%;
    object-fit: cover; top: 50%; left: 50%; transform: translate(-50%, -50%);
    border: 2px solid var(--primary-blue);
}
.loading-text {
    color: var(--primary-blue); font-size: 1.2rem; letter-spacing: 3px; text-transform: uppercase;
    text-shadow: 0 0 10px var(--primary-blue);
}
@keyframes loadingSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* =========================================
   3. NAVIGATION (SIDEBAR & NAVBAR)
   ========================================= */

#sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 940; display: none; 
    opacity : 0;
    transition: opacity 0.3s ease;
}

/* Sidebar Container */
#sidebar {
    position: fixed; top: 0; left: 0; height: 100vh; width: 80%; max-width: 280px; 
    background: linear-gradient(180deg, #0d1b35 0%, #050a14 100%);
    border-right: 1px solid var(--glass-border);
    z-index: 950; 
    transform: translateX(-100%); 
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    display: flex; flex-direction: column;
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.5);
    will-change: transform;
}
#sidebar.show { transform: translateX(0); }

/* Sidebar Header */
.sidebar-header-profile { 
    padding: 30px 15px; 
    display: flex; flex-direction: column; align-items: center;    
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

.sidebar-profile-pic-large {
    width: 80px; height: 80px;
    border-radius: 50%;   
    border: 2px solid var(--primary-blue);
    margin-bottom: 15px;   
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.sidebar-market-name { 
    font-size: 1rem; margin: 0 0 10px 0;    
    font-weight: 800; color: var(--text-main); 
    text-transform: uppercase; letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.5);
}

.btn-sidebar-info {
    background: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    padding: 6px 20px; border-radius: 20px;
    font-size: 0.85rem; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: all 0.3s ease; font-weight: 600;
}
.btn-sidebar-info:hover {
    background: var(--primary-blue); color: #000;
    box-shadow: 0 0 15px var(--primary-blue);
}

/* Label Kategori */
.sidebar-label {
    font-size: 0.7rem; color: var(--text-muted); font-weight: bold; padding: 20px 20px 5px; 
    letter-spacing: 1.5px; text-transform: uppercase; margin-top: 5px;
}

/* Menu Items */
.sidebar-menu-list { list-style: none; padding: 0; margin: 0; overflow-y: auto; }
.sidebar-menu-list li a {
    display: flex; align-items: center; padding: 12px 20px; 
    color: #cbd5e1; text-decoration: none; 
    font-size: 0.95rem; transition: all 0.3s;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}
.sidebar-menu-list li a:hover, .sidebar-menu-list li a.active {
    background: linear-gradient(90deg, rgba(0, 242, 255, 0.1), transparent);
    color: var(--primary-blue);
    padding-left: 25px;
    border-left: 3px solid var(--primary-blue);
}
.store-profile-pic { width: 24px; height: 24px; border-radius: 4px; margin-right: 12px; }

/* Sidebar Footer & Copyright */
.sidebar-footer-menu { 
    padding: 10px 0; border-top: 1px solid var(--glass-border); margin-top: auto; list-style: none; background: rgba(0,0,0,0.2); 
}
.sidebar-footer-menu li a {
    display: flex; align-items: center; padding: 12px 20px; color: #ff6b6b; 
    text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s;
}
.sidebar-footer-menu li a:hover { background: rgba(255, 107, 107, 0.1); }
.sidebar-footer-menu svg { margin-right: 15px; width: 18px; stroke: #ff6b6b; }

.sidebar-copyright {
    text-align: center; font-size: 0.7rem; color: var(--text-muted);
    padding: 15px; background: #02040a; border-top: 1px solid #1e293b;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 60px; 
    background: rgba(5, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 20px; box-sizing: border-box; z-index: 900;
    visibility: hidden; opacity: 0; transform: translateY(-100%); transition: all 0.4s;
}
.navbar.show { visibility: visible; opacity: 1; transform: translateY(0); }
.hamburger-menu { cursor: pointer; padding: 5px; }
.hamburger-menu .line { width: 22px; height: 2px; background-color: var(--primary-blue); margin: 5px 0; border-radius: 2px; box-shadow: 0 0 5px var(--primary-blue); }
.nav-title { 
    position: absolute; left: 50%; transform: translateX(-50%); 
    font-weight: 800; color: var(--text-main); font-size: 1.1rem; letter-spacing: 1px; 
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.nav-profile-pic { width: 35px; height: 35px; border-radius: 50%; cursor: pointer; border: 2px solid var(--primary-blue); }

/* =========================================
   4. PAGE CONTENT STYLES
   ========================================= */
.halaman-baru {
    display: none; text-align: center; color: white; 
    padding-top: 80px; padding-bottom: 40px; 
    width: 100%; max-width: 1000px; box-sizing: border-box;
    padding-left: 15px; padding-right: 15px;
    min-height: calc(100vh - 60px); 
}

.page-content { display: none; text-align: left; animation: fadeIn 0.5s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.page-title {
    font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; text-align: center;
    color: var(--primary-blue); text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px; display: inline-block;
}

.search-wrapper { width: 100%; display: flex; justify-content: center; margin-bottom: 20px; }
.search-input {
    width: 100%; max-width: 500px; padding: 12px 25px; border-radius: 50px;
    border: 1px solid rgba(0, 242, 255, 0.3); 
    background-color: rgba(11, 22, 44, 0.6);
    color: white; font-size: 1rem; outline: none; transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.search-input:focus {
    background-color: rgba(11, 22, 44, 0.9); border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

.page-divider {
    border: 0; height: 1px; 
    background: linear-gradient(to right, transparent, var(--primary-blue), transparent);
    margin: 20px 0; width: 100%; opacity: 0.7;
}

/* --- WELCOME PAGE --- */
.welcome-image {
    width: 100%; max-width: 500px; height: auto; 
    border-radius: 15px; margin: 20px auto; display: block;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.15); border: 1px solid var(--glass-border);
}
.info-section {
    text-align: left; margin-top: 25px; 
    background: linear-gradient(145deg, rgba(13, 27, 53, 0.6), rgba(5, 10, 20, 0.6));
    padding: 20px; border-radius: 12px; border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}
.content-subheading {
    font-size: 1.1rem; font-weight: bold; color: var(--primary-blue); margin-bottom: 10px; margin-top: 0;
    text-transform: uppercase; letter-spacing: 1px;
}
.info-text { font-size: 0.9rem; line-height: 1.8; margin: 0; color: #cbd5e1; }

/* =========================================
   5. PRODUCT GRID & CARD
   ========================================= */
.product-grid-placeholder {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px; margin-top: 20px; min-height: 200px;
}
.product-card {
    background: rgba(13, 27, 53, 0.7); 
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px; padding: 12px; display: flex; flex-direction: column;
    transition: all 0.3s ease; height: 100%; box-sizing: border-box;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}
.product-card:hover {
    transform: translateY(-5px); 
    background: rgba(16, 34, 65, 0.9);
    border-color: var(--primary-blue); 
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
}
.card-img {
    width: 100%; aspect-ratio: 1 / 1; object-fit: cover;  
    border-radius: 8px; margin-bottom: 12px; background-color: #000;
    border: 1px solid #1e293b;
}
.card-title {
    font-size: 0.95rem; font-weight: bold; color: #fff; margin: 5px 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-price {
    color: var(--primary-blue); font-weight: bold; font-size: 1rem; margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(0, 242, 255, 0.4);
}
.card-desc-short {
    font-size: 0.8rem; color: var(--text-muted); display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 15px; flex-grow: 1; line-height: 1.4;
}
.btn-info {
    background: linear-gradient(135deg, var(--secondary-blue), #0056b3); color: white; border: none;
    padding: 10px; border-radius: 8px; cursor: pointer; font-weight: bold;
    width: 100%; font-size: 0.9rem; transition: opacity 0.2s;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}
.btn-info:hover { opacity: 0.9; box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); }
.btn-habis {
    background: #334155 !important; color: #94a3b8 !important; cursor: not-allowed !important;
    opacity: 0.7; background-image: none !important; box-shadow: none !important;
}
.status-badge {
    position: absolute; top: 8px; right: 8px; padding: 4px 8px;
    border-radius: 4px; font-size: 0.7rem; font-weight: 800; color: white;
    text-transform: uppercase; z-index: 5; box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.status-stock { background-color: #00c853; box-shadow: 0 0 10px #00c853; }
.status-off { background-color: #d50000; box-shadow: 0 0 10px #d50000; }
.product-card.is-off .card-img { filter: grayscale(100%) contrast(0.8); opacity: 0.6; }

/* =========================================
   6. PUBLIC MODAL (PRODUCT) - UPDATED
   ========================================= */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); z-index: 2000;
    display: none; justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box; overflow-y: auto; backdrop-filter: blur(8px);
}
.modal-content {
    background: #0b162c; 
    border: 1px solid var(--primary-blue);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.2);
    border-radius: 16px;
    width: 100%; max-width: 500px; padding: 25px; position: relative;
    margin-top: 20px; margin-bottom: 20px; height: auto; 
    display: flex; flex-direction: column;
}

/* Tombol Close Diperbaiki */
.close-modal {
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: rgba(0, 0, 0, 0.7); 
    color: #fff; 
    font-size: 24px; 
    cursor: pointer; 
    z-index: 100;
    width: 40px; 
    height: 40px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    border-radius: 50%; 
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}
.close-modal:hover { 
    background: #dc3545; 
    border-color: #dc3545; 
    transform: rotate(90deg); 
}

/* Container Slider Dibuat Kotak (Square) */
.slider-container {
    position: relative; 
    width: 100%; 
    aspect-ratio: 1 / 1; /* MEMAKSA KOTAK PERSEGI */
    background: #000; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    overflow: hidden; 
    border: 1px solid #334155;
}

        /* FIX LAG: Matikan blur berat di overlay */
        #sidebar-overlay { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
        
        /* LAYOUT SIDEBAR: Agar angka ada di kanan */
        .sidebar-menu-list li a {
            display: flex !important;
            justify-content: space-between !important;
            align-items: center !important;
            padding-right: 15px !important;
        }
        
        /* STYLE ANGKA COUNTER */
        .category-count {
            font-size: 0.8rem;
            color: #00f2ff;
            font-weight: bold;
            background: rgba(0, 242, 255, 0.1);
            padding: 2px 8px;
            border-radius: 10px;
            border: 1px solid rgba(0, 242, 255, 0.2);
            min-width: 30px;
            text-align: center;
        }

/* Gambar Slider & Efek Zoom */
.slider-img {
    width: 100%; 
    height: 100%; 
    object-fit: contain; /* Gambar utuh proporsional di dalam kotak */
    display: none; 
    border-radius: 0; 
    border: none;
    cursor: zoom-in; /* Cursor kaca pembesar */
    transition: transform 0.3s ease; 
}
.slider-img.active { display: block; }

/* Tombol Next/Prev Slider */
.slider-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6); 
    color: var(--primary-blue); 
    border: 1px solid var(--primary-blue);
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px;
    z-index: 60; 
    border-radius: 50%; 
    transition: background 0.3s;
}
.slider-btn:hover { background: var(--primary-blue); color: black; }
.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.modal-title { font-size: 1.4rem; color: var(--text-main); font-weight: 800; margin-bottom: 5px; margin-top: 0; }
.modal-price { font-size: 1.6rem; color: var(--primary-blue); font-weight: bold; margin-bottom: 15px; border-bottom: 1px solid #1e293b; padding-bottom: 15px; text-shadow: 0 0 10px rgba(0, 242, 255, 0.3); }
.modal-desc { font-size: 0.95rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 25px; white-space: pre-wrap; }
.modal-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-modal { 
    padding: 14px; border: none; border-radius: 10px; 
    font-weight: bold; cursor: pointer; color: white; font-size: 1rem; 
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.btn-modal:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn-direct { background: linear-gradient(to right, #00c853, #009624); } 
.btn-mc { background: linear-gradient(to right, #ffab00, #ff6d00); color: white; }

/* =========================================
   7. FULLSCREEN IMAGE ZOOM STYLES (BARU)
   ========================================= */
.fullscreen-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); /* Latar belakang sangat gelap */
    z-index: 3000; /* LEBIH TINGGI dari modal produk */
    display: none; 
    justify-content: center; align-items: center;
    padding: 20px; box-sizing: border-box;
    backdrop-filter: blur(5px);
}
#fullscreenImgDisplay {
    max-width: 95%; max-height: 95%;
    object-fit: contain; 
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s ease;
}
.close-fullscreen {
    position: absolute; top: 20px; right: 30px;
    color: #fff; font-size: 50px; font-weight: bold;
    cursor: pointer; z-index: 3002; /* Lebih tinggi dari tombol next/prev */
    transition: color 0.3s, transform 0.3s;
    line-height: 1;
}
.close-fullscreen:hover { color: var(--primary-blue); transform: scale(1.1); }

/* TOMBOL SLIDER DI FULLSCREEN ZOOM */
.fullscreen-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5); 
    color: white; 
    border: 2px solid rgba(255, 255, 255, 0.5);
    width: 60px; height: 60px; /* Lebih besar dari modal biasa */
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 24px;
    z-index: 3001; 
    border-radius: 50%; 
    transition: all 0.3s;
}
.fullscreen-btn:hover { 
    background: var(--primary-blue); 
    color: black; 
    border-color: var(--primary-blue);
}
.fullscreen-btn.prev { left: 20px; }
.fullscreen-btn.next { right: 20px; }

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* =========================================
   8. ADMIN PANEL STYLES
   ========================================= */
.admin-container { 
    width: 95%; max-width: 800px; margin: 40px auto; padding: 30px; 
    background: rgba(11, 22, 44, 0.9); border-radius: 20px; backdrop-filter: blur(15px); 
    border: 1px solid var(--glass-border); box-shadow: 0 0 40px rgba(0, 242, 255, 0.1);
}
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; color: var(--primary-blue); font-weight: bold; font-size: 0.9rem; }
.admin-input, .admin-select, .admin-textarea { 
    width: 100%; padding: 12px 15px; border-radius: 8px; 
    border: 1px solid #334155; background: #02040a; color: white; 
    box-sizing: border-box; font-family: inherit; font-size: 0.95rem;
}
.admin-input:focus, .admin-select:focus, .admin-textarea:focus { border-color: var(--primary-blue); outline: none; box-shadow: 0 0 10px rgba(0, 242, 255, 0.2); }
.btn-admin { 
    width: 100%; padding: 14px; border: none; border-radius: 8px; 
    cursor: pointer; font-weight: bold; margin-top: 10px; transition: 0.3s; 
    font-size: 1rem; letter-spacing: 0.5px;
}
.btn-primary { background: var(--secondary-blue); color: white; }
.btn-secondary { background: #334155; color: white; }
.btn-danger { background: #d50000; color: white; }
.preview-container { display: flex; gap: 10px; overflow-x: auto; margin-top: 15px; padding-bottom: 10px; }
.preview-img { width: 70px; height: 70px; object-fit: cover; border-radius: 8px; border: 2px solid var(--primary-blue); }
.hide { display: none !important; }
.admin-tabs { display: flex; justify-content: space-between; margin-bottom: 25px; background: rgba(0,0,0,0.3); border-radius: 12px; padding: 5px; }
.tab-btn { flex: 1; background: transparent; border: none; color: #94a3b8; padding: 12px; cursor: pointer; font-weight: bold; border-radius: 10px; transition: 0.3s; }
.tab-btn:hover { color: white; background: rgba(255,255,255,0.05); }
.tab-btn.active { background: var(--secondary-blue); color: white; box-shadow: 0 0 15px rgba(0, 123, 255, 0.4); }
.tab-content { display: none; animation: fadeIn 0.3s; }
.tab-content.active { display: block; }
.admin-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; margin-top: 20px; }
.admin-card { background: rgba(255,255,255,0.02); padding: 10px; border-radius: 10px; text-align: center; border: 1px solid #334155; position: relative; }
.admin-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.admin-card h4 { font-size: 0.85rem; color: white; margin: 5px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.admin-card p { font-size: 0.8rem; color: var(--primary-blue); margin-bottom: 8px; margin-top: 0; }
.admin-category-header { grid-column: 1 / -1; background: rgba(0, 242, 255, 0.1); color: var(--primary-blue); padding: 10px 15px; border-radius: 8px; margin-top: 15px; margin-bottom: 5px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; border-left: 4px solid var(--primary-blue); display: flex; align-items: center; }
.btn-edit-item { background: #ffab00; color: black; width: 100%; padding: 6px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.8rem; }
.btn-delete-item { background: #d50000; color: white; width: 100%; padding: 6px; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 0.8rem; }
.edit-modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 20px; backdrop-filter: blur(5px); }
.status-toggle-group { display: flex; gap: 10px; margin-top: 5px; }
.btn-toggle { flex: 1; padding: 10px; border: 1px solid #555; background: #02040a; color: #aaa; cursor: pointer; border-radius: 5px; font-weight: bold; transition: 0.2s; }
.btn-toggle:hover { background: #333; }
.btn-toggle.active-stock { background: #00c853; color: white; border-color: #00c853; box-shadow: 0 0 10px #00c853; }
.btn-toggle.active-off { background: #d50000; color: white; border-color: #d50000; box-shadow: 0 0 10px #d50000; }

/* =========================================
   9. INFO MODAL (DARK BLUE THEME)
   ========================================= */

.modal-content.modal-white-theme {
    background: linear-gradient(145deg, #0b162c, #050a14) !important;
    border-radius: 20px; 
    border: 1px solid var(--primary-blue);
    color: var(--text-main);
    text-align: center;
    max-width: 380px; 
    padding: 30px 25px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.15); 
}

/* Header Modal */
.info-header { margin-bottom: 15px; display: flex; flex-direction: column; align-items: center; }
.info-modal-img {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
    margin-bottom: 10px; border: 2px solid var(--primary-blue);
}
.modal-title.title-dark {
    color: white; font-size: 1.4rem; margin: 5px 0 0 0;
    font-weight: 800; letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}
.info-subtitle {
    color: var(--primary-blue); font-size: 0.85rem; font-weight: 600;
    margin: 5px 0 0 0; text-transform: uppercase; letter-spacing: 2px;
}

/* Tombol Close */
.close-modal.text-dark {
    color: #94a3b8; background: rgba(255,255,255,0.05);
    top: 15px; right: 15px; width: 32px; height: 32px;
    font-size: 24px; line-height: 1; border: 1px solid transparent;
}
.close-modal.text-dark:hover { background: rgba(220, 53, 69, 0.2); color: #ff6b6b; border-color: #ff6b6b; }

/* Deskripsi */
.info-desc-text { color: #cbd5e1; margin-bottom: 25px; font-size: 0.9rem; line-height: 1.6; padding: 0 10px; }

/* Wrapper Tombol */
.info-btn-wrapper { display: flex; flex-direction: column; gap: 12px; width: 100%; }

/* Style Tombol Link Baru */
.btn-info-link {
    display: flex; align-items: center; justify-content: flex-start;
    padding: 12px 15px; 
    background: rgba(11, 22, 44, 0.8);
    color: white; text-decoration: none;
    border-radius: 12px; font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #334155;
}

.btn-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px; display: flex; justify-content: center; align-items: center;
    margin-right: 15px; transition: all 0.3s;
}
.btn-icon svg { width: 20px; height: 20px; stroke: #cbd5e1; }

/* Hover Effects */
.btn-info-link:hover {
    transform: translateY(-3px); border-color: var(--primary-blue);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}
.btn-info-link.whatsapp:hover { background: rgba(37, 211, 102, 0.1); border-color: #25d366; color: #25d366; }
.btn-info-link.whatsapp:hover .btn-icon { background: #25d366; }
.btn-info-link.whatsapp:hover .btn-icon svg { stroke: black; }

.btn-info-link.testi:hover { background: rgba(0, 123, 255, 0.1); border-color: #007bff; color: #007bff; }
.btn-info-link.testi:hover .btn-icon { background: #007bff; }
.btn-info-link.testi:hover .btn-icon svg { stroke: white; }

.btn-info-link.group:hover { background: rgba(156, 39, 176, 0.1); border-color: #9c27b0; color: #9c27b0; }
.btn-info-link.group:hover .btn-icon { background: #9c27b0; }
.btn-info-link.group:hover .btn-icon svg { stroke: white; }

/* Footer Copyright */
.info-copyright {
    margin-top: 30px; font-size: 0.75rem; color: #64748b;
    font-weight: 500; border-top: 1px dashed #334155;
    padding-top: 15px; width: 100%;
}

/* GLOBAL FOOTER (MAIN PAGE) */
.global-footer {
    width: 100%;
    text-align: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(5, 10, 20, 0.8);
    border-top: 1px solid #1e293b;
    margin-top: auto;
}

/* =========================================
   10. ANNOUNCEMENT MODAL (POPUP PENGUMUMAN)
   ========================================= */
.announcement-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95); z-index: 9999;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(10px); animation: fadeIn 0.5s;
}

.announcement-box {
    width: 90%; max-width: 450px;
    background: linear-gradient(160deg, #0b162c 0%, #02040a 100%);
    border: 2px solid var(--primary-blue);
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    position: relative;
    padding: 0; overflow: hidden;
    display: flex; flex-direction: column;
}

.announcement-banner {
    width: 100%; height: 150px;
    object-fit: cover;
    border-bottom: 2px solid var(--primary-blue);
}

.announcement-content {
    padding: 25px;
}

.announcement-title {
    text-align: center; color: var(--primary-blue);
    font-size: 1.5rem; font-weight: 800; margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.announcement-list {
    display: flex; flex-direction: column; gap: 12px;
}

.announcement-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 15px; border-radius: 10px;
    color: white; border: 1px solid #334155;
    font-size: 0.95rem; display: flex; align-items: center;
}

.announcement-item::before {
    content: '📢'; margin-right: 10px; font-size: 1.2rem;
}

.close-announcement {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.6); color: white;
    width: 35px; height: 35px; border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    font-size: 20px; cursor: pointer; border: 1px solid white;
    transition: 0.3s; z-index: 10;
}
.close-announcement:hover { background: #d50000; border-color: #d50000; }

/* Filter Buttons di Admin */
.filter-container {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px;
    padding: 15px; background: rgba(255,255,255,0.03); border-radius: 10px;
}
.btn-filter-cat {
    padding: 8px 12px; font-size: 0.8rem;
    background: #1e293b; color: #cbd5e1; border: 1px solid #334155;
    border-radius: 6px; cursor: pointer; transition: 0.3s;
}
.btn-filter-cat:hover, .btn-filter-cat.active {
    background: var(--primary-blue); color: black; border-color: var(--primary-blue);
    font-weight: bold;
}
