/* כפתור מרחף – שלח טופס, קטן, גרדיאנט אדום כהה, אפקט החלקה */
.fab {
    display: none;
    position: fixed;
    left: 12px;
    bottom: calc(64px + 32px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px 7px;
    background: linear-gradient(145deg, #b91c1c 0%, #991b1b 50%, #7f1d1d 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.58rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    overflow: hidden;
    transition: transform 0.2s;
}

.fab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.12) 45%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0.12) 55%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.fab:hover::before,
.fab:focus::before {
    transform: translateX(100%);
}

body.loaded .fab {
    display: flex;
}

.fab:hover,
.fab:focus {
    color: #fff;
    transform: translateY(-1px);
}

.fab:active {
    transform: translateY(0);
}

.fab-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: inherit;
}

.fab-icon svg {
    width: 14px;
    height: 14px;
}

.fab-label {
    position: relative;
    z-index: 1;
    line-height: 1.2;
    white-space: nowrap;
}

/* תפריט תחתון – תמיד עליון, רוחב מלא, מעל כל התוכן */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    min-height: 64px;
    padding: 10px 8px calc(10px + env(safe-area-inset-bottom)) 8px;
    background: rgba(14, 14, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px 20px 0 0;
    z-index: 9998;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
}

body.loaded .bottom-nav {
    display: flex;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    max-width: 88px;
    padding: 8px 6px;
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 14px;
    transition: color 0.2s, background 0.2s;
}

.nav-item:hover,
.nav-item:focus {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.04);
}

.nav-item:active {
    background: rgba(255, 255, 255, 0.06);
}

.nav-item--active {
    color: rgba(255, 255, 255, 0.98);
}

.nav-item--active .nav-icon {
    color: rgba(255, 255, 255, 0.98);
}

.nav-item--active:hover {
    color: rgba(255, 255, 255, 0.98);
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: inherit;
}

.nav-icon svg {
    width: 24px;
    height: 24px;
}

.nav-label {
    line-height: 1.2;
    white-space: nowrap;
}
