
.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;

z-index: 1000;
    box-sizing: border-box;
    padding: 6px 15px 0;
    transition: transform 0.24s ease, opacity 0.2s ease, visibility 0s linear 0s;
    will-change: transform;
    transform: translateY(0);
    opacity: 0;
    visibility: visible;

}

.bottom-menu.fade{
    opacity: 1;

}

.bottom-menu.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(130%);
    transition: transform 0.24s ease, opacity 0.2s ease, visibility 0s linear 0.24s;
}

body.has-bottom-panel-open .bottom-menu {
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
    transform: translateY(130%) !important;
    transition:
        transform 0.24s ease,
        opacity 0.2s ease,
        visibility 0s linear 0.24s !important;
}
@media (min-width: 600px) {
    body.has-bottom-panel-open .bottom-menu {
        transform: translateX(-50%) translateY(130%) !important;
    }
    body.has-web-top-bar:not(.web-desktop).has-bottom-panel-open .bottom-menu {
        transform: translateX(-50%) translateY(calc(100% + 10px)) !important;
    }
}

body.web-desktop.has-bottom-panel-open .bottom-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: none !important;
}

.menu-item > svg{
    width: 24px;
    height: 24px;
}

.bottom-menu .menu-item > span{
        padding-top: 5px;
        font-size: 10px;
        font-weight: 600;
}

.menu-item-icon{
    fill: #727272;
    transition: fill 0.15s ease;
}

.active .menu-item-icon{
    fill: #fff;
}

.menu-item-icon--pay{
    display: inline-block;
    width: 26px;
    height: 26px;
    background-color: #727272;
    -webkit-mask: url('../../img/projects/pay2.svg') center / 80% no-repeat;
            mask: url('../../img/projects/pay2.svg') center / 80% no-repeat;
    transition: background-color 0.15s ease;
}

.active .menu-item-icon--pay{
    background-color: #fff;
}

.row.g-0 {
    margin: 0;
    height: 100%;
    width: 100%;
    border-radius: 22px;
    background-color: #16181C;
    padding: 5px;

    backdrop-filter: blur(12px);

background-color: #17191dD9;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
    color: #8f8f8f;
    font-size: 11px;
    text-align: center;
    transition: all 0.15s ease;
    cursor: pointer;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
}

.menu-item.project-tab {
    opacity: 1;
    transform: scale(1);
}

.bottom-menu .row.g-0 {
    position: relative;
    overflow: hidden;
}

.bottom-menu .row.g-0 > .menu-item {
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}

.bottom-menu.projects-drawer-open .row.g-0 > .menu-item {
    transform: translateX(-130%);
    opacity: 0;
    pointer-events: none;
}

.projects-drawer {
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    display: flex;
    align-items: stretch;
    transform: translateX(108%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.32s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s ease;
}

.bottom-menu.projects-drawer-open .projects-drawer {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.projects-drawer .menu-item {
    flex: 1 1 0;
    min-width: 0;
}

.projects-drawer__back .menu-item-icon {
    fill: #8f8f8f;
}

.projects-drawer__back:active .menu-item-icon {
    fill: #3B82F6;
}

.project-switch-pill {
    position: fixed;
    left: 50%;
    bottom: calc(86px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: flex;
    align-items: stretch;
    gap: 4px;
    padding: 6px;
    border-radius: 20px;
    background: #17191dD9;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(10px) scale(0.95);
    transform-origin: bottom center;
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0.18s;
}

.project-switch-pill.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
    transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0s linear 0s;
}

.project-switch-pill::after {
    content: "";
    position: absolute;
    bottom: -7px;
    left: 50%;
    transform: translateX(calc(-50% + var(--pill-arrow-dx, 0px)));
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #17191dD9;
}

.project-switch-pill__item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border-radius: 14px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, background 0.15s ease;
}

.project-switch-pill__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.project-switch-pill__ico svg {
    width: 24px;
    height: 24px;
}

.project-switch-pill__ico .menu-item-icon {
    fill: #8f8f8f;
    transition: fill 0.15s ease;
}

.project-switch-pill__ico .menu-item-icon--pay {
    width: 24px;
    height: 24px;
    background-color: #8f8f8f;
}

.project-switch-pill__label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    color: #8f8f8f;
    transition: color 0.15s ease;
}

.project-switch-pill__item:active {
    transform: scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
    .project-switch-pill__item:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    .project-switch-pill__item:hover .menu-item-icon {
        fill: #fff;
    }
    .project-switch-pill__item:hover .menu-item-icon--pay {
        background-color: #fff;
    }
    .project-switch-pill__item:hover .project-switch-pill__label {
        color: #fff;
    }
}

.menu-item.project-tab.removing {
    animation: fadeOutScale 0.25s ease-out;
    opacity: 0;
    transform: scale(0.8);
}

.menu-item.admin-projects-tab {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.menu-item.admin-projects-tab.menu-item-appear {
    opacity: 1;
    transform: scale(1);
}

.menu-item.admin-projects-tab .menu-item-icon {
    stroke: #727272;
    fill: none;
    transition: stroke 0.15s ease;
}

.menu-item.admin-projects-tab.active .menu-item-icon {
    stroke: #3B82F6;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOutScale {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

.menu-item i {
    font-size: 16px;
    margin-bottom: 2px;
}

.menu-item.active {
    color: #fff;
}

.menu-item:active {
    transform: scale(0.9);
    opacity: 0.8;
}

@media (max-width: 360px) {
    .menu-item span {
        font-size: 10px;
    }

    .menu-item i {
        font-size: 14px;
    }
}

@media (min-width: 600px) {
    .bottom-menu {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        padding-left: 0;
        padding-right: 0;
    }

    .bottom-menu.hidden {
        transform: translateX(-50%) translateY(130%);
    }
}

body.has-web-top-bar:not(.web-desktop) .bottom-menu {
    bottom: 10px;
}

body.has-web-top-bar.ios-mobile-web:not(.web-desktop) .bottom-menu {
    bottom: 0;
}

@media (min-width: 600px) {
    body.has-web-top-bar:not(.web-desktop) .bottom-menu.hidden {
        transform: translateX(-50%) translateY(calc(100% + 10px));
    }
}

body.web-desktop .bottom-menu,
body.web-desktop .bottom-menu.hidden,
body.web-desktop .bottom-menu.fade {
    position: fixed !important;
    left: 0 !important;
    top: calc(15px + 46px) !important;
    bottom: 0 !important;
    right: auto !important;
    width: 200px !important;
    max-width: 200px !important;
    height: calc(100% - 15px - 46px) !important;
    padding: 12px 8px 20px !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 100 !important;
}

body.web-desktop .bottom-menu .row.g-0 {
    flex-direction: column;
    height: 100%;
    width: 100%;
    border-radius: 0;
    background: transparent;
    padding: 4px 0;
    gap: 2px;
    backdrop-filter: none;

    justify-content: center;
    align-content: center;
}

body.web-desktop .bottom-menu .menu-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    width: 100%;
    height: auto;
    transition: background 0.16s, color 0.16s;
}

body.web-desktop .bottom-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

body.web-desktop .bottom-menu .menu-item > span {
    font-size: 13px;
    font-weight: 500;
    padding-top: 0;
}

body.web-desktop .bottom-menu .menu-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

body.web-desktop .bottom-menu .menu-item .menu-item-icon--pay {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

body.web-desktop .bottom-menu .menu-item.active svg {
    fill: #fff;
    color: #fff;
}

body.web-desktop .bottom-menu .menu-item.active .menu-item-icon--pay {
    background-color: #fff;
}

body.web-desktop .bottom-menu .menu-item i {
    font-size: 18px;
    flex-shrink: 0;
    margin-bottom: 0;
}

body.web-desktop .bottom-menu .menu-item.active {
    background: #3f444c61;
    color: #fff;
}

body.web-desktop .bottom-menu .menu-item.active:hover {
    background: #3f444c85;
}

body.web-desktop .bottom-menu .menu-item:active {
    transform: none;
    opacity: 0.75;
}
