/* =============================================
   PREMIUM DESIGN SYSTEM - CORE FIXES
   ============================================= */

/* Splash Screen (Initial Loader) */
.splash-loader-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff !important;
    background: radial-gradient(circle at center, #ffffff 0%, #f9f9f9 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 99999 !important;
    opacity: 1;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.splash-loader-overlay.fade-out {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.splash-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 320px !important;
}

.splash-logo {
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
}

.splash-loader-container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
}

.splash-progress-track {
    width: 200px !important;
    height: 6px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border-radius: 30px !important;
    overflow: hidden !important;
    position: relative !important;
    margin-top: 5px !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.splash-progress-fill {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 50% !important;
    background: linear-gradient(90deg, transparent, #FF0000, #ff4d4d, #FF0000, transparent) !important;
    background-size: 200% 100% !important;
    border-radius: 30px !important;
    animation: splashProgressAnim 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1) !important;
}

@keyframes splashProgressAnim {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.splash-loading-text {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #444 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    opacity: 0.8 !important;
    margin-top: 5px !important;
}

/* =============================================
   NEW PROFESSIONAL NAVBAR (DESKTOP)
   ============================================= */
.desktop-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 85px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    z-index: 2000 !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.new-nav-container {
    max-width: 1300px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 30px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.new-nav-logo {
    display: flex !important;
    align-items: center !important;
}

.nav-logo-img {
    height: 48px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
}

.new-nav-links {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 32px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-link-new {
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    white-space: nowrap !important;
}

.nav-link-new i {
    font-size: 0.9rem !important;
    color: var(--accent-red, #FF0000) !important;
}

/* Desktop Dropdown */
.nav-dropdown {
    position: relative !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    min-width: 220px !important;
    padding: 10px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    z-index: 2001 !important;
    list-style: none !important;
    margin: 0 !important;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}

.dropdown-item {
    display: block !important;
    padding: 10px 15px !important;
    color: #333 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    border-radius: 6px !important;
    transition: background 0.2s, color 0.2s !important;
    font-size: 0.9rem !important;
}

.dropdown-item:hover {
    background: rgba(255, 0, 0, 0.05) !important;
    color: var(--accent-red, #FF0000) !important;
}

.admin-link-new {
    color: #111 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.admin-link-new i {
    font-size: 1.1rem !important;
    color: var(--accent-red, #FF0000) !important;
}

/* =============================================
   MOBILE TOP HEADER (Sticky Logo Bar)
   ============================================= */
.mobile-top-header {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 60px !important;
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 2px 12px !important;
    z-index: 1000 !important;
}

.mobile-nav-logo {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}

/* Mobile header logo - balanced size */
.mobile-nav-logo img,
.mobile-top-header .nav-logo-img {
    height: 48px !important;
    width: auto !important;
    max-width: 210px !important;
    object-fit: contain !important;
}

/* =============================================
   MOBILE BOTTOM BAR
   ============================================= */
.mobile-bottom-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 70px !important;
    background: #ffffff !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-around !important;
    z-index: 9999 !important;
    padding: 0 !important;
}

.bottom-tab-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    color: #888 !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    font-size: 0.68rem !important;
    cursor: pointer !important;
    padding: 8px 0 !important;
    flex: 1 !important;
    transition: color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.bottom-tab-link i {
    font-size: 1.2rem !important;
}

.bottom-tab-link.active,
.bottom-tab-link:hover {
    color: var(--accent-red, #FF0000) !important;
}

.bottom-tab-link .multi-icon {
    width: 28px !important;
    height: 28px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* =============================================
   MOBILE DRAWER OVERLAY
   ============================================= */
.mobile-drawer-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(4px) !important;
    z-index: 10000 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
}

.mobile-drawer-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* =============================================
   MOBILE MENU DRAWER (Services / More)
   ============================================= */
.mobile-menu-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-height: 85vh !important;
    background: #ffffff !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.12) !important;
    z-index: 10001 !important;
    transform: translateY(100%) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 !important;
    overflow-y: auto !important;
}

.mobile-menu-drawer.active {
    transform: translateY(0) !important;
}

/* Drawer Header (logo + title + close) */
.mobile-drawer-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px 20px 15px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
    position: sticky !important;
    top: 0 !important;
    background: #ffffff !important;
    z-index: 2 !important;
}

/* FIXED: Drawer logo must be small, not giant */
.drawer-logo {
    height: 30px !important;
    width: auto !important;
    max-width: 120px !important;
    object-fit: contain !important;
}

.drawer-title-context {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: var(--accent-red, #FF0000) !important;
    margin-left: 10px !important;
    flex: 1 !important;
}

.drawer-close {
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f5f5 !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 1.1rem !important;
    color: #666 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.drawer-close:hover {
    background: #eee !important;
    color: #333 !important;
}

/* Drawer Content Area */
.mobile-drawer-content {
    padding: 20px !important;
}

/* Drawer Section Title */
.drawer-section-title {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #999 !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
}

/* Drawer Services Grid (2 columns) */
.drawer-links-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
}

.drawer-link {
    background: #f8f9fa !important;
    padding: 18px 12px !important;
    border-radius: 14px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.85rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    transition: all 0.25s ease !important;
    text-align: center !important;
}

.drawer-link:hover,
.drawer-link:active {
    background: rgba(255, 0, 0, 0.04) !important;
    border-color: rgba(255, 0, 0, 0.15) !important;
    color: var(--accent-red, #FF0000) !important;
}

.drawer-link i {
    font-size: 1.4rem !important;
    color: var(--accent-red, #FF0000) !important;
}

/* Drawer "More" List Items (full-width rows) */
.drawer-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.drawer-item-wide {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 16px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 700 !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.drawer-item-wide:hover,
.drawer-item-wide:active {
    background: #f5f5f5 !important;
    color: var(--accent-red, #FF0000) !important;
}

.drawer-item-wide i {
    font-size: 1.1rem !important;
    width: 22px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

/* =============================================
   MEDIA QUERIES (SPECIFICITY WINNER)
   ============================================= */
@media (min-width: 1025px) {
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
    .mobile-bottom-bar { display: none !important; }
    .mobile-drawer-overlay { display: none !important; }
    .mobile-menu-drawer { display: none !important; }
    .mobile-top-header { display: none !important; }
}

@media (max-width: 1024px) {
    .desktop-header { display: none !important; }
    .desktop-only { display: none !important; }
    .mobile-only { display: block !important; }
    .mobile-bottom-bar { display: flex !important; }
    .mobile-top-header { display: flex !important; }
}

/* =============================================
   HERO ICON GRID & ANIMATIONS
   ============================================= */
.hero-icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}
.hero-icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    overflow: hidden;
}
.hero-icon-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 0, 0, 0.3);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.15);
}
.hero-icon-card span {
    font-family: var(--font-poppins), sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    transition: 0.3s;
}
.hero-icon-card:hover span {
    color: #000000;
}

.anim-icon {
    width: 48px;
    height: 48px;
    color: #FF0000;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-icon-card:hover .anim-icon {
    transform: scale(1.35);
}

/* Animations (Desktop Only) */
@media (min-width: 992px) {
    /* Laptop */
    @keyframes laptopLidOpenClose {
        0%, 100% { transform: perspective(200px) rotateX(0deg); }
        50% { transform: perspective(200px) rotateX(-55deg); }
    }
    .anim-laptop-lid {
        transform-origin: bottom center;
        animation: laptopLidOpenClose 3s infinite ease-in-out;
    }

    /* AC */
    @keyframes acFanRotate {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .anim-ac-fan {
        transform-origin: 7px 12px;
        animation: acFanRotate 0.8s infinite linear;
    }
    @keyframes acCoolAirFlow {
        0% { transform: translateX(0); opacity: 0; }
        50% { opacity: 1; }
        100% { transform: translateX(8px); opacity: 0; }
    }
    .anim-ac-air path {
        animation: acCoolAirFlow 2s infinite ease-out;
    }
    .anim-ac-air path:nth-child(2) { animation-delay: 1.0s; }

    /* CCTV */
    @keyframes cctvRotateCam {
        0%, 100% { transform: rotate(-8deg); }
        50% { transform: rotate(8deg); }
    }
    .anim-cctv-cam {
        transform-origin: 9px 13px;
        animation: cctvRotateCam 6s infinite ease-in-out;
    }
    @keyframes cctvLensSpin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    .anim-cctv-lens-rotate {
        transform-origin: 17px 13px;
        animation: cctvLensSpin 4s infinite linear;
    }
    @keyframes cctvFocus {
        0%, 100% { fill: #ff3333; opacity: 1; }
        50% { fill: transparent; opacity: 0.1; }
    }
    .anim-cctv-lens {
        animation: cctvFocus 2s infinite ease-in-out;
    }

    /* Mobile */
    @keyframes mobilePulse {
        0%, 100% { opacity: 0.2; }
        50% { opacity: 0.8; }
    }
    .anim-mobile-screen {
        animation: mobilePulse 2.5s infinite ease-in-out;
    }
    
    /* Server */
    @keyframes serverBlink {
        0%, 100% { opacity: 0.3; }
        50% { opacity: 1; }
    }
    .anim-server-led { animation: serverBlink 1.5s infinite; }
    .anim-server-led-2 { animation: serverBlink 1.5s infinite 0.5s; }
    .anim-server-led-3 { animation: serverBlink 1.5s infinite 1.0s; }

    /* TV */
    @keyframes tvSignalMove {
        0%, 100% { opacity: 0.5; transform: scaleX(0.8); }
        50% { opacity: 1; transform: scaleX(1.1); }
    }
    .anim-tv-signal {
        transform-origin: center;
        animation: tvSignalMove 2s infinite ease-in-out;
    }
}*,:root,html,body,textarea,select,.modal,.modal-overlay,.admin-table-wrap{scrollbar-width:thin;scrollbar-color:#FF0000 #F5F5F5;}::-webkit-scrollbar{width:10px;height:10px;}::-webkit-scrollbar-track{background:#F5F5F5;border-radius:5px;}::-webkit-scrollbar-thumb{background:#FF0000;border-radius:5px;border:2px solid #F5F5F5;}::-webkit-scrollbar-thumb:hover{background:#CC0000;cursor:pointer;}::-webkit-scrollbar-corner{background:#F5F5F5;}.modal::-webkit-scrollbar,.premium-modal-container::-webkit-scrollbar,.modal-overlay::-webkit-scrollbar{width:8px;height:8px;}.modal::-webkit-scrollbar-track,.premium-modal-container::-webkit-scrollbar-track{background:#F5F5F5;}.modal::-webkit-scrollbar-thumb,.premium-modal-container::-webkit-scrollbar-thumb{background:#FF0000;border-radius:5px;border:1px solid #F5F5F5;}.modal::-webkit-scrollbar-thumb:hover,.premium-modal-container::-webkit-scrollbar-thumb:hover{background:#CC0000;}textarea::-webkit-scrollbar{width:8px;}textarea::-webkit-scrollbar-track{background:#F5F5F5;}textarea::-webkit-scrollbar-thumb{background:#FF0000;border-radius:5px;}textarea::-webkit-scrollbar-thumb:hover{background:#CC0000;}.admin-table-wrap::-webkit-scrollbar,.table-wrap::-webkit-scrollbar{height:10px;width:10px;}.admin-table-wrap::-webkit-scrollbar-track,.table-wrap::-webkit-scrollbar-track{background:#F5F5F5;}.admin-table-wrap::-webkit-scrollbar-thumb,.table-wrap::-webkit-scrollbar-thumb{background:#FF0000;border-radius:5px;}.admin-table-wrap::-webkit-scrollbar-thumb:hover,.table-wrap::-webkit-scrollbar-thumb:hover{background:#CC0000;}