/* V48: ABSOLUTE HARMONY & Z-LAYER UNDERLAY */

:root {
    --gg-bg: rgba(12, 12, 12, 0.94);
    --gg-gold: #FFD700;
    --gg-white: #ffffff;
    --gg-border: rgba(255, 255, 255, 0.12);
    /* LOW Z-INDEX TO STAY UNDER SITE OFF-CANVAS (usually 1000+) */
    --v38-z-backdrop: 98;
    --v38-z-controls: 99;
}

/* 1. Main Bottom Nav - STABLE GRID RESTORATION */
.master-mobile-nav {
    position: fixed !important;
    bottom: 25px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 92% !important;
    max-width: 400px !important;
    height: 70px !important;
    z-index: 1000 !important;
    display: flex !important;
    justify-content: center !important;
    pointer-events: none !important;
}

/* Hide navigation bar on desktop */
@media (min-width: 768px) {
    .master-mobile-nav {
        display: none !important;
    }
}

.master-nav-container {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--gg-bg) !important;
    backdrop-filter: blur(35px) !important;
    -webkit-backdrop-filter: blur(35px) !important;
    border: 1.5px solid var(--gg-border) !important;
    border-radius: 35px !important;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    align-items: center !important;
    padding: 0 10px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7) !important;
    pointer-events: auto !important;
    overflow: visible !important;
}

.master-nav-item {
    font-family: 'Manrope', sans-serif !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    width: 100% !important;
    height: 100% !important;
    transition: all 0.3s ease !important;
    gap: 4px !important;
}

.master-nav-item i {
    font-size: 20px !important;
    color: var(--gg-gold) !important;
}

.master-nav-item span {
    font-size: 10px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    color: var(--gg-white) !important;
    line-height: 1 !important;
}

.master-nav-main-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto !important;
}

.master-nav-main-btn {
    position: absolute !important;
    top: -5px !important;
    width: 62px !important;
    height: 62px !important;
    border-radius: 50% !important;
    background: var(--gg-gold) !important;
    border: 5px solid #0c0c0c !important;
    color: #000 !important;
    font-size: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
    z-index: 100 !important;
    cursor: pointer !important;
}

/* 2. Floating Controls Group (180px) */
.v38-wrapper {
    position: fixed !important;
    right: 25px !important;
    bottom: 180px !important;
    z-index: var(--v38-z-controls) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    pointer-events: none !important;
}

.v38-wrapper>* {
    pointer-events: auto !important;
}

/* Desktop Adjustment - PEAK ELEVATED MP3 */
@media (min-width: 768px) {
    .v38-wrapper {
        bottom: 180px !important;
        /* PEAK ELEVATED FOR DESKTOP */
        right: 40px !important;
    }

    /* Force Hide QC Button & Items on Desktop */
    .v38-qc-stack,
    #v48QcBtn,
    #v48Items,
    .v48-qc-btn,
    .v48-qc-items {
        display: none !important;
    }
}

.v38-qc-stack {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
}

/* SHARED BUTTON SYMMETRY (46PX) */
.v38-qc-btn,
.v38-audio-btn {
    width: 46px !important;
    height: 46px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6) !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.v38-qc-btn {
    background: var(--gg-gold) !important;
    color: #000 !important;
    font-size: 20px !important;
}

.v38-qc-btn.open {
    background: #fff !important;
    transform: rotate(360deg) !important;
}

.v38-audio-btn {
    background: rgba(20, 20, 20, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.4) !important;
    color: var(--gg-gold) !important;
    font-size: 18px !important;
}

/* 3. VIBRANT SPEED DIAL (RE-RESTORATION) */
.v38-qc-items {
    position: absolute !important;
    bottom: 60px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    pointer-events: none !important;
    z-index: 100 !important;
    align-items: center !important;
}

.active .v38-qc-items {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

.v38-fab-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    text-decoration: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.3s ease !important;
}

/* Color Coding Per Action (Vibrant) */
.v38-btn-email {
    background: #E0E0E0 !important;
    color: #333 !important;
}

.v38-btn-sms {
    background: #007AFF !important;
    color: #fff !important;
}

.v38-btn-location {
    background: #EA4335 !important;
    color: #fff !important;
}

.v38-btn-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
}

.v38-btn-call {
    background: #FFD700 !important;
    color: #000 !important;
}

/* 4. Backdrop & Waves */
.v38-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: var(--v38-z-backdrop) !important;
    transition: all 0.4s ease !important;
}

.v38-backdrop.active {
    opacity: 1 !important;
    visibility: visible !important;
}

.v38-wave {
    display: none;
    align-items: flex-end;
    gap: 2px;
    height: 12px;
    position: absolute;
    bottom: 8px;
}

.v38-audio-btn.playing .v38-wave {
    display: flex;
}

.v38-wave span {
    width: 2px;
    background: var(--gg-gold);
    animation: v38-wave-anim 1s ease-in-out infinite;
}

@keyframes v38-wave-anim {

    0%,
    100% {
        height: 4px;
    }

    50% {
        height: 8px;
    }
}

/* Small Screen Adjustment */
@media (max-width:380px) {
    .v38-wrapper {
        bottom: 150px !important;
        right: 15px !important;
    }
}

/* 5. Back to Top Adjustment (110px) */
@media (max-width: 767px) {
    .back-to-top-wrapper {
        bottom: 110px !important;
        z-index: 997 !important;
    }
}