/* ===== AUTH MODAL OVERLAY ===== */
.auth-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: authFadeIn 0.3s ease;
}

@keyframes authFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: authSlideUp 0.3s ease;
}

@keyframes authSlideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.auth-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
    transition: color 0.2s;
}
.auth-close:hover { color: #333; }

/* Auth Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #eee;
}
.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 700;
    color: #999;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.auth-tab.active {
    color: #4f8cff;
    border-bottom-color: #4f8cff;
}
.auth-tab:hover { color: #333; }

/* Auth Form */
.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: #1a1a2e;
}
.auth-subtitle {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.auth-switch {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #666;
}
.auth-switch a {
    color: #4f8cff;
    font-weight: 700;
    text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* Form inputs in auth modal */
.auth-form .form-group {
    margin-bottom: 1rem;
}
.auth-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: #333;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
.auth-form input:focus {
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.15);
    outline: none;
}

/* Checkbox label */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #4f8cff;
}
.checkbox-label a {
    color: #4f8cff;
    text-decoration: none;
}

/* Select styling */
.auth-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: #fafbfc;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.auth-form select:focus {
    border-color: #4f8cff;
    outline: none;
}

/* Error messages */
.auth-form .error-msg,
.auth-form .error-msg[role="alert"] {
    display: block;
    color: #e74c3c;
    font-size: 0.82rem;
    min-height: 1.2em;
    margin-top: 0.25rem;
}

/* ===== NAV AUTH BUTTONS (Desktop) ===== */
.nav-auth {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}
.user-greeting {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4f8cff;
    white-space: nowrap;
}

/* Mobile-only auth links in nav (hidden on desktop) */
.nav-links-auth-mobile,
.nav-links-logout-mobile {
    display: none;
}

/* ===== LOGIN GATE ===== */
.try-login-gate {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
    border-radius: 16px;
    border: 2px dashed #4f8cff;
    margin-top: 2rem;
}
.gate-content {
    max-width: 500px;
    margin: 0 auto;
}
.gate-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}
.gate-content h3 {
    font-size: 1.5rem;
    color: #1a1a2e;
    margin-bottom: 0.75rem;
}
.gate-content p {
    color: #555;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.gate-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

/* ===== SMB VALUE SECTION ===== */
.section-smb {
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.smb-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 4rem;
}

.smb-card {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-left: 4px solid #ff6b6b;
    transition: transform 0.2s, box-shadow 0.2s;
}
.smb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.smb-card-solution {
    border-left-color: #4f8cff;
    background: linear-gradient(135deg, #f0f4ff 0%, #fff 100%);
}
.smb-card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}
.smb-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}
.smb-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Benefits List */
.smb-benefits {
    margin-bottom: 4rem;
}
.smb-benefits-title {
    text-align: center;
    font-size: 1.6rem;
    color: #1a1a2e;
    margin-bottom: 2rem;
}
.benefits-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.benefit-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s;
}
.benefit-item:hover {
    transform: translateY(-2px);
}
.benefit-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}
.benefit-item h4 {
    font-size: 1.05rem;
    color: #1a1a2e;
    margin-bottom: 0.35rem;
}
.benefit-item p {
    color: #555;
    line-height: 1.6;
    font-size: 0.92rem;
    margin: 0;
}

/* Testimonials */
.smb-testimonials {
    margin-bottom: 4rem;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.testimonial-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #4f8cff;
    margin: 0;
}
.testimonial-card p {
    font-style: italic;
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.testimonial-card cite {
    color: #888;
    font-size: 0.85rem;
    font-style: normal;
    font-weight: 600;
}

/* SMB CTA */
.smb-cta {
    text-align: center;
    background: linear-gradient(135deg, #4f8cff 0%, #6c5ce7 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    color: #fff;
}
.smb-cta h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.smb-cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.smb-cta .button {
    background: #fff;
    color: #4f8cff;
    font-weight: 700;
    border: none;
}
.smb-cta .button:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}
.smb-cta-note {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .auth-modal {
        padding: 1.5rem;
        margin: 0.5rem;
    }
    /* Hide desktop auth buttons, show mobile links in nav menu */
    .nav-auth {
        display: none !important;
    }
    .nav-user {
        display: none !important;
    }
    .nav-links-auth-mobile {
        display: list-item !important;
    }
    .nav-links-auth-mobile a {
        color: #4f8cff !important;
        font-weight: 700;
    }
    .nav-links-logout-mobile a {
        color: #e74c3c !important;
        font-weight: 700;
    }
    .smb-grid {
        grid-template-columns: 1fr;
    }
    .benefits-list {
        grid-template-columns: 1fr;
    }
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    .gate-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    .try-login-gate {
        padding: 2.5rem 1.5rem;
    }
}
