/* ========== Bottom Navigation ========== */
.bottom-nav {
    position: fixed;
    bottom: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 560px;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 998;
    border: 1px solid rgba(0,0,0,0.04);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #8e8e8e;
    text-decoration: none;
    font-size: clamp(8px, 2.5vw, 11px);
    font-weight: 500;
    padding: 4px 0;
    border-radius: 16px;
    flex: 1;
    margin: 0 4px;
    transition: all 0.2s ease;
}

.bottom-nav a .material-icons {
    font-size: clamp(18px, 5vw, 24px);
}

.bottom-nav a.active {
    color: #0096f5;
    font-weight: 700;
    background: rgba(0,149,246,0.08);
    transform: scale(1.05);
}

.bottom-nav a.active .material-icons {
    color: #0096f5;
}

/* دکمهٔ اسکن (نصف داخل منو، نصف بیرون) */
.bottom-nav a.scan-btn {
    width: clamp(48px, 12vw, 64px);
    height: clamp(48px, 12vw, 64px);
    background: #0096f5;
    border-radius: 10%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,149,246,0.4);
    position: relative;
    transform: translateY(-50%);   /* ★ نصف داخل، نصف بیرون */
    z-index: 2;
    flex: 0 0 auto;
    margin-left: 0;
    margin-right: 0;
}

.bottom-nav a.scan-btn .material-icons {
    font-size: clamp(24px, 6vw, 32px);
}

/* واکنش‌گرایی بیشتر */
@media (min-width: 768px) {
    .bottom-nav {
        width: 80%;
        max-width: 580px;
    }
}