/* ─── Profile Modal ─── */

.profile-section {
    margin-bottom: 24px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--gray-100);
}

.profile-field {
    margin-bottom: 14px;
}

.profile-field:last-child {
    margin-bottom: 0;
}

.profile-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 5px;
}

.profile-field input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.2s;
    outline: none;
    background: var(--gray-50);
}

.profile-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
    background: var(--white);
}

.profile-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.profile-actions .btn {
    flex: 1;
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Password section separator */
.profile-password-divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: 20px 0;
}

/* Profile loader overlay */
.profile-loader-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    z-index: 10;
}

/* Profile error */
.profile-error {
    background: var(--danger-light);
    color: var(--danger);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    display: none;
}

/* Profile toast notification */
.profile-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--success);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 4000;
    pointer-events: none;
}

.profile-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Mobile tweaks */
@media (max-width: 768px) {
    #profile-modal .modal {
        max-height: 85vh;
        margin: 10px;
    }

    .profile-actions {
        flex-direction: column;
    }
}
