/* ==========================================================================
   NexaWeb — Futuristic 3D Cyber Holographic Offcanvas Mobile Drawer
   ========================================================================== */

:root {
    --nx-drw-bg: #050816;
    --nx-drw-surface: rgba(15, 23, 42, 0.75);
    --nx-drw-border: rgba(99, 102, 241, 0.25);
    --nx-drw-cyan: #06b6d4;
    --nx-drw-indigo: #6366f1;
    --nx-drw-violet: #8b5cf6;
    --nx-drw-emerald: #10b981;
}

/* 1. Main Drawer Shell */
.mobile-nav-offcanvas {
    width: min(390px, 94vw) !important;
    background: var(--nx-drw-bg) !important;
    background-image: 
        radial-gradient(circle at 10% 15%, rgba(6, 182, 212, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 60%),
        linear-gradient(180deg, #070b1e 0%, #03050d 100%) !important;
    border-left: 1px solid rgba(6, 182, 212, 0.4) !important;
    box-shadow: -25px 0 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(6, 182, 212, 0.15) !important;
    color: #ffffff !important;
    z-index: 10050 !important;
    overflow: hidden !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* Left Laser Accent Line */
.mobile-nav-offcanvas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #06b6d4 0%, #6366f1 50%, #ec4899 100%);
    box-shadow: 0 0 12px #06b6d4;
    z-index: 10;
}

/* Backdrop */
.offcanvas-backdrop {
    z-index: 10040 !important;
    background-color: rgba(2, 6, 23, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* 2. Futuristic Header HUD */
.mobile-nav-offcanvas .offcanvas-header {
    padding: 22px 24px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(15, 23, 42, 0.75) !important;
    backdrop-filter: blur(14px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    z-index: 5;
}

.mobile-nav-offcanvas .mobile-nav-brand img {
    max-height: 38px !important;
    width: auto !important;
    display: block !important;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.4));
}

/* Close Disc Button */
.nx-drawer-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    outline: none !important;
}

.nx-drawer-close:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.6);
    color: #f87171;
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}

/* 3. Offcanvas Body */
.mobile-nav-offcanvas .offcanvas-body {
    padding: 18px 20px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(6, 182, 212, 0.3) transparent !important;
    position: relative;
    z-index: 2;
}

.mobile-nav-offcanvas .offcanvas-body::-webkit-scrollbar {
    width: 4px;
}
.mobile-nav-offcanvas .offcanvas-body::-webkit-scrollbar-thumb {
    background: rgba(6, 182, 212, 0.3);
    border-radius: 4px;
}

/* Status HUD Badge */
.nx-drawer-hud-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 0 4px;
}

.nx-hud-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nx-hud-status .beacon {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: nxDrawerBeacon 1.8s infinite;
}

@keyframes nxDrawerBeacon {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.nx-hud-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #38bdf8;
}

/* 4. Navigation Cards Stack */
.nx-nav-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

/* Single 3D Navigation Card */
.nx-nav-card {
    position: relative;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 14px !important;
    border-radius: 16px !important;
    background: linear-gradient(145deg, rgba(23, 32, 54, 0.65) 0%, rgba(12, 17, 32, 0.75) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer !important;
    overflow: hidden;
}

/* Ambient glow hover */
.nx-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.15), rgba(99, 102, 241, 0.15));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nx-nav-card:hover,
.nx-nav-card.is-active {
    border-color: rgba(6, 182, 212, 0.65) !important;
    transform: translateX(6px) scale(1.01) !important;
    box-shadow: 
        0 8px 24px -4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(6, 182, 212, 0.25) !important;
}

.nx-nav-card:hover::before,
.nx-nav-card.is-active::before {
    opacity: 1;
}

/* 3D Glowing Icon Disc */
.nx-nav-icon {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: #ffffff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.nx-nav-card:hover .nx-nav-icon {
    transform: scale(1.1) rotate(5deg);
}

.nx-icon-cyan {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.45);
}

.nx-icon-purple {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45);
}

.nx-icon-indigo {
    background: linear-gradient(135deg, #4f46e5 0%, #38bdf8 100%);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.45);
}

.nx-icon-orange {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.45);
}

.nx-icon-emerald {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
}

.nx-icon-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.45);
}

.nx-icon-pink {
    background: linear-gradient(135deg, #db2777 0%, #ec4899 100%);
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.45);
}

/* Text Meta in Card */
.nx-nav-meta {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    text-align: left;
    flex-grow: 1;
}

.nx-nav-meta strong {
    font-size: 14.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.nx-nav-card:hover .nx-nav-meta strong {
    color: #38bdf8;
}

.nx-nav-meta span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    line-height: 1.3;
}

/* Arrow & Badges */
.nx-nav-arrow {
    position: relative;
    z-index: 2;
    font-size: 11px;
    color: #64748b;
    transition: all 0.25s ease;
}

.nx-nav-card:hover .nx-nav-arrow {
    color: #38bdf8;
    transform: translateX(3px);
}

.nx-nav-badge {
    position: relative;
    z-index: 2;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.18);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: #38bdf8;
}

.nx-tag-pill.hot {
    position: relative;
    z-index: 2;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

/* 5. Services Dropdown Panel & Micro-Cards */
.nx-dropdown-chevron {
    position: relative;
    z-index: 2;
    font-size: 12px;
    color: #38bdf8;
    transition: transform 0.3s ease;
}

.nx-nav-dropdown-group.is-open .nx-dropdown-chevron {
    transform: rotate(180deg);
}

.nx-dropdown-panel {
    display: none;
    padding: 10px 8px 12px 14px;
    margin: 4px 0 6px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-left: 3px solid #06b6d4;
    animation: nxDrawerFade 0.3s ease;
}

.nx-nav-dropdown-group.is-open .nx-dropdown-panel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@keyframes nxDrawerFade {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.nx-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.nx-sub-item i {
    font-size: 12px;
    color: #38bdf8;
}

.nx-sub-item:hover {
    background: rgba(79, 70, 229, 0.25);
    border-color: rgba(6, 182, 212, 0.4);
    color: #ffffff !important;
    transform: translateX(3px);
}

/* 6. Bottom Action Deck */
.nx-drawer-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Direct Hotline Card */
.nx-deck-call-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(6, 182, 212, 0.12) 100%);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.nx-deck-call-btn:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(6, 182, 212, 0.2) 100%);
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.nx-deck-call-btn .call-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nx-deck-call-btn .call-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}

.nx-deck-call-btn .call-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.nx-deck-call-btn .call-text span {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nx-deck-call-btn .call-text strong {
    font-size: 13px;
    color: #34d399;
}

.nx-deck-call-btn .live-tag {
    font-size: 9px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    text-transform: uppercase;
}

/* Primary Holographic Callback CTA */
.nx-deck-callback-btn {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    border: none;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 
        0 10px 25px -4px rgba(79, 70, 229, 0.5),
        0 0 15px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
}

.nx-deck-callback-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 14px 30px -4px rgba(79, 70, 229, 0.65),
        0 0 25px rgba(6, 182, 212, 0.45);
}

.nx-deck-callback-btn i {
    animation: nxDrawerBolt 2s infinite ease-in-out;
}

@keyframes nxDrawerBolt {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); color: #fde047; }
}

/* Micro Action Strip */
.nx-deck-micro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.nx-micro-link {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.25s ease;
}

.nx-micro-link:hover {
    color: #38bdf8 !important;
}

.nx-micro-link.wa:hover {
    color: #25d366 !important;
}

/* Hide Floating Dock and WhatsApp Orb when Offcanvas Drawer is Open */
.mobile-nav-offcanvas.show ~ .nexa-floating-dock,
.mobile-nav-offcanvas.show ~ .nexa-floating-whatsapp-btn,
body:has(.mobile-nav-offcanvas.show) .nexa-floating-dock,
body:has(.mobile-nav-offcanvas.show) .nexa-floating-whatsapp-btn,
body.modal-open .nexa-floating-dock,
body.modal-open .nexa-floating-whatsapp-btn {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(24px) !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}
