/* --- PWA BOTTOM NAVIGATION (Mobile Only) --- */
.bottom-nav {
    display: none;
    /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--color-midnight);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    width: 20%;
    height: 100%;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.2s;
}

.bottom-nav-item.active {
    opacity: 1;
    color: var(--color-forest);
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

.bottom-nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    fill: currentColor;
}

/* Skeleton Loader Animation */
.skeleton {
    background: #e0e0e0;
    background: linear-gradient(90deg, #e0e0e0 0%, #f0f0f0 50%, #e0e0e0 100%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        /* Show on mobile */
    }

    /* Hide standard nav links on mobile, keep logo */
    .nav-links {
        display: none;
    }

    .navbar {
        justify-content: center;
        padding: 10px;
    }

    /* Adjust FAB position to not overlap bottom nav */
    .basket-fab {
        bottom: 90px;
    }

    /* Add padding to body so content isn't hidden behind nav */
    padding-bottom: 80px;
    }
}

/* --- SIGNUP VOLUNTEER CONSENT STYLES --- */
.signup-msg-container {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.error-msg-box {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
}

.success-msg-box {
    display: block;
    background-color: #d4edda;
    color: #155724;
}

.volunteer-consent-section {
    margin-top: 20px;
    padding: 15px;
    background-color: #fdf6f3;
    border: 1px solid #e9dcd2;
    border-radius: 8px;
}

.volunteer-consent-heading {
    margin-top: 0;
    color: var(--color-forest);
}

.volunteer-consent-text {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 15px;
}

.volunteer-checkbox-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
}

.volunteer-checkbox-group-last {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.volunteer-checkbox-input {
    margin-top: 4px;
}

.volunteer-checkbox-label {
    font-size: 0.85rem;
}

.signup-submit-btn {
    margin-top: 25px;
}

.signup-login-prompt {
    font-size: 0.9rem;
}

.signup-login-link {
    color: var(--color-midnight);
}

/* --- GLASS TRAY (Ordering) --- */
.glass-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.1);
    z-index: 1500;
}

.card-order {
    background: var(--color-paper);
    border-radius: var(--radius-16);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(46, 64, 51, 0.1);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.card-order__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-order__content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn-add-tray {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-forest);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.btn-add-tray:active {
    transform: scale(0.9);
}

/* --- SANCTUARY MODAL SYSTEM (Phase 2) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-paper);
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-24);
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.verification-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.verification-input {
    width: 45px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.verification-input:focus {
    border-color: var(--color-forest);
    box-shadow: 0 0 0 3px rgba(46, 64, 51, 0.1);
    outline: none;
}

.welcome-badge {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #FF8C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.perk-tag {
    display: inline-block;
    background: #f0f7f0;
    color: var(--color-forest);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 10px 0;
}