/* ================================
   YAQEEN — Bottom Navigation
   ================================ */

.bottom-nav {
    position: fixed;
    right: 50%;
    bottom: 0;
    transform: translateX(50%);

    width: min(100%, 540px);
    height: 76px;

    display: flex;
    align-items: stretch;
    justify-content: space-around;

    background: rgba(255, 253, 249, 0.97);
    border-top: 1px solid rgba(23, 107, 77, 0.10);

    box-shadow: 0 -6px 24px rgba(23, 107, 77, 0.08);

    z-index: 1000;

    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.bottom-nav .nav-item {
    flex: 1 1 0;
    min-width: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;

    color: #78827c;
    text-decoration: none;

    border-radius: 14px;

    transition:
        color .2s ease,
        background-color .2s ease,
        transform .2s ease;
}

.bottom-nav .nav-item svg {
    width: 22px;
    height: 22px;

    flex: 0 0 auto;

    display: block;

    color: currentColor;
}

.bottom-nav .nav-item small {
    display: block;

    font-family: "Tajawal", "Cairo", sans-serif;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;

    white-space: nowrap;
}

.bottom-nav .nav-item:hover {
    color: #176b4d;
}

.bottom-nav .nav-item.active {
    color: #176b4d;
    background: rgba(23, 107, 77, 0.07);
}

.bottom-nav .nav-item.active svg {
    stroke-width: 2;
}

@media (min-width: 541px) {
    .bottom-nav {
        bottom: 14px;
        border: 1px solid rgba(23, 107, 77, 0.10);
        border-radius: 20px;
    }
}

@media (max-width: 360px) {
    .bottom-nav {
        height: 70px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .bottom-nav .nav-item small {
        font-size: 10px;
    }

    .bottom-nav .nav-item svg {
        width: 20px;
        height: 20px;
    }
}
