/* =========================
   FLOATING MENU
========================= */

.floating-menu-wrapper {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
}

/* =========================
   TOGGLE BUTTON
========================= */

.floating-menu-toggle {
    width: 58px;
    height: 58px;

    border: none;
    border-radius: 18px;

    cursor: pointer;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    backdrop-filter: blur(16px);

    background: rgba(255,255,255,0.25);

    border: 1px solid rgba(255,255,255,0.45);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.18),
        inset 0 1px 0 rgba(255,255,255,0.35);

    transition: all .25s ease;
}

.floating-menu-toggle:hover {
    transform: scale(1.05);
}

/* =========================
   HAMBURGER ICON
========================= */

.floating-menu-toggle span {
    width: 24px;
    height: 2.5px;

    border-radius: 20px;

    background: #99b866;

    transition: all .25s ease;
}

/* =========================
   ACTIVE ANIMATION
========================= */

.floating-menu-wrapper.active .floating-menu-toggle span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.floating-menu-wrapper.active .floating-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.floating-menu-wrapper.active .floating-menu-toggle span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* =========================
   DROPDOWN CARD
========================= */

.floating-menu-dropdown {
    position: absolute;

    bottom: 72px;
    left: 50%;

    width: max-content;
    min-width: 180px;
    max-width: 240px;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-50%) translateY(20px);

    transition: all .28s ease;

    backdrop-filter: blur(18px);

    background: rgba(255,255,255,0.18);

    border: 1px solid rgba(255,255,255,0.4);

    border-radius: 22px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;

    box-shadow:
        0 15px 40px rgba(0,0,0,0.18);
}

/* =========================
   SHOW MENU
========================= */

.floating-menu-wrapper.active .floating-menu-dropdown {
    opacity: 1;
    visibility: visible;

    transform: translateX(-50%) translateY(0);
}

/* =========================
   MENU ITEM
========================= */

.floating-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: 100%;

    padding: 12px 16px;

    border-radius: 16px;

    text-decoration: none;

    transition: all .22s ease;

    color: #222;

    font-weight: 700;
    font-size: 14px;

    white-space: nowrap;

    font-family: 'IBMPlexSansArabic', 'IBM Plex Sans Arabic', sans-serif;
}

.floating-menu-item:hover {
    background: rgba(255,255,255,0.35);

    transform: translateY(-2px);
}

/* =========================
   ICON
========================= */

.floating-menu-icon {
    width: 42px;
    height: 42px;

    object-fit: contain;

    flex-shrink: 0;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 480px) {

    .floating-menu-wrapper {
        bottom: 14px;
    }

    .floating-menu-toggle {
        width: 52px;
        height: 52px;
    }

    .floating-menu-dropdown {
        min-width: 170px;
        max-width: 210px;

        padding: 8px;
    }

    .floating-menu-item {
        padding: 10px 14px;

        font-size: 13px;
    }

    .floating-menu-icon {
        width: 36px;
        height: 36px;
    }
}