/* =========================================
   COMPREHENSIVE SITE RESTORATION FIXES
   ========================================= */

/* --- 1. Global Visibility & Typography --- */
body,
html {
    margin: 0 !important;
    padding: 0 !important;
    background-color: #02050A !important;
    color: #b0b2b7 !important;
    overflow-x: hidden !important;
}

/* Custom Dark Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    background: #02050A;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

h1,
h2,
h3,
h4,
h5,
h6,
.title,
.sub-title {
    color: #ffffff !important;
}

p,
.decs {
    color: rgba(255, 255, 255, 0.7) !important;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #3F5AF3 !important;
}

/* --- 2. Sidebar Visibility (PC vs Mobile) --- */
/* DEFAULT: Hide sidebar and trigger everywhere */
.sidebar-icon,
.sidebar-trigger,
#sidebar-area,
.sidebar-area,
.mobile-side-menu {
    display: none !important;
    visibility: hidden !important;
}

/* MOBILE ONLY: Show sidebar and trigger */
@media (max-width: 991px) {

    .sidebar-icon,
    .sidebar-trigger,
    .sidebar-trigger.open {
        display: flex !important;
        visibility: visible !important;
    }

    #sidebar-area,
    .sidebar-area {
        display: block !important;
        visibility: visible !important;
    }
}

/* --- 3. Mobile Header & Branding Fixes --- */
@media (max-width: 991px) {

    /* Remove all white backgrounds, gradients, and shapes from ALL header versions */
    header,
    .header,
    .primary-header,
    .primary-header-inner,
    .sticky-active,
    .header-area,
    .header-6,
    .header-10,
    .header-16,
    .header-18,
    .header-19 {
        background: transparent !important;
        background-color: transparent !important;
        background-image: none !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Remove background shapes/pseudo-elements */
    .header::before,
    .header::after,
    .primary-header::before,
    .primary-header::after,
    .primary-header-inner::before,
    .primary-header-inner::after,
    .header-6::before,
    .header-16::before,
    .header-18::before,
    .header-19::before,
    .bg-shape {
        display: none !important;
    }

    /* Hide logo branding on mobile COMPLETELY */
    .header-logo,
    .header-logo *,
    .mean-container .mean-bar .mean-logo,
    .mean-logo,
    .mobile-logo {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }

    /* Position Hamburger to the Right */
    .header-menu-wrap,
    .header-right,
    .sidebar-icon {
        justify-content: flex-end !important;
        display: flex !important;
        float: right !important;
        width: auto !important;
        background: transparent !important;
        margin-right: 15px !important;
    }

    /* Hamburger Icon Styling */
    .sidebar-trigger {
        width: 45px !important;
        height: 45px !important;
        border: 1px solid rgba(255, 255, 255, 0.4) !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 10px !important;
    }

    /* Sidebar Area Styling */
    .sidebar-area {
        width: 100% !important;
        max-width: 320px !important;
        background-color: #0b1120 !important;
        /* Dark theme */
    }

    /* Close Button (X) Fix */
    .sidebar-trigger.close,
    .sidebar-close {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        z-index: 100000 !important;
        position: fixed !important;
        right: 20px !important;
        top: 20px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        border-radius: 50% !important;
        width: 40px !important;
        height: 40px !important;
    }
}

/* --- 4. Admin Link & Navbar Alignment (Desktop) --- */
#admin-link {
    display: none;
    /* Controlled by app.js */
}

@media (min-width: 992px) {
    #admin-link a {
        background: rgba(63, 90, 243, 0.1);
        padding: 5px 12px !important;
        border-radius: 5px;
        border: 1px solid rgba(63, 90, 243, 0.3);
        color: #3F5AF3 !important;
    }

    #admin-link a:hover {
        background: #3F5AF3 !important;
        color: #ffffff !important;
    }

    .header-menu-wrap ul {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    .header-menu-wrap ul li {
        margin: 0 10px !important;
    }
}

/* --- 5. Shop & UI Components --- */
.header .primary-header-inner .header-menu-wrap ul li ul {
    background-color: #11151C !important;
    border: 1px solid #232323;
}

.shop-item {
    background-color: #1a1e26;
    border-radius: 12px;
    border: 1px solid #2d343e;
}

.title a {
    color: #fff !important;
}

/* Sticky Header Visibility */
.header.fixed,
.header.sticky-active {
    background-color: #02050A !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5) !important;
}

/* --- Live Chat System --- */
.live-chat-trigger {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #3F5AF3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.live-chat-box {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: #1a1e26;
    border-radius: 12px;
    z-index: 9999;
    display: none;
    flex-direction: column;
}